LArSoft  v06_85_00
Liquid Argon Software toolkit - http://larsoft.org/
CheatingNeutrinoDaughterVerticesAlgorithm.h
Go to the documentation of this file.
1 
8 #ifndef LAR_CHEATING_NEUTRINO_DAUGHTER_VERTICES_ALGORITHM_H
9 #define LAR_CHEATING_NEUTRINO_DAUGHTER_VERTICES_ALGORITHM_H 1
10 
11 #include "Pandora/Algorithm.h"
12 
14 
15 namespace lar_content
16 {
17 
21 class CheatingNeutrinoDaughterVerticesAlgorithm : public pandora::Algorithm
22 {
23 public:
28 
29 private:
30  pandora::StatusCode Run();
31 
37  void GetMCPrimaryMap(LArMCParticleHelper::MCRelationMap &mcPrimaryMap) const;
38 
45  void ProcessRecoNeutrinos(const pandora::PfoList &neutrinoPfos, const LArMCParticleHelper::MCRelationMap &mcPrimaryMap) const;
46 
53  void ProcessDaughterPfo(const pandora::ParticleFlowObject *const pDaughterPfo, const LArMCParticleHelper::MCRelationMap &mcPrimaryMap) const;
54 
55  pandora::StatusCode ReadSettings(const pandora::TiXmlHandle xmlHandle);
56 
58  std::string m_mcParticleListName;
59 
60  std::string m_neutrinoListName;
61  std::string m_vertexListName;
62 };
63 
64 } // namespace lar_content
65 
66 #endif // #ifndef LAR_CHEATING_NEUTRINO_DAUGHTER_VERTICES_ALGORITHM_H
std::string m_mcParticleListName
The mc particle list name, required if want to collapse mc particle hierarchy.
CheatingNeutrinoDaughterVerticesAlgorithm::Algorithm class.
std::string m_vertexListName
The name of the output cosmic-ray vertex list.
void GetMCPrimaryMap(LArMCParticleHelper::MCRelationMap &mcPrimaryMap) const
Get the mapping from mc particle to primary, only required if collapsed mc particle hierarchy specifi...
pandora::StatusCode ReadSettings(const pandora::TiXmlHandle xmlHandle)
Header file for the lar monte carlo particle helper helper class.
void ProcessRecoNeutrinos(const pandora::PfoList &neutrinoPfos, const LArMCParticleHelper::MCRelationMap &mcPrimaryMap) const
Process the list of reconstructed neutrinos.
void ProcessDaughterPfo(const pandora::ParticleFlowObject *const pDaughterPfo, const LArMCParticleHelper::MCRelationMap &mcPrimaryMap) const
Process a daughter pfo.
bool m_collapseToPrimaryMCParticles
Whether to collapse mc particle hierarchies to primary particles.
std::unordered_map< const pandora::MCParticle *, const pandora::MCParticle * > MCRelationMap