LArSoft  v09_90_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;
57  bool m_writeTree;
58  std::string m_filename;
59  std::string m_treename;
64  bool m_validateMC;
65  float m_minPurity;
67 };
68 
69 } // namespace lar_content
70 
71 #endif // LAR_HIERARCHY_VALIDATION_ALGORITHM_H
bool m_foldToPrimaries
Whether or not to fold the hierarchy back to primary particles.
bool m_foldToLeadingShowers
Whether or not to fold the hierarchy back to leading shower particles.
float m_minPurity
Minimum purity to tag a node as being of good quality.
Header file for the lar monte carlo particle helper helper class.
float m_minCompleteness
Minimum completeness to tag a node as being of good quality.
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.
bool m_writeTree
Whether or not to output validation information to a ROOT file.
pandora::StatusCode ReadSettings(const pandora::TiXmlHandle xmlHandle)
std::string m_filename
The name of the ROOT file to write.
std::string m_treename
The name of the ROOT tree to write.
bool m_validateMC
Whether to validate at the level of MC nodes.
bool m_validateEvent
Whether to validate at the level of an event.