All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
CheatingClusterCharacterisationAlgorithm.cc
Go to the documentation of this file.
1 /**
2  * @file larpandoracontent/LArCheating/CheatingClusterCharacterisationAlgorithm.cc
3  *
4  * @brief Implementation of the cheating cluster characterisation algorithm class.
5  *
6  * $Log: $
7  */
8 
9 #include "Pandora/AlgorithmHeaders.h"
10 
12 
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
Header file for the cheating cluster characterisation algorithm class.
T abs(T value)
Header file for the lar monte carlo particle helper helper class.
required by fuzzyCluster table::sbnd_g4_services gaushitTruthMatch pandora
Definition: reco_sbnd.fcl:182