![]() |
LArSoft
v09_93_00
Liquid Argon Software toolkit - https://larsoft.org/
|
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 |
| using | ModuleType = EDAnalyzer |
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... | |
| void | doBeginJob (SharedResources const &resources) |
| void | doEndJob () |
| void | doRespondToOpenInputFile (FileBlock const &fb) |
| void | doRespondToCloseInputFile (FileBlock const &fb) |
| void | doRespondToOpenOutputFiles (FileBlock const &fb) |
| void | doRespondToCloseOutputFiles (FileBlock const &fb) |
| bool | doBeginRun (RunPrincipal &rp, ModuleContext const &mc) |
| bool | doEndRun (RunPrincipal &rp, ModuleContext const &mc) |
| bool | doBeginSubRun (SubRunPrincipal &srp, ModuleContext const &mc) |
| bool | doEndSubRun (SubRunPrincipal &srp, ModuleContext const &mc) |
| bool | doEvent (EventPrincipal &ep, ModuleContext const &mc, std::atomic< std::size_t > &counts_run, std::atomic< std::size_t > &counts_passed, std::atomic< std::size_t > &counts_failed) |
| ModuleDescription const & | moduleDescription () const |
| void | setModuleDescription (ModuleDescription const &) |
| std::array< std::vector< ProductInfo >, NumBranchTypes > const & | getConsumables () const |
| void | sortConsumables (std::string const ¤t_process_name) |
| std::unique_ptr< Worker > | makeWorker (WorkerParams const &wp) |
| template<typename T , BranchType BT> | |
| ViewToken< T > | consumesView (InputTag const &tag) |
| template<typename T , BranchType BT> | |
| ViewToken< T > | mayConsumeView (InputTag const &tag) |
Protected Member Functions | |
| std::string const & | processName () const |
| bool | wantAllEvents () const noexcept |
| bool | wantEvent (ScheduleID id, Event const &e) const |
| Handle< TriggerResults > | getTriggerResults (Event const &e) const |
| ConsumesCollector & | consumesCollector () |
| template<typename T , BranchType = InEvent> | |
| ProductToken< T > | consumes (InputTag const &) |
| template<typename Element , BranchType = InEvent> | |
| ViewToken< Element > | consumesView (InputTag const &) |
| template<typename T , BranchType = InEvent> | |
| void | consumesMany () |
| template<typename T , BranchType = InEvent> | |
| ProductToken< T > | mayConsume (InputTag const &) |
| template<typename Element , BranchType = InEvent> | |
| ViewToken< Element > | mayConsumeView (InputTag const &) |
| template<typename T , BranchType = InEvent> | |
| void | mayConsumeMany () |
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 23 of file ConsolidatedPFParticleAnalysisTemplate_module.cc.
|
inherited |
Definition at line 22 of file EDAnalyzer.h.
| 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.
References reconfigure().
| 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.
References CollectTracksAndShowers(), art::ProductRetriever::getByLabel(), GetFinalStatePFParticleVectors(), GetPFParticleIdMap(), art::Handle< T >::isValid(), m_pandoraLabel, m_printOutScores, and PrintOutScores().
|
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.
References m_showerLabel, and m_trackLabel.
Referenced by analyze().
|
protectedinherited |
Definition at line 61 of file ModuleBase.h.
References art::ModuleBase::collector_, and art::ConsumesCollector::consumes().
|
protectedinherited |
|
protectedinherited |
Definition at line 75 of file ModuleBase.h.
References art::ModuleBase::collector_, and art::ConsumesCollector::consumesMany().
|
protectedinherited |
|
inherited |
Definition at line 68 of file ModuleBase.h.
References art::ModuleBase::collector_, and art::ConsumesCollector::consumesView().
|
inherited |
Definition at line 25 of file Analyzer.cc.
Referenced by art::detail::Analyzer::Analyzer().
|
inherited |
Definition at line 68 of file Analyzer.cc.
References art::ModuleContext::scheduleID().
Referenced by art::detail::Analyzer::Analyzer().
|
inherited |
Definition at line 84 of file Analyzer.cc.
References art::ModuleContext::scheduleID().
Referenced by art::detail::Analyzer::Analyzer().
|
inherited |
Definition at line 33 of file Analyzer.cc.
Referenced by art::detail::Analyzer::Analyzer().
|
inherited |
Definition at line 76 of file Analyzer.cc.
References art::ModuleContext::scheduleID().
Referenced by art::detail::Analyzer::Analyzer().
|
inherited |
Definition at line 92 of file Analyzer.cc.
References art::ModuleContext::scheduleID().
Referenced by art::detail::Analyzer::Analyzer().
|
inherited |
Definition at line 100 of file Analyzer.cc.
References e, and art::ModuleContext::scheduleID().
Referenced by art::detail::Analyzer::Analyzer().
|
inherited |
Definition at line 47 of file Analyzer.cc.
Referenced by art::detail::Analyzer::Analyzer().
|
inherited |
Definition at line 61 of file Analyzer.cc.
Referenced by art::detail::Analyzer::Analyzer().
|
inherited |
Definition at line 40 of file Analyzer.cc.
Referenced by art::detail::Analyzer::Analyzer().
|
inherited |
Definition at line 54 of file Analyzer.cc.
Referenced by art::detail::Analyzer::Analyzer().
|
inherited |
Definition at line 43 of file ModuleBase.cc.
References art::ModuleBase::collector_, and art::ConsumesCollector::getConsumables().
|
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.
References util::abs(), recob::PFParticle::Daughters(), recob::PFParticle::IsPrimary(), and recob::PFParticle::PdgCode().
Referenced by analyze().
|
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.
References recob::PFParticle::Self().
Referenced by analyze().
|
protectedinherited |
Definition at line 75 of file Observer.cc.
References art::ProductRetriever::get(), and art::Observer::selectors_.
Referenced by art::OutputModule::doWriteEvent(), and art::Observer::wantAllEvents().
|
inherited |
Definition at line 37 of file ModuleBase.cc.
References art::ModuleBase::doMakeWorker(), and art::NumBranchTypes.
|
protectedinherited |
Definition at line 82 of file ModuleBase.h.
References art::ModuleBase::collector_, and art::ConsumesCollector::mayConsume().
|
protectedinherited |
Definition at line 96 of file ModuleBase.h.
References art::ModuleBase::collector_, and art::ConsumesCollector::mayConsumeMany().
|
protectedinherited |
|
inherited |
Definition at line 89 of file ModuleBase.h.
References art::ModuleBase::collector_, and art::ConsumesCollector::mayConsumeView().
|
inherited |
Definition at line 13 of file ModuleBase.cc.
References art::errors::LogicError.
Referenced by art::OutputModule::doRespondToOpenInputFile(), art::OutputModule::doWriteEvent(), art::Modifier::fillProductDescriptions(), art::OutputModule::makePlugins_(), art::OutputWorker::OutputWorker(), reco::shower::LArPandoraModularShowerCreation::produce(), art::Modifier::registerProducts(), and art::OutputModule::registerProducts().
|
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.
References m_pandoraLabel, and recob::PFParticle::Self().
Referenced by analyze().
|
protectedinherited |
Definition at line 57 of file Observer.cc.
References art::Observer::process_name_.
Referenced by art::FileDumperOutput::printPrincipal().
| 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.
References fhicl::ParameterSet::get(), m_pandoraLabel, m_printOutScores, m_showerLabel, and m_trackLabel.
Referenced by ConsolidatedPFParticleAnalysisTemplate().
|
inherited |
|
inherited |
Definition at line 49 of file ModuleBase.cc.
References art::ModuleBase::collector_, and art::ConsumesCollector::sortConsumables().
|
inlineprotectednoexceptinherited |
Definition at line 31 of file Observer.h.
References e, art::Observer::getTriggerResults(), art::Observer::wantAllEvents_, and art::Observer::wantEvent().
|
protectedinherited |
Definition at line 63 of file Observer.cc.
References art::Observer::rejectors_, art::Observer::selectors_, and art::Observer::wantAllEvents_.
Referenced by art::OutputModule::doEvent(), art::OutputModule::doWriteEvent(), and art::Observer::wantAllEvents().
|
private |
The label for the pandora producer.
Definition at line 96 of file ConsolidatedPFParticleAnalysisTemplate_module.cc.
Referenced by analyze(), PrintOutScores(), and reconfigure().
|
private |
Option to investigate the associations to scores for PFParticles.
Definition at line 99 of file ConsolidatedPFParticleAnalysisTemplate_module.cc.
Referenced by analyze(), and reconfigure().
|
private |
The label for the shower producer from PFParticles.
Definition at line 98 of file ConsolidatedPFParticleAnalysisTemplate_module.cc.
Referenced by CollectTracksAndShowers(), and reconfigure().
|
private |
The label for the track producer from PFParticles.
Definition at line 97 of file ConsolidatedPFParticleAnalysisTemplate_module.cc.
Referenced by CollectTracksAndShowers(), and reconfigure().