Pandora
Pandora source code navigator
Loading...
Searching...
No Matches
lar_pandora::ConsolidatedPFParticleAnalysisTemplate Class Reference

ConsolidatedPFParticleAnalysisTemplate class. More...

Inheritance diagram for lar_pandora::ConsolidatedPFParticleAnalysisTemplate:
Collaboration diagram for lar_pandora::ConsolidatedPFParticleAnalysisTemplate:

Public Types

typedef art::Handle< std::vector< recob::PFParticle > > PFParticleHandle
 
typedef std::map< size_t, art::Ptr< recob::PFParticle > > PFParticleIdMap
 
typedef std::vector< art::Ptr< recob::PFParticle > > PFParticleVector
 
typedef std::vector< art::Ptr< recob::Track > > TrackVector
 
typedef std::vector< art::Ptr< recob::Shower > > ShowerVector
 

Public Member Functions

 ConsolidatedPFParticleAnalysisTemplate (fhicl::ParameterSet const &pset)
 Constructor.
 
void reconfigure (fhicl::ParameterSet const &pset)
 Configure memeber variables using FHiCL parameters.
 
void analyze (const art::Event &evt)
 Analyze an event!
 

Private Member Functions

void GetPFParticleIdMap (const PFParticleHandle &pfParticleHandle, PFParticleIdMap &pfParticleMap)
 Produce a mapping from PFParticle ID to the art ptr to the PFParticle itself for fast navigation.
 
void PrintOutScores (const art::Event &evt, const PFParticleHandle &pfParticleHandle) const
 Print out scores in PFParticleMetadata.
 
void GetFinalStatePFParticleVectors (const PFParticleIdMap &pfParticleMap, PFParticleVector &crParticles, PFParticleVector &nuParticles)
 Produce a mapping from PFParticle ID to the art ptr to the PFParticle itself for fast navigation.
 
void CollectTracksAndShowers (const PFParticleVector &particles, const PFParticleHandle &pfParticleHandle, const art::Event &evt, TrackVector &tracks, ShowerVector &showers)
 Collect associated tracks and showers to particles in an input particle vector.
 

Private Attributes

std::string m_pandoraLabel
 The label for the pandora producer.
 
std::string m_trackLabel
 The label for the track producer from PFParticles.
 
std::string m_showerLabel
 The label for the shower producer from PFParticles.
 
bool m_printOutScores
 Option to investigate the associations to scores for PFParticles.
 

Detailed Description

Member Typedef Documentation

◆ PFParticleHandle

typedef art::Handle<std::vector<recob::PFParticle> > lar_pandora::ConsolidatedPFParticleAnalysisTemplate::PFParticleHandle

◆ PFParticleIdMap

typedef std::map<size_t, art::Ptr<recob::PFParticle> > lar_pandora::ConsolidatedPFParticleAnalysisTemplate::PFParticleIdMap

◆ PFParticleVector

typedef std::vector<art::Ptr<recob::PFParticle> > lar_pandora::ConsolidatedPFParticleAnalysisTemplate::PFParticleVector

◆ ShowerVector

typedef std::vector<art::Ptr<recob::Shower> > lar_pandora::ConsolidatedPFParticleAnalysisTemplate::ShowerVector

◆ TrackVector

typedef std::vector<art::Ptr<recob::Track> > lar_pandora::ConsolidatedPFParticleAnalysisTemplate::TrackVector

Constructor & Destructor Documentation

◆ ConsolidatedPFParticleAnalysisTemplate()

lar_pandora::ConsolidatedPFParticleAnalysisTemplate::ConsolidatedPFParticleAnalysisTemplate ( fhicl::ParameterSet const &  pset)

Constructor.

Parameters
psetthe set of input fhicl parameters

Definition at line 126 of file ConsolidatedPFParticleAnalysisTemplate_module.cc.

Here is the call graph for this function:

Member Function Documentation

◆ analyze()

void lar_pandora::ConsolidatedPFParticleAnalysisTemplate::analyze ( const art::Event &  evt)

Analyze an event!

Parameters
evtthe art event to analyze

Investigate scores associated as larpandoraobject::metadata for the PFParticles

