LArSoft
v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
|
PFParticleCosmicAna class. More...
Public Types | |
using | ModuleType = EDAnalyzer |
Public Member Functions | |
PFParticleCosmicAna (fhicl::ParameterSet const &pset) | |
Constructor. More... | |
virtual | ~PFParticleCosmicAna () |
Destructor. More... | |
void | beginJob () |
void | endJob () |
void | analyze (const art::Event &evt) |
void | reconfigure (fhicl::ParameterSet const &pset) |
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 | FillRecoTree (const PFParticlesToHits &recoParticlesToHits, const PFParticlesToTracks &recoParticlesToTracks, const TracksToCosmicTags &recoTracksToCosmicTags) |
Fill event-level variables using input maps between reconstructed objects. More... | |
void | FillTrueTree (const HitVector &hitVector, const HitsToMCParticles &trueHitsToParticles, const HitsToPFParticles &recoHitsToParticles, const MCParticlesToMCTruth &particlesToTruth, const PFParticlesToTracks &particlesToTracks, const TracksToCosmicTags &tracksToCosmicTags) |
Fill track-level variables using input maps between reconstructed objects. More... | |
float | GetCosmicScore (const art::Ptr< recob::PFParticle > particle, const PFParticlesToTracks &recoParticlesToTracks, const TracksToCosmicTags &recoTracksToCosmicTags) const |
Get cosmic score for a PFParticle using track-level information. More... | |
PFParticleCosmicAna class.
Definition at line 23 of file PFParticleCosmicAna_module.cc.
|
inherited |
Definition at line 22 of file EDAnalyzer.h.
lar_pandora::PFParticleCosmicAna::PFParticleCosmicAna | ( | fhicl::ParameterSet const & | pset | ) |
Constructor.
pset |
Definition at line 172 of file PFParticleCosmicAna_module.cc.
References reconfigure().
|
virtual |
void lar_pandora::PFParticleCosmicAna::analyze | ( | const art::Event & | evt | ) |
Definition at line 273 of file PFParticleCosmicAna_module.cc.
References lar_pandora::LArPandoraHelper::BuildMCParticleHitMaps(), lar_pandora::LArPandoraHelper::BuildPFParticleHitMaps(), lar_pandora::LArPandoraHelper::CollectCosmicTags(), lar_pandora::LArPandoraHelper::CollectHits(), lar_pandora::LArPandoraHelper::CollectMCParticles(), lar_pandora::LArPandoraHelper::CollectPFParticles(), lar_pandora::LArPandoraHelper::CollectTracks(), art::EventID::event(), FillRecoTree(), FillTrueTree(), art::Event::id(), lar_pandora::LArPandoraHelper::kAddDaughters, lar_pandora::LArPandoraHelper::kIgnoreDaughters, m_cosmicLabel, m_event, m_geantModuleLabel, m_hitfinderLabel, m_particleLabel, m_run, m_trackfitLabel, m_useDaughterMCParticles, m_useDaughterPFParticles, and art::Event::run().
|
virtual |
Reimplemented from art::EDAnalyzer.
Definition at line 199 of file PFParticleCosmicAna_module.cc.
References m_cosmicScore, m_event, m_index, m_isPrimary, m_isTrackLike, m_nCosmicHits, m_nCosmicHitsFullyTagged, m_nCosmicHitsNotReconstructed, m_nCosmicHitsNotTagged, m_nCosmicHitsReconstructed, m_nCosmicHitsSemiTagged, m_nHits, m_nNeutrinoHits, m_nNeutrinoHitsFullyTagged, m_nNeutrinoHitsNotReconstructed, m_nNeutrinoHitsNotTagged, m_nNeutrinoHitsReconstructed, m_nNeutrinoHitsSemiTagged, m_nTracks, m_pdgCode, m_pRecoTree, m_pTrueTree, m_run, m_self, m_trackEndContained, m_trackEndDeltaYZ, m_trackEndDirX, m_trackEndDirY, m_trackEndDirZ, m_trackEndX, m_trackEndY, m_trackEndZ, m_trackLength, m_trackVtxContained, m_trackVtxDeltaYZ, m_trackVtxDirX, m_trackVtxDirY, m_trackVtxDirZ, m_trackVtxX, m_trackVtxY, m_trackVtxZ, m_trackWidthX, m_trackWidthY, and m_trackWidthZ.
|
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().
|
virtual |
Reimplemented from art::EDAnalyzer.
Definition at line 269 of file PFParticleCosmicAna_module.cc.
|
private |
Fill event-level variables using input maps between reconstructed objects.
recoParticlesToHits | mapping from particles to hits |
recoParticlesToTracks | mapping from particles to tracks |
recoTracksToCosmicTags | mapping from tracks to cosmic tags |
Definition at line 354 of file PFParticleCosmicAna_module.cc.
References geo::GeometryCore::DetHalfHeight(), geo::GeometryCore::DetHalfWidth(), geo::GeometryCore::DetLength(), recob::Track::End(), recob::Track::EndDirection(), GetCosmicScore(), recob::PFParticle::IsPrimary(), lar_pandora::LArPandoraHelper::IsTrack(), recob::Track::Length(), m_cosmicContainmentCut, m_cosmicScore, m_index, m_isPrimary, m_isTrackLike, m_nHits, m_nTracks, m_pdgCode, m_pRecoTree, m_self, m_trackEndContained, m_trackEndDeltaYZ, m_trackEndDirX, m_trackEndDirY, m_trackEndDirZ, m_trackEndX, m_trackEndY, m_trackEndZ, m_trackLength, m_trackVtxContained, m_trackVtxDeltaYZ, m_trackVtxDirX, m_trackVtxDirY, m_trackVtxDirZ, m_trackVtxX, m_trackVtxY, m_trackVtxZ, m_trackWidthX, m_trackWidthY, m_trackWidthZ, recob::PFParticle::PdgCode(), recob::PFParticle::Self(), track, recob::Track::Vertex(), and recob::Track::VertexDirection().
Referenced by analyze().
|
private |
Fill track-level variables using input maps between reconstructed objects.
hitVector | input vector of reconstructed hits |
trueHitsToParticles | mapping between true hits and particles |
recoHitsToParticles | mapping between reconstructed hits and particles |
particlesToTruth | mapping between MC particles and MC truth |
particlesToTracks | mapping between reconstructed particles and tracks |
tracksToCosmicTags | mapping between reconstructed tracks and cosmic tags |
Definition at line 507 of file PFParticleCosmicAna_module.cc.
References GetCosmicScore(), m_nCosmicHits, m_nCosmicHitsFullyTagged, m_nCosmicHitsNotReconstructed, m_nCosmicHitsNotTagged, m_nCosmicHitsReconstructed, m_nCosmicHitsSemiTagged, m_nHits, m_nNeutrinoHits, m_nNeutrinoHitsFullyTagged, m_nNeutrinoHitsNotReconstructed, m_nNeutrinoHitsNotTagged, m_nNeutrinoHitsReconstructed, m_nNeutrinoHitsSemiTagged, m_pTrueTree, and simb::MCTruth::NeutrinoSet().
Referenced by analyze().
|
inherited |
Definition at line 43 of file ModuleBase.cc.
References art::ModuleBase::collector_, and art::ConsumesCollector::getConsumables().
|
private |
Get cosmic score for a PFParticle using track-level information.
particle | input reconstructed particle |
recoParticlesToTracks | mapping between reconstructed particles and tracks |
recoTracksToCosmicTags | mapping between reconstructed tracks and cosmic tags |
Definition at line 594 of file PFParticleCosmicAna_module.cc.
References anab::CosmicTag::CosmicScore(), f, and track.
Referenced by FillRecoTree(), and FillTrueTree().
|
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().
|
protectedinherited |
Definition at line 57 of file Observer.cc.
References art::Observer::process_name_.
Referenced by art::FileDumperOutput::printPrincipal().
void lar_pandora::PFParticleCosmicAna::reconfigure | ( | fhicl::ParameterSet const & | pset | ) |
Definition at line 183 of file PFParticleCosmicAna_module.cc.
References fhicl::ParameterSet::get(), m_cosmicContainmentCut, m_cosmicLabel, m_geantModuleLabel, m_hitfinderLabel, m_particleLabel, m_trackfitLabel, m_useDaughterMCParticles, and m_useDaughterPFParticles.
Referenced by PFParticleCosmicAna().
|
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 |
Definition at line 142 of file PFParticleCosmicAna_module.cc.
Referenced by FillRecoTree(), and reconfigure().
|
private |
Definition at line 136 of file PFParticleCosmicAna_module.cc.
Referenced by analyze(), and reconfigure().
|
private |
Definition at line 93 of file PFParticleCosmicAna_module.cc.
Referenced by beginJob(), and FillRecoTree().
|
private |
Definition at line 86 of file PFParticleCosmicAna_module.cc.
Referenced by analyze(), and beginJob().
|
private |
Definition at line 137 of file PFParticleCosmicAna_module.cc.
Referenced by analyze(), and reconfigure().
|
private |
Definition at line 133 of file PFParticleCosmicAna_module.cc.
Referenced by analyze(), and reconfigure().
|
private |
Definition at line 87 of file PFParticleCosmicAna_module.cc.
Referenced by beginJob(), and FillRecoTree().
|
private |
Definition at line 92 of file PFParticleCosmicAna_module.cc.
Referenced by beginJob(), and FillRecoTree().
|
private |
Definition at line 91 of file PFParticleCosmicAna_module.cc.
Referenced by beginJob(), and FillRecoTree().
|
private |
Definition at line 126 of file PFParticleCosmicAna_module.cc.
Referenced by beginJob(), and FillTrueTree().
|
private |
Definition at line 127 of file PFParticleCosmicAna_module.cc.
Referenced by beginJob(), and FillTrueTree().
|
private |
Definition at line 130 of file PFParticleCosmicAna_module.cc.
Referenced by beginJob(), and FillTrueTree().
|
private |
Definition at line 129 of file PFParticleCosmicAna_module.cc.
Referenced by beginJob(), and FillTrueTree().
|
private |
Definition at line 131 of file PFParticleCosmicAna_module.cc.
Referenced by beginJob(), and FillTrueTree().
|
private |
Definition at line 128 of file PFParticleCosmicAna_module.cc.
Referenced by beginJob(), and FillTrueTree().
|
private |
Definition at line 95 of file PFParticleCosmicAna_module.cc.
Referenced by beginJob(), FillRecoTree(), and FillTrueTree().
|
private |
Definition at line 119 of file PFParticleCosmicAna_module.cc.
Referenced by beginJob(), and FillTrueTree().
|
private |
Definition at line 120 of file PFParticleCosmicAna_module.cc.
Referenced by beginJob(), and FillTrueTree().
|
private |
Definition at line 123 of file PFParticleCosmicAna_module.cc.
Referenced by beginJob(), and FillTrueTree().
|
private |
Definition at line 122 of file PFParticleCosmicAna_module.cc.
Referenced by beginJob(), and FillTrueTree().
|
private |
Definition at line 124 of file PFParticleCosmicAna_module.cc.
Referenced by beginJob(), and FillTrueTree().
|
private |
Definition at line 121 of file PFParticleCosmicAna_module.cc.
Referenced by beginJob(), and FillTrueTree().
|
private |
Definition at line 94 of file PFParticleCosmicAna_module.cc.
Referenced by beginJob(), and FillRecoTree().
|
private |
Definition at line 135 of file PFParticleCosmicAna_module.cc.
Referenced by analyze(), and reconfigure().
|
private |
Definition at line 90 of file PFParticleCosmicAna_module.cc.
Referenced by beginJob(), and FillRecoTree().
|
private |
Definition at line 82 of file PFParticleCosmicAna_module.cc.
Referenced by beginJob(), and FillRecoTree().
|
private |
Definition at line 83 of file PFParticleCosmicAna_module.cc.
Referenced by beginJob(), and FillTrueTree().
|
private |
Definition at line 85 of file PFParticleCosmicAna_module.cc.
Referenced by analyze(), and beginJob().
|
private |
Definition at line 89 of file PFParticleCosmicAna_module.cc.
Referenced by beginJob(), and FillRecoTree().
|
private |
Definition at line 117 of file PFParticleCosmicAna_module.cc.
Referenced by beginJob(), and FillRecoTree().
|
private |
Definition at line 114 of file PFParticleCosmicAna_module.cc.
Referenced by beginJob(), and FillRecoTree().
|
private |
Definition at line 106 of file PFParticleCosmicAna_module.cc.
Referenced by beginJob(), and FillRecoTree().
|
private |
Definition at line 107 of file PFParticleCosmicAna_module.cc.
Referenced by beginJob(), and FillRecoTree().
|
private |
Definition at line 108 of file PFParticleCosmicAna_module.cc.
Referenced by beginJob(), and FillRecoTree().
|
private |
Definition at line 100 of file PFParticleCosmicAna_module.cc.
Referenced by beginJob(), and FillRecoTree().
|
private |
Definition at line 101 of file PFParticleCosmicAna_module.cc.
Referenced by beginJob(), and FillRecoTree().
|
private |
Definition at line 102 of file PFParticleCosmicAna_module.cc.
Referenced by beginJob(), and FillRecoTree().
|
private |
Definition at line 134 of file PFParticleCosmicAna_module.cc.
Referenced by analyze(), and reconfigure().
|
private |
Definition at line 109 of file PFParticleCosmicAna_module.cc.
Referenced by beginJob(), and FillRecoTree().
|
private |
Definition at line 116 of file PFParticleCosmicAna_module.cc.
Referenced by beginJob(), and FillRecoTree().
|
private |
Definition at line 113 of file PFParticleCosmicAna_module.cc.
Referenced by beginJob(), and FillRecoTree().
|
private |
Definition at line 103 of file PFParticleCosmicAna_module.cc.
Referenced by beginJob(), and FillRecoTree().
|
private |
Definition at line 104 of file PFParticleCosmicAna_module.cc.
Referenced by beginJob(), and FillRecoTree().
|
private |
Definition at line 105 of file PFParticleCosmicAna_module.cc.
Referenced by beginJob(), and FillRecoTree().
|
private |
Definition at line 97 of file PFParticleCosmicAna_module.cc.
Referenced by beginJob(), and FillRecoTree().
|
private |
Definition at line 98 of file PFParticleCosmicAna_module.cc.
Referenced by beginJob(), and FillRecoTree().
|
private |
Definition at line 99 of file PFParticleCosmicAna_module.cc.
Referenced by beginJob(), and FillRecoTree().
|
private |
Definition at line 110 of file PFParticleCosmicAna_module.cc.
Referenced by beginJob(), and FillRecoTree().
|
private |
Definition at line 111 of file PFParticleCosmicAna_module.cc.
Referenced by beginJob(), and FillRecoTree().
|
private |
Definition at line 112 of file PFParticleCosmicAna_module.cc.
Referenced by beginJob(), and FillRecoTree().
|
private |
Definition at line 140 of file PFParticleCosmicAna_module.cc.
Referenced by analyze(), and reconfigure().
|
private |
Definition at line 139 of file PFParticleCosmicAna_module.cc.
Referenced by analyze(), and reconfigure().