#include <LArHierarchyHelper.h>
Public Member Functions | |
Node (const RecoHierarchy &hierarchy, const pandora::ParticleFlowObject *pPfo) | |
Create a node with a primary PFO. More... | |
Node (const RecoHierarchy &hierarchy, const pandora::PfoList &pfoList, const pandora::CaloHitList &caloHitList) | |
Create a node from a list of PFOs. More... | |
virtual | ~Node () |
Destructor. More... | |
void | FillHierarchy (const pandora::ParticleFlowObject *pRoot, const FoldingParameters &foldParameters) |
Recursively fill the hierarchy based on the criteria established for this RecoHierarchy. More... | |
void | FillFlat (const pandora::ParticleFlowObject *pRoot) |
Fill this node by folding all descendent particles to this node. More... | |
const NodeVector & | GetChildren () const |
Return the vector of children for this node. More... | |
const pandora::PfoList & | GetRecoParticles () const |
Retrieve the PFOs associated with this node. More... | |
const pandora::CaloHitList & | GetCaloHits () const |
Retrieve the CaloHits associated with this node. More... | |
int | GetParticleId () const |
Retrieve the PDG code for the leading particle in this node Note, for reco objects the PDG codes represent tracks (muon PDG) and showers (electron PDG) More... | |
const std::string | ToString (const std::string &prefix) const |
Produce a string representation of the hierarchy. More... | |
Private Attributes | |
const RecoHierarchy & | m_hierarchy |
The parent reco hierarchy. More... | |
pandora::PfoList | m_pfos |
The list of PFOs of which this node is composed. More... | |
pandora::CaloHitList | m_caloHits |
The list of calo hits of which this node is composed. More... | |
NodeVector | m_children |
The child nodes of this node. More... | |
int | m_pdg |
The particle ID (track = muon, shower = electron) More... | |
Node class.
Definition at line 436 of file LArHierarchyHelper.h.
lar_content::LArHierarchyHelper::RecoHierarchy::Node::Node | ( | const RecoHierarchy & | hierarchy, |
const pandora::ParticleFlowObject * | pPfo | ||
) |
Create a node with a primary PFO.
hierarchy | The parent hierarchy of this node |
pPfo | The primary PFO with which this node should be created |
Definition at line 880 of file LArHierarchyHelper.cc.
lar_content::LArHierarchyHelper::RecoHierarchy::Node::Node | ( | const RecoHierarchy & | hierarchy, |
const pandora::PfoList & | pfoList, | ||
const pandora::CaloHitList & | caloHitList | ||
) |
Create a node from a list of PFOs.
hierarchy | The parent hierarchy of this node |
pfoList | The PFO list with which this node should be created caloHitList The CaloHit list with which this node should be created |
|
virtual |
Destructor.
Definition at line 907 of file LArHierarchyHelper.cc.
void lar_content::LArHierarchyHelper::RecoHierarchy::Node::FillFlat | ( | const pandora::ParticleFlowObject * | pRoot | ) |
Fill this node by folding all descendent particles to this node.
pRoot | The PFO acting as the root of the current branch of the hierarchy |
Definition at line 953 of file LArHierarchyHelper.cc.
void lar_content::LArHierarchyHelper::RecoHierarchy::Node::FillHierarchy | ( | const pandora::ParticleFlowObject * | pRoot, |
const FoldingParameters & | foldParameters | ||
) |
Recursively fill the hierarchy based on the criteria established for this RecoHierarchy.
pRoot | The PFO acting as the root of the current branch of the hierarchy |
foldParameters | The folding parameters |
Definition at line 918 of file LArHierarchyHelper.cc.
const CaloHitList & lar_content::LArHierarchyHelper::RecoHierarchy::Node::GetCaloHits | ( | ) | const |
Retrieve the CaloHits associated with this node.
Definition at line 973 of file LArHierarchyHelper.cc.
|
inline |
Return the vector of children for this node.
Definition at line 977 of file LArHierarchyHelper.h.
int lar_content::LArHierarchyHelper::RecoHierarchy::Node::GetParticleId | ( | ) | const |
Retrieve the PDG code for the leading particle in this node Note, for reco objects the PDG codes represent tracks (muon PDG) and showers (electron PDG)
Definition at line 980 of file LArHierarchyHelper.cc.
const PfoList & lar_content::LArHierarchyHelper::RecoHierarchy::Node::GetRecoParticles | ( | ) | const |
Retrieve the PFOs associated with this node.
Definition at line 966 of file LArHierarchyHelper.cc.
const std::string lar_content::LArHierarchyHelper::RecoHierarchy::Node::ToString | ( | const std::string & | prefix | ) | const |
Produce a string representation of the hierarchy.
Definition at line 987 of file LArHierarchyHelper.cc.
|
private |
The list of calo hits of which this node is composed.
Definition at line 515 of file LArHierarchyHelper.h.
|
private |
The child nodes of this node.
Definition at line 516 of file LArHierarchyHelper.h.
|
private |
The parent reco hierarchy.
Definition at line 513 of file LArHierarchyHelper.h.
|
private |
The particle ID (track = muon, shower = electron)
Definition at line 517 of file LArHierarchyHelper.h.
|
private |
The list of PFOs of which this node is composed.
Definition at line 514 of file LArHierarchyHelper.h.