LArSoft
v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
CheatingClusterCharacterisationAlgorithm.cc
Go to the documentation of this file.
1
9
#include "Pandora/AlgorithmHeaders.h"
10
11
#include "
larpandoracontent/LArCheating/CheatingClusterCharacterisationAlgorithm.h
"
12
13
#include "
larpandoracontent/LArHelpers/LArMCParticleHelper.h
"
14
15
using namespace
pandora
;
16
17
namespace
lar_content
18
{
19
20
bool
CheatingClusterCharacterisationAlgorithm::IsClearTrack(
const
Cluster *
const
pCluster)
const
21
{
22
try
23
{
24
// ATTN Slightly curious definition of a clear track, but this is most-likely what is needed for shower-growing
25
const
MCParticle *
const
pMCParticle(MCParticleHelper::GetMainMCParticle(pCluster));
26
27
if
((PHOTON != pMCParticle->GetParticleId()) && (E_MINUS !=
std::abs
(pMCParticle->GetParticleId())))
28
return
true
;
29
}
30
catch
(
const
StatusCodeException &)
31
{
32
}
33
34
return
false
;
35
}
36
37
}
// namespace lar_content
lar_content
Definition:
CheatingBeamParticleIdTool.cc:18
pandora
Definition:
ILArPandora.h:16
util::abs
constexpr auto abs(T v)
Returns the absolute value of the argument.
Definition:
constexpr_math.h:40
CheatingClusterCharacterisationAlgorithm.h
Header file for the cheating cluster characterisation algorithm class.
LArMCParticleHelper.h
Header file for the lar monte carlo particle helper helper class.
larpandoracontent
v04_08_01
source
larpandoracontent
LArCheating
CheatingClusterCharacterisationAlgorithm.cc
Generated on Thu May 2 2024 20:59:40 for LArSoft by
1.8.11