#include <LArHierarchyHelper.h>
Public Member Functions | |
| Node (MCHierarchy &hierarchy, const pandora::MCParticle *pMCParticle, const int tier=1) | |
| Create a node with a primary MC particle. More... | |
| Node (MCHierarchy &hierarchy, const pandora::MCParticleList &mcParticleList, const pandora::CaloHitList &caloHitList, const int tier=1) | |
| Create a node from a list of MC particles. More... | |
| virtual | ~Node () |
| Destructor. More... | |
| bool | IsReconstructable () const |
| Return whether or not this node should be considered reconstructable. More... | |
| void | FillHierarchy (const pandora::MCParticle *pRoot, const FoldingParameters &foldParameters) |
| Recursively fill the hierarchy based on the criteria established for this MCHierarchy. More... | |
| void | FillFlat (const pandora::MCParticle *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... | |
| int | GetId () const |
| Retrieve the unique ID of this node. More... | |
| const pandora::MCParticle * | GetLeadingMCParticle () const |
| Retrieve the leading MC particle associated with this node. More... | |
| const pandora::MCParticleList & | GetMCParticles () const |
| Retrieve the MC particles 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. More... | |
| int | GetHierarchyTier () const |
| Retrieve the hierarchy tier of this node. More... | |
| bool | IsNeutrinoInduced () const |
| Check if this is a particle induced by a neutrino interaction. More... | |
| bool | IsTestBeamParticle () const |
| Check if this is a test beam particle. More... | |
| bool | IsCosmicRay () const |
| Check if this is a cosmic ray particle. More... | |
| bool | IsLeadingLepton () const |
| Returns whether or not this particle is the leading lepton in the event. More... | |
| const std::string | ToString (const std::string &prefix) const |
| Produce a string representation of the hierarchy. More... | |
Private Member Functions | |
| void | SetLeadingLepton () |
| Tags the particle as the leading lepton. More... | |
Private Attributes | |
| MCHierarchy & | m_hierarchy |
| The parent MC hierarchy. More... | |
| pandora::MCParticleList | m_mcParticles |
| The list of MC particles 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... | |
| const pandora::MCParticle * | m_mainParticle |
| The leading MC particle for this node. More... | |
| int | m_tier |
| The hierarchy tier for this node. More... | |
| int | m_pdg |
| The PDG code of the leading MC particle for this node. More... | |
| bool | m_isLeadingLepton |
| Whether or not this node is the leading lepton. More... | |
Friends | |
| class | MCHierarchy |
Node class.
Definition at line 131 of file LArHierarchyHelper.h.
| lar_content::LArHierarchyHelper::MCHierarchy::Node::Node | ( | MCHierarchy & | hierarchy, |
| const pandora::MCParticle * | pMCParticle, | ||
| const int | tier = 1 |
||
| ) |
Create a node with a primary MC particle.
| hierarchy | The parent hierarchy of this node |
| pMCParticle | The primary MC particle with which this node should be created |
| tier | The tier that should be assigned to this node |
| lar_content::LArHierarchyHelper::MCHierarchy::Node::Node | ( | MCHierarchy & | hierarchy, |
| const pandora::MCParticleList & | mcParticleList, | ||
| const pandora::CaloHitList & | caloHitList, | ||
| const int | tier = 1 |
||
| ) |
Create a node from a list of MC particles.
| hierarchy | The parent hierarchy of this node |
| mcParticleList | The MC particle list with which this node should be created |
| caloHitList | The CaloHit list with which this node should be created |
| tier | The tier that should be assigned to this node |
|
virtual |
Destructor.
Definition at line 537 of file LArHierarchyHelper.cc.
| void lar_content::LArHierarchyHelper::MCHierarchy::Node::FillFlat | ( | const pandora::MCParticle * | pRoot | ) |
Fill this node by folding all descendent particles to this node.
| pRoot | The MC particle acting as the root of the current branch of the hierarchy |
Definition at line 619 of file LArHierarchyHelper.cc.
| void lar_content::LArHierarchyHelper::MCHierarchy::Node::FillHierarchy | ( | const pandora::MCParticle * | pRoot, |
| const FoldingParameters & | foldParameters | ||
| ) |
Recursively fill the hierarchy based on the criteria established for this MCHierarchy.
| pRoot | The MC particle acting as the root of the current branch of the hierarchy |
| foldParameters | The folding parameters |
Definition at line 548 of file LArHierarchyHelper.cc.
|
inline |
Retrieve the CaloHits associated with this node.
Definition at line 898 of file LArHierarchyHelper.h.
|
inline |
Return the vector of children for this node.
Definition at line 884 of file LArHierarchyHelper.h.
|
inline |
Retrieve the hierarchy tier of this node.
Definition at line 919 of file LArHierarchyHelper.h.
| int lar_content::LArHierarchyHelper::MCHierarchy::Node::GetId | ( | ) | const |
Retrieve the unique ID of this node.
Definition at line 650 of file LArHierarchyHelper.cc.
|
inline |
Retrieve the leading MC particle associated with this node.
Definition at line 905 of file LArHierarchyHelper.h.
|
inline |
Retrieve the MC particles associated with this node.
Definition at line 891 of file LArHierarchyHelper.h.
|
inline |
Retrieve the PDG code for the leading particle in this node.
Definition at line 912 of file LArHierarchyHelper.h.
| bool lar_content::LArHierarchyHelper::MCHierarchy::Node::IsCosmicRay | ( | ) | const |
Check if this is a cosmic ray particle.
Definition at line 709 of file LArHierarchyHelper.cc.
|
inline |
Returns whether or not this particle is the leading lepton in the event.
Definition at line 933 of file LArHierarchyHelper.h.
|
inline |
Check if this is a particle induced by a neutrino interaction.
Definition at line 926 of file LArHierarchyHelper.h.
| bool lar_content::LArHierarchyHelper::MCHierarchy::Node::IsReconstructable | ( | ) | const |
Return whether or not this node should be considered reconstructable.
Definition at line 657 of file LArHierarchyHelper.cc.
| bool lar_content::LArHierarchyHelper::MCHierarchy::Node::IsTestBeamParticle | ( | ) | const |
Check if this is a test beam particle.
Definition at line 699 of file LArHierarchyHelper.cc.
|
inlineprivate |
Tags the particle as the leading lepton.
Definition at line 940 of file LArHierarchyHelper.h.
| const std::string lar_content::LArHierarchyHelper::MCHierarchy::Node::ToString | ( | const std::string & | prefix | ) | const |
Produce a string representation of the hierarchy.
Definition at line 719 of file LArHierarchyHelper.cc.
|
friend |
Definition at line 279 of file LArHierarchyHelper.h.
|
private |
The list of calo hits of which this node is composed.
Definition at line 272 of file LArHierarchyHelper.h.
|
private |
The child nodes of this node.
Definition at line 273 of file LArHierarchyHelper.h.
|
private |
The parent MC hierarchy.
Definition at line 270 of file LArHierarchyHelper.h.
|
private |
Whether or not this node is the leading lepton.
Definition at line 277 of file LArHierarchyHelper.h.
|
private |
The leading MC particle for this node.
Definition at line 274 of file LArHierarchyHelper.h.
|
private |
The list of MC particles of which this node is composed.
Definition at line 271 of file LArHierarchyHelper.h.
|
private |
The PDG code of the leading MC particle for this node.
Definition at line 276 of file LArHierarchyHelper.h.
|
private |
The hierarchy tier for this node.
Definition at line 275 of file LArHierarchyHelper.h.
1.8.5