Pandora
Pandora source code navigator
|
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. | |
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. | |
ConsolidatedPFParticleAnalysisTemplate class.
Definition at line 23 of file ConsolidatedPFParticleAnalysisTemplate_module.cc.
typedef art::Handle<std::vector<recob::PFParticle> > lar_pandora::ConsolidatedPFParticleAnalysisTemplate::PFParticleHandle |
Definition at line 25 of file ConsolidatedPFParticleAnalysisTemplate_module.cc.
typedef std::map<size_t, art::Ptr<recob::PFParticle> > lar_pandora::ConsolidatedPFParticleAnalysisTemplate::PFParticleIdMap |
Definition at line 26 of file ConsolidatedPFParticleAnalysisTemplate_module.cc.
typedef std::vector<art::Ptr<recob::PFParticle> > lar_pandora::ConsolidatedPFParticleAnalysisTemplate::PFParticleVector |
Definition at line 27 of file ConsolidatedPFParticleAnalysisTemplate_module.cc.
typedef std::vector<art::Ptr<recob::Shower> > lar_pandora::ConsolidatedPFParticleAnalysisTemplate::ShowerVector |
Definition at line 29 of file ConsolidatedPFParticleAnalysisTemplate_module.cc.
typedef std::vector<art::Ptr<recob::Track> > lar_pandora::ConsolidatedPFParticleAnalysisTemplate::TrackVector |
Definition at line 28 of file ConsolidatedPFParticleAnalysisTemplate_module.cc.
lar_pandora::ConsolidatedPFParticleAnalysisTemplate::ConsolidatedPFParticleAnalysisTemplate | ( | fhicl::ParameterSet const & | pset | ) |
Constructor.
pset | the set of input fhicl parameters |
Definition at line 126 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 145 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 282 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 239 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 192 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 207 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 135 of file ConsolidatedPFParticleAnalysisTemplate_module.cc.
|
private |
The label for the pandora producer.
Definition at line 96 of file ConsolidatedPFParticleAnalysisTemplate_module.cc.
|
private |
Option to investigate the associations to scores for PFParticles.
Definition at line 99 of file ConsolidatedPFParticleAnalysisTemplate_module.cc.
|
private |
The label for the shower producer from PFParticles.
Definition at line 98 of file ConsolidatedPFParticleAnalysisTemplate_module.cc.
|
private |
The label for the track producer from PFParticles.
Definition at line 97 of file ConsolidatedPFParticleAnalysisTemplate_module.cc.