LArSoft
v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
|
Classes | |
class | PandoraData |
Class holding the handle for all of the data types from Pandora. More... | |
Public Types | |
using | ModuleType = EDAnalyzer |
Public Member Functions | |
LArPandoraEventDump (fhicl::ParameterSet const &pset) | |
LArPandoraEventDump (LArPandoraEventDump const &)=delete | |
LArPandoraEventDump (LArPandoraEventDump &&)=delete | |
LArPandoraEventDump & | operator= (LArPandoraEventDump const &)=delete |
LArPandoraEventDump & | operator= (LArPandoraEventDump &&)=delete |
void | analyze (art::Event const &evt) override |
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 Types | |
template<class T > | |
using | Collection = art::Handle< std::vector< T >> |
template<class T > | |
using | Association = art::FindManyP< T > |
Private Member Functions | |
void | PrintEventMetadata (const art::Event &evt) const |
Print the metadata about the event. More... | |
void | PrintEventSummary (const PandoraData &data) const |
Print a summary of the event similar to the standard event dump. More... | |
void | PrintPFParticleHierarchy (const PandoraData &data) const |
Print the full PFParticle Hierarchy. More... | |
void | BuildPFParticleMap (const PandoraData &data, PFParticleMap &pfParticleMap) const |
Build the map from PFParticle ID to PFParticle from the input data. More... | |
void | PrintParticle (const art::Ptr< recob::PFParticle > &particle, const PFParticleMap &pfParticleMap, const PandoraData &data, const unsigned int depth) const |
Print a given PFParticle. More... | |
void | PrintHit (const art::Ptr< recob::Hit > &hit, const unsigned int depth) const |
Print a given Hit. More... | |
void | PrintSlice (const art::Ptr< recob::Slice > &slice, const PandoraData &data, const unsigned int depth) const |
Print a given Slice. More... | |
void | PrintCluster (const art::Ptr< recob::Cluster > &cluster, const PandoraData &data, const unsigned int depth) const |
Print a given Cluster. More... | |
void | PrintVertex (const art::Ptr< recob::Vertex > &vertex, const unsigned int depth) const |
Print a given Vertex. More... | |
void | PrintSpacePoint (const art::Ptr< recob::SpacePoint > &spacePoint, const PandoraData &data, const unsigned int depth) const |
Print a given SpacePoint. More... | |
void | PrintTrack (const art::Ptr< recob::Track > &track, const PandoraData &data, const unsigned int depth) const |
Print a given Track. More... | |
void | PrintShower (const art::Ptr< recob::Shower > &shower, const PandoraData &data, const unsigned int depth) const |
Print a given Shower. More... | |
void | PrintRule (const unsigned int depth) const |
Print a horizontal line. More... | |
void | PrintTitle (const std::string &name, const unsigned int depth) const |
Print a title line. More... | |
template<class T > | |
void | PrintProperty (const std::string &name, const T &value, const unsigned int depth) const |
Print a given property with the correct amount of whitespace. More... | |
Private Attributes | |
std::string | m_verbosityLevel |
The level of verbosity to use. More... | |
std::string | m_pandoraLabel |
The label of the Pandora pattern recognition producer. More... | |
std::string | m_trackLabel |
The track producer label. More... | |
std::string | m_showerLabel |
The shower producer label. More... | |
Definition at line 31 of file LArPandoraEventDump_module.cc.
|
private |
Definition at line 47 of file LArPandoraEventDump_module.cc.
|
private |
Definition at line 44 of file LArPandoraEventDump_module.cc.
|
inherited |
Definition at line 22 of file EDAnalyzer.h.
|
explicit |
Definition at line 292 of file LArPandoraEventDump_module.cc.
References fhicl::ParameterSet::get(), and m_verbosityLevel.
|
delete |
|
delete |
|
overridevirtual |
Implements art::EDAnalyzer.
Definition at line 311 of file LArPandoraEventDump_module.cc.
References m_pandoraLabel, m_showerLabel, m_trackLabel, m_verbosityLevel, PrintEventMetadata(), PrintEventSummary(), and PrintPFParticleHierarchy().
|
private |
Build the map from PFParticle ID to PFParticle from the input data.
data | the pandora collections and associations |
pfParticleMap | the output PFParticle map |
Definition at line 432 of file LArPandoraEventDump_module.cc.
References lar_pandora::LArPandoraEventDump::PandoraData::m_pfParticleCollection, and recob::PFParticle::Self().
Referenced by PrintPFParticleHierarchy().
|
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().
|
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().
|
delete |
|
delete |
|
private |
Print a given Cluster.
cluster | the cluster to print |
data | the pandora collections and associations |
depth | the number of characters to indent |
Definition at line 593 of file LArPandoraEventDump_module.cc.
References hits(), recob::Cluster::ID(), art::Ptr< T >::key(), lar_pandora::LArPandoraEventDump::PandoraData::m_pClusterToHitAssociation, m_verbosityLevel, PrintHit(), PrintProperty(), PrintTitle(), and recob::Cluster::View().
Referenced by PrintParticle().
|
private |
Print the metadata about the event.
evt | the art event |
Definition at line 324 of file LArPandoraEventDump_module.cc.
References art::Event::event(), art::Event::run(), and art::Event::subRun().
Referenced by analyze().
|
private |
Print a summary of the event similar to the standard event dump.
data | the pandora collections and associations |
Definition at line 335 of file LArPandoraEventDump_module.cc.
References lar_pandora::LArPandoraEventDump::PandoraData::m_clusterCollection, lar_pandora::LArPandoraEventDump::PandoraData::m_pcAxisCollection, lar_pandora::LArPandoraEventDump::PandoraData::m_pClusterToHitAssociation, lar_pandora::LArPandoraEventDump::PandoraData::m_pfParticleCollection, lar_pandora::LArPandoraEventDump::PandoraData::m_pfParticleMetadataCollection, lar_pandora::LArPandoraEventDump::PandoraData::m_pPFParticleToClusterAssociation, lar_pandora::LArPandoraEventDump::PandoraData::m_pPFParticleToMetadataAssociation, lar_pandora::LArPandoraEventDump::PandoraData::m_pPFParticleToShowerAssociation, lar_pandora::LArPandoraEventDump::PandoraData::m_pPFParticleToSliceAssociation, lar_pandora::LArPandoraEventDump::PandoraData::m_pPFParticleToSpacePointAssociation, lar_pandora::LArPandoraEventDump::PandoraData::m_pPFParticleToTrackAssociation, lar_pandora::LArPandoraEventDump::PandoraData::m_pPFParticleToVertexAssociation, lar_pandora::LArPandoraEventDump::PandoraData::m_pShowerToHitAssociation, lar_pandora::LArPandoraEventDump::PandoraData::m_pShowerToPCAxisAssociation, lar_pandora::LArPandoraEventDump::PandoraData::m_pSliceToHitAssociation, lar_pandora::LArPandoraEventDump::PandoraData::m_pSpacePointToHitAssociation, lar_pandora::LArPandoraEventDump::PandoraData::m_pTrackToHitAssociation, lar_pandora::LArPandoraEventDump::PandoraData::m_showerCollection, lar_pandora::LArPandoraEventDump::PandoraData::m_sliceCollection, lar_pandora::LArPandoraEventDump::PandoraData::m_spacePointCollection, lar_pandora::LArPandoraEventDump::PandoraData::m_trackCollection, and lar_pandora::LArPandoraEventDump::PandoraData::m_vertexCollection.
Referenced by analyze().
|
private |
Print a given Hit.
hit | the hit to print |
depth | the number of characters to indent |
Definition at line 558 of file LArPandoraEventDump_module.cc.
References recob::Hit::Channel(), art::Ptr< T >::key(), recob::Hit::PeakTime(), PrintProperty(), PrintTitle(), recob::Hit::RMS(), and recob::Hit::View().
Referenced by PrintCluster(), PrintShower(), PrintSlice(), PrintSpacePoint(), and PrintTrack().
|
private |
Print a given PFParticle.
particle | the particle to print |
pfParticleMap | the input mapping from PFParticle ID to PFParticle |
data | the pandora collections and associations |
depth | the number of characters to indent |
Definition at line 443 of file LArPandoraEventDump_module.cc.
References recob::PFParticle::Daughters(), recob::PFParticle::IsPrimary(), art::Ptr< T >::key(), lar_pandora::LArPandoraEventDump::PandoraData::m_pPFParticleToClusterAssociation, lar_pandora::LArPandoraEventDump::PandoraData::m_pPFParticleToMetadataAssociation, lar_pandora::LArPandoraEventDump::PandoraData::m_pPFParticleToShowerAssociation, lar_pandora::LArPandoraEventDump::PandoraData::m_pPFParticleToSliceAssociation, lar_pandora::LArPandoraEventDump::PandoraData::m_pPFParticleToSpacePointAssociation, lar_pandora::LArPandoraEventDump::PandoraData::m_pPFParticleToTrackAssociation, lar_pandora::LArPandoraEventDump::PandoraData::m_pPFParticleToVertexAssociation, m_verbosityLevel, recob::PFParticle::NumDaughters(), recob::PFParticle::Parent(), recob::PFParticle::PdgCode(), PrintCluster(), PrintProperty(), PrintRule(), PrintShower(), PrintSlice(), PrintSpacePoint(), PrintTitle(), PrintTrack(), PrintVertex(), recob::PFParticle::Self(), tca::slices, and track.
Referenced by PrintPFParticleHierarchy().
|
private |
Print the full PFParticle Hierarchy.
data | the pandora collections and associations |
Definition at line 414 of file LArPandoraEventDump_module.cc.
References BuildPFParticleMap(), recob::PFParticle::IsPrimary(), lar_pandora::LArPandoraEventDump::PandoraData::m_pfParticleCollection, and PrintParticle().
Referenced by analyze().
|
private |
Print a given property with the correct amount of whitespace.
name | the property name |
value | the property value |
depth | the number of characters to indent |
Definition at line 735 of file LArPandoraEventDump_module.cc.
References art::left().
Referenced by PrintCluster(), PrintHit(), PrintParticle(), PrintShower(), PrintSlice(), PrintSpacePoint(), PrintTrack(), and PrintVertex().
|
private |
Print a horizontal line.
depth | the number of characters to indent |
Definition at line 718 of file LArPandoraEventDump_module.cc.
Referenced by PrintParticle().
|
private |
Print a given Shower.
shower | the shower to print |
data | the pandora collections and associations |
depth | the number of characters to indent |
Definition at line 679 of file LArPandoraEventDump_module.cc.
References hits(), recob::Shower::ID(), art::Ptr< T >::key(), recob::Shower::Length(), lar_pandora::LArPandoraEventDump::PandoraData::m_pShowerToHitAssociation, lar_pandora::LArPandoraEventDump::PandoraData::m_pShowerToPCAxisAssociation, m_verbosityLevel, recob::Shower::OpenAngle(), PrintHit(), PrintProperty(), PrintTitle(), and recob::Shower::ShowerStart().
Referenced by PrintParticle().
|
private |
Print a given Slice.
slice | the slice to print |
data | the pandora collections and associations |
depth | the number of characters to indent |
Definition at line 571 of file LArPandoraEventDump_module.cc.
References hits(), recob::Slice::ID(), art::Ptr< T >::key(), lar_pandora::LArPandoraEventDump::PandoraData::m_pSliceToHitAssociation, m_verbosityLevel, PrintHit(), PrintProperty(), and PrintTitle().
Referenced by PrintParticle().
|
private |
Print a given SpacePoint.
spacePoint | the spacePoint to print |
data | the pandora collections and associations |
depth | the number of characters to indent |
Definition at line 616 of file LArPandoraEventDump_module.cc.
References hits(), recob::SpacePoint::ID(), art::Ptr< T >::key(), lar_pandora::LArPandoraEventDump::PandoraData::m_pSpacePointToHitAssociation, m_verbosityLevel, PrintHit(), PrintProperty(), PrintTitle(), and recob::SpacePoint::XYZ().
Referenced by PrintParticle().
|
private |
Print a title line.
name | the title name |
depth | the number of characters to indent |
Definition at line 727 of file LArPandoraEventDump_module.cc.
Referenced by PrintCluster(), PrintHit(), PrintParticle(), PrintShower(), PrintSlice(), PrintSpacePoint(), PrintTrack(), and PrintVertex().
|
private |
Print a given Track.
track | the track to print |
data | the pandora collections and associations |
depth | the number of characters to indent |
Definition at line 656 of file LArPandoraEventDump_module.cc.
References hits(), art::Ptr< T >::key(), recob::Track::Length(), lar_pandora::LArPandoraEventDump::PandoraData::m_pTrackToHitAssociation, m_verbosityLevel, recob::Track::NumberTrajectoryPoints(), PrintHit(), PrintProperty(), and PrintTitle().
Referenced by PrintParticle().
|
private |
Print a given Vertex.
vertex | the vertex to print |
depth | the number of characters to indent |
Definition at line 642 of file LArPandoraEventDump_module.cc.
References recob::Vertex::ID(), art::Ptr< T >::key(), recob::Vertex::position(), PrintProperty(), and PrintTitle().
Referenced by PrintParticle().
|
protectedinherited |
Definition at line 57 of file Observer.cc.
References art::Observer::process_name_.
Referenced by art::FileDumperOutput::printPrincipal().
|
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 of the Pandora pattern recognition producer.
Definition at line 278 of file LArPandoraEventDump_module.cc.
Referenced by analyze().
|
private |
The shower producer label.
Definition at line 280 of file LArPandoraEventDump_module.cc.
Referenced by analyze().
|
private |
The track producer label.
Definition at line 279 of file LArPandoraEventDump_module.cc.
Referenced by analyze().
|
private |
The level of verbosity to use.
Definition at line 277 of file LArPandoraEventDump_module.cc.
Referenced by analyze(), LArPandoraEventDump(), PrintCluster(), PrintParticle(), PrintShower(), PrintSlice(), PrintSpacePoint(), and PrintTrack().