LArSoft  v06_85_00
Liquid Argon Software toolkit - http://larsoft.org/
MCParticleMonitoringAlgorithm.h
Go to the documentation of this file.
1 
8 #ifndef LAR_MC_PARTICLE_MONITORING_ALGORITHM_H
9 #define LAR_MC_PARTICLE_MONITORING_ALGORITHM_H 1
10 
11 #include "Pandora/Algorithm.h"
12 
14 
15 namespace lar_content
16 {
17 
21 class MCParticleMonitoringAlgorithm: public pandora::Algorithm
22 {
23 public:
28 
29 private:
30  pandora::StatusCode Run();
31  pandora::StatusCode ReadSettings(const pandora::TiXmlHandle xmlHandle);
32 
38  void PrintPrimaryMCParticles(const LArMCParticleHelper::MCContributionMap &mcContributionMap) const;
39 
47  void PrintMCParticle(const pandora::MCParticle *const pMCParticle, const LArMCParticleHelper::MCContributionMap &mcToTrueHitListMap,
48  const int depth) const;
49 
50  std::string m_caloHitListName;
51  std::string m_mcParticleListName;
52 
54  unsigned int m_minHitsForDisplay;
55 };
56 
57 } // namespace lar_content
58 
59 #endif // LAR_MC_PARTICLE_MONITORING_ALGORITHM_H
bool m_useTrueNeutrinosOnly
Whether to consider only mc particles that were neutrino induced.
unsigned int m_minHitsForDisplay
Min hits associated with mc particle to warrant display to terminal.
void PrintMCParticle(const pandora::MCParticle *const pMCParticle, const LArMCParticleHelper::MCContributionMap &mcToTrueHitListMap, const int depth) const
Print information for a given mc particle to screen.
std::unordered_map< const pandora::MCParticle *, pandora::CaloHitList > MCContributionMap
Header file for the lar monte carlo particle helper helper class.
std::string m_caloHitListName
Name of input calo hit list.
void PrintPrimaryMCParticles(const LArMCParticleHelper::MCContributionMap &mcContributionMap) const
Extract details of each mc primary in a given mc contribution map.
std::string m_mcParticleListName
Name of input MC particle list.
pandora::StatusCode ReadSettings(const pandora::TiXmlHandle xmlHandle)