ConsolidatedPFParticleAnalysisTemplate class. More...
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. More... | |
void | reconfigure (fhicl::ParameterSet const &pset) |
Configure memeber variables using FHiCL parameters. More... | |
void | analyze (const art::Event &evt) |
Analyze an event! More... | |
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. More... | |
void | PrintOutScores (const art::Event &evt, const PFParticleHandle &pfParticleHandle) const |
Print out scores in PFParticleMetadata. More... | |
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. More... | |
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. More... | |
Private Attributes | |
std::string | m_pandoraLabel |
The label for the pandora producer. More... | |
std::string | m_trackLabel |
The label for the track producer from PFParticles. More... | |
std::string | m_showerLabel |
The label for the shower producer from PFParticles. More... | |
bool | m_printOutScores |
Option to investigate the associations to scores for PFParticles. More... | |
ConsolidatedPFParticleAnalysisTemplate class.
Definition at line 24 of file ConsolidatedPFParticleAnalysisTemplate_module.cc.
typedef art::Handle< std::vector<recob::PFParticle> > lar_pandora::ConsolidatedPFParticleAnalysisTemplate::PFParticleHandle |
Definition at line 27 of file ConsolidatedPFParticleAnalysisTemplate_module.cc.
typedef std::map< size_t, art::Ptr<recob::PFParticle> > lar_pandora::ConsolidatedPFParticleAnalysisTemplate::PFParticleIdMap |
Definition at line 28 of file ConsolidatedPFParticleAnalysisTemplate_module.cc.
typedef std::vector< art::Ptr<recob::PFParticle> > lar_pandora::ConsolidatedPFParticleAnalysisTemplate::PFParticleVector |
Definition at line 29 of file ConsolidatedPFParticleAnalysisTemplate_module.cc.
typedef std::vector< art::Ptr<recob::Shower> > lar_pandora::ConsolidatedPFParticleAnalysisTemplate::ShowerVector |
Definition at line 31 of file ConsolidatedPFParticleAnalysisTemplate_module.cc.
typedef std::vector< art::Ptr<recob::Track> > lar_pandora::ConsolidatedPFParticleAnalysisTemplate::TrackVector |
Definition at line 30 of file ConsolidatedPFParticleAnalysisTemplate_module.cc.
lar_pandora::ConsolidatedPFParticleAnalysisTemplate::ConsolidatedPFParticleAnalysisTemplate | ( | fhicl::ParameterSet const & | pset | ) |
Constructor.
pset | the set of input fhicl parameters |
Definition at line 122 of file ConsolidatedPFParticleAnalysisTemplate_module.cc.
void lar_pandora::ConsolidatedPFParticleAnalysisTemplate::analyze | ( | const art::Event & | evt | ) |
Analyze an event!
evt | the art event to analyze |
Investigate scores associated as larpandoraobject::metadata for the PFParticles
Definition at line 139 of file ConsolidatedPFParticleAnalysisTemplate_module.cc.
|
private |
Collect associated tracks and showers to particles in an input particle vector.
particles | a vector holding PFParticles from which to find the associated tracks and showers |
pfParticleHandle | the handle for the PFParticle collection |
evt | the art event to analyze |
tracks | a vector to hold the associated tracks |
showers | a vector to hold the associated showers |
Definition at line 265 of file ConsolidatedPFParticleAnalysisTemplate_module.cc.
|
private |
Produce a mapping from PFParticle ID to the art ptr to the PFParticle itself for fast navigation.
pfParticleMap | the mapping from ID to PFParticle |
crParticles | a vector to hold the top-level PFParticles reconstructed under the cosmic hypothesis |
nuParticles | a vector to hold the final-states of the reconstruced neutrino |
Definition at line 225 of file ConsolidatedPFParticleAnalysisTemplate_module.cc.
|
private |
Produce a mapping from PFParticle ID to the art ptr to the PFParticle itself for fast navigation.
pfParticleHandle | the handle for the PFParticle collection |
pfParticleMap | the mapping from ID to PFParticle |
Definition at line 185 of file ConsolidatedPFParticleAnalysisTemplate_module.cc.
|
private |
Print out scores in PFParticleMetadata.
evt | the art event to analyze |
pfParticleHandle | the handle for the PFParticle collection |
Definition at line 199 of file ConsolidatedPFParticleAnalysisTemplate_module.cc.
void lar_pandora::ConsolidatedPFParticleAnalysisTemplate::reconfigure | ( | fhicl::ParameterSet const & | pset | ) |
Configure memeber variables using FHiCL parameters.
pset | the set of input fhicl parameters |
Definition at line 129 of file ConsolidatedPFParticleAnalysisTemplate_module.cc.
|
private |
The label for the pandora producer.
Definition at line 91 of file ConsolidatedPFParticleAnalysisTemplate_module.cc.
|
private |
Option to investigate the associations to scores for PFParticles.
Definition at line 94 of file ConsolidatedPFParticleAnalysisTemplate_module.cc.
|
private |
The label for the shower producer from PFParticles.
Definition at line 93 of file ConsolidatedPFParticleAnalysisTemplate_module.cc.
|
private |
The label for the track producer from PFParticles.
Definition at line 92 of file ConsolidatedPFParticleAnalysisTemplate_module.cc.