![]() |
LArSoft
v10_04_05
Liquid Argon Software toolkit - https://larsoft.org/
|
LArEventTopology class. More...
#include "LArEventTopology.h"
Classes | |
class | Particle |
Public Member Functions | |
LArEventTopology (const pandora::CaloHitList &caloHitList2D) | |
Constructor. More... | |
virtual | ~LArEventTopology () |
Destructor. More... | |
void | ConstructVisibleHierarchy () |
Construct a particle hierarchy based on the key topological features in an event. More... | |
void | GetVertices (pandora::CartesianPointVector &vertices) const |
Extract the clear topological vertices from the event. More... | |
void | PruneHierarchy () |
Fold or remove particles that aren't substantive parts of the hierarchy. More... | |
void | Print () const |
Print the visible hierarchy. More... | |
Private Types | |
typedef std::map< const pandora::MCParticle *, pandora::CaloHitList > | MCHitMap |
Private Member Functions | |
void | ConstructVisibleHierarchy (Particle *pParticle, const pandora::MCParticle *const pRootMC) |
Construct a particle hierarhcy based on the key topological features in an event. More... | |
Private Attributes | |
MCHitMap | m_mcHitMap |
const pandora::MCParticle * | m_pRoot |
Particle * | m_pParticle |
LArEventTopology class.
Definition at line 21 of file LArEventTopology.h.
|
private |
Definition at line 24 of file LArEventTopology.h.
lar_content::LArEventTopology::LArEventTopology | ( | const pandora::CaloHitList & | caloHitList2D | ) |
Constructor.
caloHitList2D | The collection of all hits across all views |
Definition at line 23 of file LArEventTopology.cc.
References lar_content::LArMCParticleHelper::IsNeutrino(), m_mcHitMap, m_pParticle, and m_pRoot.
|
virtual |
void lar_content::LArEventTopology::ConstructVisibleHierarchy | ( | ) |
Construct a particle hierarchy based on the key topological features in an event.
Definition at line 56 of file LArEventTopology.cc.
References m_pParticle, and m_pRoot.
Referenced by lar_content::VertexMonitoringAlgorithm::AssessSecondaryVertices(), lar_dl_content::DlSecondaryVertexingAlgorithm::PrepareTrainingSample(), Print(), and lar_content::CheatingSecondaryVertexAlgorithm::Run().
|
private |
Construct a particle hierarhcy based on the key topological features in an event.
pParticle | The parent particle relative to which the hierarchy should be constructed |
pRootMC | The underlying MC particle associated with the parent particle |
void lar_content::LArEventTopology::GetVertices | ( | pandora::CartesianPointVector & | vertices | ) | const |
Extract the clear topological vertices from the event.
Definition at line 64 of file LArEventTopology.cc.
References lar_content::LArEventTopology::Particle::GetVertices(), and m_pParticle.
Referenced by lar_content::VertexMonitoringAlgorithm::AssessSecondaryVertices(), lar_dl_content::DlSecondaryVertexingAlgorithm::PrepareTrainingSample(), and lar_content::CheatingSecondaryVertexAlgorithm::Run().
void lar_content::LArEventTopology::Print | ( | ) | const |
Print the visible hierarchy.
Definition at line 95 of file LArEventTopology.cc.
References lar_content::LArEventTopology::Particle::AddChild(), ConstructVisibleHierarchy(), m_mcHitMap, m_pParticle, m_pRoot, lar_content::LArEventTopology::Particle::Print(), and util::to_string().
void lar_content::LArEventTopology::PruneHierarchy | ( | ) |
Fold or remove particles that aren't substantive parts of the hierarchy.
Definition at line 123 of file LArEventTopology.cc.
References m_mcHitMap, m_pParticle, lar_content::LArEventTopology::Particle::Parse(), lar_content::LArEventTopology::Particle::Particle(), and lar_content::LArEventTopology::Particle::Prune().
Referenced by lar_dl_content::DlSecondaryVertexingAlgorithm::PrepareTrainingSample(), and lar_content::CheatingSecondaryVertexAlgorithm::Run().
|
private |
Definition at line 131 of file LArEventTopology.h.
Referenced by LArEventTopology(), Print(), and PruneHierarchy().
|
private |
Definition at line 133 of file LArEventTopology.h.
Referenced by ConstructVisibleHierarchy(), GetVertices(), LArEventTopology(), Print(), PruneHierarchy(), and ~LArEventTopology().
|
private |
Definition at line 132 of file LArEventTopology.h.
Referenced by ConstructVisibleHierarchy(), LArEventTopology(), and Print().