Definition at line 145 of file ConsolidatedPFParticleAnalysisTemplate_module.cc.

Here is the call graph for this function:

◆ CollectTracksAndShowers()

void lar_pandora::ConsolidatedPFParticleAnalysisTemplate::CollectTracksAndShowers ( const PFParticleVector particles,
const PFParticleHandle pfParticleHandle,
const art::Event &  evt,
TrackVector tracks,
ShowerVector showers 
)
private

Collect associated tracks and showers to particles in an input particle vector.

Parameters
particlesa vector holding PFParticles from which to find the associated tracks and showers
pfParticleHandlethe handle for the PFParticle collection
evtthe art event to analyze
tracksa vector to hold the associated tracks
showersa vector to hold the associated showers

Definition at line 282 of file ConsolidatedPFParticleAnalysisTemplate_module.cc.

Here is the caller graph for this function:

◆ GetFinalStatePFParticleVectors()

void lar_pandora::ConsolidatedPFParticleAnalysisTemplate::GetFinalStatePFParticleVectors ( const PFParticleIdMap pfParticleMap,
PFParticleVector crParticles,
PFParticleVector nuParticles 
)
private

Produce a mapping from PFParticle ID to the art ptr to the PFParticle itself for fast navigation.

Parameters
pfParticleMapthe mapping from ID to PFParticle
crParticlesa vector to hold the top-level PFParticles reconstructed under the cosmic hypothesis
nuParticlesa vector to hold the final-states of the reconstruced neutrino

Definition at line 239 of file ConsolidatedPFParticleAnalysisTemplate_module.cc.

Here is the caller graph for this function:

◆ GetPFParticleIdMap()

void lar_pandora::ConsolidatedPFParticleAnalysisTemplate::GetPFParticleIdMap ( const PFParticleHandle pfParticleHandle,
PFParticleIdMap pfParticleMap 
)
private

Produce a mapping from PFParticle ID to the art ptr to the PFParticle itself for fast navigation.

Parameters
pfParticleHandlethe handle for the PFParticle collection
pfParticleMapthe mapping from ID to PFParticle

Definition at line 192 of file ConsolidatedPFParticleAnalysisTemplate_module.cc.

Here is the caller graph for this function:

◆ PrintOutScores()

void lar_pandora::ConsolidatedPFParticleAnalysisTemplate::PrintOutScores ( const art::Event &  evt,
const PFParticleHandle pfParticleHandle 
) const
private

Print out scores in PFParticleMetadata.

Parameters
evtthe art event to analyze
pfParticleHandlethe handle for the PFParticle collection

Definition at line 207 of file ConsolidatedPFParticleAnalysisTemplate_module.cc.

Here is the caller graph for this function:

◆ reconfigure()

void lar_pandora::ConsolidatedPFParticleAnalysisTemplate::reconfigure ( fhicl::ParameterSet const &  pset)

Configure memeber variables using FHiCL parameters.

Parameters
psetthe set of input fhicl parameters

Definition at line 135 of file ConsolidatedPFParticleAnalysisTemplate_module.cc.

Here is the caller graph for this function:

Member Data Documentation

◆ m_pandoraLabel

std::string lar_pandora::ConsolidatedPFParticleAnalysisTemplate::m_pandoraLabel
private

The label for the pandora producer.

Definition at line 96 of file ConsolidatedPFParticleAnalysisTemplate_module.cc.

◆ m_printOutScores

bool lar_pandora::ConsolidatedPFParticleAnalysisTemplate::m_printOutScores
private

Option to investigate the associations to scores for PFParticles.

Definition at line 99 of file ConsolidatedPFParticleAnalysisTemplate_module.cc.

◆ m_showerLabel

std::string lar_pandora::ConsolidatedPFParticleAnalysisTemplate::m_showerLabel
private

The label for the shower producer from PFParticles.

Definition at line 98 of file ConsolidatedPFParticleAnalysisTemplate_module.cc.

◆ m_trackLabel

std::string lar_pandora::ConsolidatedPFParticleAnalysisTemplate::m_trackLabel
private

The label for the track producer from PFParticles.

Definition at line 97 of file ConsolidatedPFParticleAnalysisTemplate_module.cc.


The documentation for this class was generated from the following file: