LArSoft  v09_93_00
Liquid Argon Software toolkit - https://larsoft.org/
HierarchyValidationAlgorithm.h
Go to the documentation of this file.
1 
8 #ifndef LAR_HIERARCHY_VALIDATION_ALGORITHM_H
9 #define LAR_HIERARCHY_VALIDATION_ALGORITHM_H 1
10 
11 #include "Pandora/Algorithm.h"
12 
15 
16 namespace lar_content
17 {
18 
22 class HierarchyValidationAlgorithm : public pandora::Algorithm
23 {
24 public:
29 
31 
32 private:
33  pandora::StatusCode Run();
34  pandora::StatusCode ReadSettings(const pandora::TiXmlHandle xmlHandle);
35 
36 #ifdef MONITORING
37 
42  void EventValidation(const LArHierarchyHelper::MatchInfo &matchInfo) const;
43 
49  void MCValidation(const LArHierarchyHelper::MatchInfo &matchInfo) const;
50 
51 #endif
52 
53  int m_event;
54  std::string m_caloHitListName;
55  std::string m_pfoListName;
56  std::string m_detector;
59  std::string m_eventFileName;
60  std::string m_eventTreeName;
61  std::string m_MCFileName;
62  std::string m_MCTreeName;
67  bool m_validateMC;
68  float m_minPurity;
70  unsigned int m_minRecoHits;
71  unsigned int m_minRecoHitsPerView;
72  unsigned int m_minRecoGoodViews;
74 };
75 
76 } // namespace lar_content
77 
78 #endif // LAR_HIERARCHY_VALIDATION_ALGORITHM_H
unsigned int m_minRecoGoodViews
Minimum number of reconstructed primary good views.
bool m_foldToPrimaries
Whether or not to fold the hierarchy back to primary particles.
unsigned int m_minRecoHits
Minimum number of reconstructed primary good hits.
bool m_foldToLeadingShowers
Whether or not to fold the hierarchy back to leading shower particles.
bool m_writeEventTree
Whether or not to output event validation information to a ROOT file.
bool m_writeMCTree
Whether or not to output MC validation information to a ROOT file.
float m_minPurity
Minimum purity to tag a node as being of good quality.
std::string m_MCFileName
The name of the MC ROOT file to write.
bool m_removeRecoNeutrons
Whether to remove reconstructed neutrons and their downstream particles.
Header file for the lar monte carlo particle helper helper class.
std::string m_eventTreeName
The name of the event ROOT tree to write.
float m_minCompleteness
Minimum completeness to tag a node as being of good quality.
std::string m_MCTreeName
The name of the MC ROOT tree to write.
std::string m_pfoListName
Name of input PFO list.
bool m_foldDynamic
Whether or not to fold the hierarchy dynamically.
Header file for the lar hierarchy helper class.
std::string m_caloHitListName
Name of input calo hit list.
std::string m_eventFileName
The name of the event ROOT file to write.
pandora::StatusCode ReadSettings(const pandora::TiXmlHandle xmlHandle)
unsigned int m_minRecoHitsPerView
Minimum number of reconstructed hits for a good view.
bool m_validateMC
Whether to validate at the level of MC nodes.
bool m_validateEvent
Whether to validate at the level of an event.