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 Types inherited from art::EDAnalyzer | |
| using | WorkerType = WorkerT< EDAnalyzer > |
| 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... | |
Public Member Functions inherited from art::EDAnalyzer | |
| EDAnalyzer (fhicl::ParameterSet const &pset) | |
| template<typename Config > | |
| EDAnalyzer (Table< Config > const &config) | |
| std::string | workerType () const |
Public Member Functions inherited from art::detail::Analyzer | |
| virtual | ~Analyzer () noexcept |
| Analyzer (fhicl::ParameterSet const &pset) | |
| template<typename Config > | |
| Analyzer (Table< Config > const &config) | |
| 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) |
Public Member Functions inherited from art::Observer | |
| ~Observer () noexcept | |
| Observer (Observer const &)=delete | |
| Observer (Observer &&)=delete | |
| Observer & | operator= (Observer const &)=delete |
| Observer & | operator= (Observer &&)=delete |
| void | registerProducts (ProductDescriptions &, ModuleDescription const &) |
| void | fillDescriptions (ModuleDescription const &) |
| fhicl::ParameterSetID | selectorConfig () const |
Public Member Functions inherited from art::ModuleBase | |
| virtual | ~ModuleBase () noexcept |
| ModuleBase () | |
| 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) |
| template<typename T , BranchType BT> | |
| ViewToken< T > | consumesView (InputTag const &tag) |
| template<typename T , BranchType BT> | |
| ViewToken< T > | mayConsumeView (InputTag const &tag) |
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... | |
Additional Inherited Members | |
Protected Member Functions inherited from art::Observer | |
| std::string const & | processName () const |
| bool | wantAllEvents () const noexcept |
| bool | wantEvent (ScheduleID id, Event const &e) const |
| Handle< TriggerResults > | getTriggerResults (Event const &e) const |
| Observer (fhicl::ParameterSet const &config) | |
| Observer (std::vector< std::string > const &select_paths, std::vector< std::string > const &reject_paths, fhicl::ParameterSet const &config) | |
Protected Member Functions inherited from art::ModuleBase | |
| 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 () |
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.
1.8.11