Pandora
Pandora source code navigator
Loading...
Searching...
No Matches
CheatingClusterCharacterisationAlgorithm.cc
Go to the documentation of this file.
1
10
12
14
15using namespace pandora;
16
17namespace lar_content
18{
19
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
Grouping of header files for many classes of use in particle flow algorithms.
Header file for the cheating cluster characterisation algorithm class.
Header file for the lar monte carlo particle helper helper class.
bool IsClearTrack(const pandora::Cluster *const pCluster) const
Whether cluster is identified as a clear track.
Cluster class.
Definition Cluster.h:31
static const MCParticle * GetMainMCParticle(const T *const pT)
Find the mc particle making the largest contribution to a specified calo hit, track or cluster.
MCParticle class.
Definition MCParticle.h:26
int GetParticleId() const
Get the PDG code of the mc particle.
Definition MCParticle.h:285
StatusCodeException class.