RecoHierarchy class. More...
#include <LArHierarchyHelper.h>
Classes | |
class | Node |
Node class. More... | |
Public Types | |
typedef std::vector< const Node * > | NodeVector |
typedef std::list< const Node * > | NodeList |
Public Member Functions | |
RecoHierarchy () | |
Default constructor. More... | |
virtual | ~RecoHierarchy () |
Destructor. More... | |
void | FillHierarchy (const pandora::PfoList &pfoList, const FoldingParameters &foldParameters) |
Creates a reconstructed hierarchy representation. Without folding this will be a mirror image of the standard ParticleFlowObject (PFO) relationships. However, with folding options selected the hierarchy structure will group together PFOs into nodes based on the folding requirements. More... | |
const NodeVector & | GetRootNodes () const |
Retrieve the root nodes in this hierarchy. More... | |
void | GetFlattenedNodes (NodeVector &nodeVector) const |
Retrieve a flat vector of the nodes in the hierarchy. More... | |
const pandora::ParticleFlowObject * | GetNeutrino () const |
Retrieve the neutrino at the root of the hierarchy if it exists. More... | |
const std::string | ToString () const |
Produce a string representation of the hierarchy. More... | |
Private Attributes | |
NodeVector | m_rootNodes |
The leading nodes (e.g. primary particles, cosmic rays, ...) More... | |
const pandora::ParticleFlowObject * | m_pNeutrino |
The incident neutrino, if it exists. More... | |
RecoHierarchy class.
Definition at line 426 of file LArHierarchyHelper.h.
typedef std::list<const Node *> lar_content::LArHierarchyHelper::RecoHierarchy::NodeList |
Definition at line 431 of file LArHierarchyHelper.h.
typedef std::vector<const Node *> lar_content::LArHierarchyHelper::RecoHierarchy::NodeVector |
Definition at line 429 of file LArHierarchyHelper.h.
lar_content::LArHierarchyHelper::RecoHierarchy::RecoHierarchy | ( | ) |
Default constructor.
Definition at line 764 of file LArHierarchyHelper.cc.
|
virtual |
Destructor.
Definition at line 770 of file LArHierarchyHelper.cc.
void lar_content::LArHierarchyHelper::RecoHierarchy::FillHierarchy | ( | const pandora::PfoList & | pfoList, |
const FoldingParameters & | foldParameters | ||
) |
Creates a reconstructed hierarchy representation. Without folding this will be a mirror image of the standard ParticleFlowObject (PFO) relationships. However, with folding options selected the hierarchy structure will group together PFOs into nodes based on the folding requirements.
If only folding back to primaries, the hierarchy will be relatively flat, with a top-level neutrino or test beam particle, if appropriate, and then a set of leaf nodes, one for each primary particles also containing the PFOs (and corresponding hits) from daughter particles.
If only folding back to leading shower particles, the hierarchy will largely mirror the standard PFO hierarchy, but, when a shower particle is reached (based on the track/shower characterisation), this particle and all daughter particles will be represented by a single leaf node.
If folding back to both primary and leading shower particles the hierarchy will again be rather flat, but in this case, if a primary track-like particle has a downstream shower particle then all downstream particles above the shower-like particle will be folded into the primary node, but a new, daughter leaf node will be created for the shower-like particle and all of its daughters, and a parent-child relationship will be formed between the primary node and shower node.
pfoList | The list of PFOs with which to fill the hierarchy |
foldParameters | The folding parameters to use for the hierarchy |
Definition at line 779 of file LArHierarchyHelper.cc.
void lar_content::LArHierarchyHelper::RecoHierarchy::GetFlattenedNodes | ( | NodeVector & | nodeVector | ) | const |
Retrieve a flat vector of the nodes in the hierarchy.
nodeVector | The output vector for the nodes in the hierarchy in breadth first order |
Definition at line 846 of file LArHierarchyHelper.cc.
|
inline |
Retrieve the neutrino at the root of the hierarchy if it exists.
Definition at line 992 of file LArHierarchyHelper.h.
|
inline |
Retrieve the root nodes in this hierarchy.
Definition at line 985 of file LArHierarchyHelper.h.
const std::string lar_content::LArHierarchyHelper::RecoHierarchy::ToString | ( | ) | const |
Produce a string representation of the hierarchy.
Definition at line 868 of file LArHierarchyHelper.cc.
|
private |
The incident neutrino, if it exists.
Definition at line 584 of file LArHierarchyHelper.h.
|
private |
The leading nodes (e.g. primary particles, cosmic rays, ...)
Definition at line 583 of file LArHierarchyHelper.h.