![]() |
LArSoft
v09_93_00
Liquid Argon Software toolkit - https://larsoft.org/
|
HierarchyValidationAlgorithm class. More...
#include "HierarchyValidationAlgorithm.h"
Public Member Functions | |
HierarchyValidationAlgorithm () | |
Default constructor. More... | |
virtual | ~HierarchyValidationAlgorithm () |
Private Member Functions | |
pandora::StatusCode | Run () |
pandora::StatusCode | ReadSettings (const pandora::TiXmlHandle xmlHandle) |
Private Attributes | |
int | m_event |
The current event. More... | |
std::string | m_caloHitListName |
Name of input calo hit list. More... | |
std::string | m_pfoListName |
Name of input PFO list. More... | |
std::string | m_detector |
Name of the detector. More... | |
bool | m_writeEventTree |
Whether or not to output event validation information to a ROOT file. More... | |
bool | m_writeMCTree |
Whether or not to output MC validation information to a ROOT file. More... | |
std::string | m_eventFileName |
The name of the event ROOT file to write. More... | |
std::string | m_eventTreeName |
The name of the event ROOT tree to write. More... | |
std::string | m_MCFileName |
The name of the MC ROOT file to write. More... | |
std::string | m_MCTreeName |
The name of the MC ROOT tree to write. More... | |
bool | m_foldToPrimaries |
Whether or not to fold the hierarchy back to primary particles. More... | |
bool | m_foldDynamic |
Whether or not to fold the hierarchy dynamically. More... | |
bool | m_foldToLeadingShowers |
Whether or not to fold the hierarchy back to leading shower particles. More... | |
bool | m_validateEvent |
Whether to validate at the level of an event. More... | |
bool | m_validateMC |
Whether to validate at the level of MC nodes. More... | |
float | m_minPurity |
Minimum purity to tag a node as being of good quality. More... | |
float | m_minCompleteness |
Minimum completeness to tag a node as being of good quality. More... | |
unsigned int | m_minRecoHits |
Minimum number of reconstructed primary good hits. More... | |
unsigned int | m_minRecoHitsPerView |
Minimum number of reconstructed hits for a good view. More... | |
unsigned int | m_minRecoGoodViews |
Minimum number of reconstructed primary good views. More... | |
bool | m_removeRecoNeutrons |
Whether to remove reconstructed neutrons and their downstream particles. More... | |
HierarchyValidationAlgorithm class.
Definition at line 22 of file HierarchyValidationAlgorithm.h.
lar_content::HierarchyValidationAlgorithm::HierarchyValidationAlgorithm | ( | ) |
Default constructor.
Definition at line 21 of file HierarchyValidationAlgorithm.cc.
References m_detector, m_foldDynamic, m_foldToLeadingShowers, m_foldToPrimaries, m_minCompleteness, m_minPurity, m_minRecoGoodViews, m_minRecoHits, m_minRecoHitsPerView, m_removeRecoNeutrons, m_validateEvent, m_validateMC, m_writeEventTree, and m_writeMCTree.
|
virtual |
Definition at line 42 of file HierarchyValidationAlgorithm.cc.
References m_eventFileName, m_eventTreeName, m_MCFileName, m_MCTreeName, m_writeEventTree, and m_writeMCTree.
|
private |
Definition at line 520 of file HierarchyValidationAlgorithm.cc.
References m_caloHitListName, m_detector, m_eventFileName, m_eventTreeName, m_foldDynamic, m_foldToLeadingShowers, m_foldToPrimaries, m_MCFileName, m_MCTreeName, m_minCompleteness, m_minPurity, m_minRecoGoodViews, m_minRecoHits, m_minRecoHitsPerView, m_pfoListName, m_removeRecoNeutrons, m_validateEvent, m_validateMC, m_writeEventTree, and m_writeMCTree.
|
private |
Definition at line 56 of file HierarchyValidationAlgorithm.cc.
References util::abs(), lar_content::LArHierarchyHelper::FillMCHierarchy(), lar_content::LArHierarchyHelper::FillRecoHierarchy(), lar_content::LArInteractionTypeHelper::GetInteractionDescriptor(), lar_content::LArHierarchyHelper::MCHierarchy::Node::GetLeadingMCParticle(), lar_content::LArHierarchyHelper::MatchInfo::GetMatches(), lar_content::LArHierarchyHelper::MatchInfo::GetNMCNodes(), lar_content::LArHierarchyHelper::MatchInfo::GetQualityCuts(), lar_content::LArHierarchyHelper::MatchInfo::GetRecoHierarchy(), lar_content::LArHierarchyHelper::MatchInfo::GetRootMCParticles(), lar_content::LArHierarchyHelper::RecoHierarchy::GetRootPfos(), lar_content::LArPfoHelper::GetVertex(), lcvn::interaction, lar_content::InteractionDescriptor::IsCC(), lar_content::LArMCParticleHelper::IsDecay(), lar_content::LArVertexHelper::IsInFiducialVolume(), lar_content::LArHierarchyHelper::MCHierarchy::Node::IsTestBeamParticle(), m_caloHitListName, m_detector, m_event, m_eventTreeName, lar_content::LArHierarchyHelper::FoldingParameters::m_foldDynamic, m_foldDynamic, lar_content::LArHierarchyHelper::FoldingParameters::m_foldToLeadingShowers, m_foldToLeadingShowers, m_foldToPrimaries, lar_content::LArHierarchyHelper::FoldingParameters::m_foldToTier, m_MCTreeName, m_minCompleteness, m_minPurity, m_minRecoGoodViews, m_minRecoHits, m_minRecoHitsPerView, m_pfoListName, m_removeRecoNeutrons, m_validateEvent, m_validateMC, m_writeEventTree, m_writeMCTree, lar_content::LArHierarchyHelper::MatchHierarchies(), lar_content::LArHierarchyHelper::MatchInfo::Print(), and lar_content::LArMCParticleHelper::SortByMomentum().
|
private |
Name of input calo hit list.
Definition at line 54 of file HierarchyValidationAlgorithm.h.
Referenced by ReadSettings(), and Run().
|
private |
Name of the detector.
Definition at line 56 of file HierarchyValidationAlgorithm.h.
Referenced by HierarchyValidationAlgorithm(), ReadSettings(), and Run().
|
private |
The current event.
Definition at line 53 of file HierarchyValidationAlgorithm.h.
Referenced by Run().
|
private |
The name of the event ROOT file to write.
Definition at line 59 of file HierarchyValidationAlgorithm.h.
Referenced by ReadSettings(), and ~HierarchyValidationAlgorithm().
|
private |
The name of the event ROOT tree to write.
Definition at line 60 of file HierarchyValidationAlgorithm.h.
Referenced by ReadSettings(), Run(), and ~HierarchyValidationAlgorithm().
|
private |
Whether or not to fold the hierarchy dynamically.
Definition at line 64 of file HierarchyValidationAlgorithm.h.
Referenced by HierarchyValidationAlgorithm(), ReadSettings(), and Run().
|
private |
Whether or not to fold the hierarchy back to leading shower particles.
Definition at line 65 of file HierarchyValidationAlgorithm.h.
Referenced by HierarchyValidationAlgorithm(), ReadSettings(), and Run().
|
private |
Whether or not to fold the hierarchy back to primary particles.
Definition at line 63 of file HierarchyValidationAlgorithm.h.
Referenced by HierarchyValidationAlgorithm(), ReadSettings(), and Run().
|
private |
The name of the MC ROOT file to write.
Definition at line 61 of file HierarchyValidationAlgorithm.h.
Referenced by ReadSettings(), and ~HierarchyValidationAlgorithm().
|
private |
The name of the MC ROOT tree to write.
Definition at line 62 of file HierarchyValidationAlgorithm.h.
Referenced by ReadSettings(), Run(), and ~HierarchyValidationAlgorithm().
|
private |
Minimum completeness to tag a node as being of good quality.
Definition at line 69 of file HierarchyValidationAlgorithm.h.
Referenced by HierarchyValidationAlgorithm(), ReadSettings(), and Run().
|
private |
Minimum purity to tag a node as being of good quality.
Definition at line 68 of file HierarchyValidationAlgorithm.h.
Referenced by HierarchyValidationAlgorithm(), ReadSettings(), and Run().
|
private |
Minimum number of reconstructed primary good views.
Definition at line 72 of file HierarchyValidationAlgorithm.h.
Referenced by HierarchyValidationAlgorithm(), ReadSettings(), and Run().
|
private |
Minimum number of reconstructed primary good hits.
Definition at line 70 of file HierarchyValidationAlgorithm.h.
Referenced by HierarchyValidationAlgorithm(), ReadSettings(), and Run().
|
private |
Minimum number of reconstructed hits for a good view.
Definition at line 71 of file HierarchyValidationAlgorithm.h.
Referenced by HierarchyValidationAlgorithm(), ReadSettings(), and Run().
|
private |
Name of input PFO list.
Definition at line 55 of file HierarchyValidationAlgorithm.h.
Referenced by ReadSettings(), and Run().
|
private |
Whether to remove reconstructed neutrons and their downstream particles.
Definition at line 73 of file HierarchyValidationAlgorithm.h.
Referenced by HierarchyValidationAlgorithm(), ReadSettings(), and Run().
|
private |
Whether to validate at the level of an event.
Definition at line 66 of file HierarchyValidationAlgorithm.h.
Referenced by HierarchyValidationAlgorithm(), ReadSettings(), and Run().
|
private |
Whether to validate at the level of MC nodes.
Definition at line 67 of file HierarchyValidationAlgorithm.h.
Referenced by HierarchyValidationAlgorithm(), ReadSettings(), and Run().
|
private |
Whether or not to output event validation information to a ROOT file.
Definition at line 57 of file HierarchyValidationAlgorithm.h.
Referenced by HierarchyValidationAlgorithm(), ReadSettings(), Run(), and ~HierarchyValidationAlgorithm().
|
private |
Whether or not to output MC validation information to a ROOT file.
Definition at line 58 of file HierarchyValidationAlgorithm.h.
Referenced by HierarchyValidationAlgorithm(), ReadSettings(), Run(), and ~HierarchyValidationAlgorithm().