LArSoft
v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
|
Public Types | |
using | ModuleType = EDProducer |
using | WorkerType = WorkerT< EDProducer > |
template<typename UserConfig , typename KeysToIgnore = void> | |
using | Table = ProducerBase::Table< UserConfig, KeysToIgnore > |
Public Member Functions | |
LArPandoraExternalEventBuilding (fhicl::ParameterSet const &pset) | |
LArPandoraExternalEventBuilding (LArPandoraExternalEventBuilding const &)=delete | |
LArPandoraExternalEventBuilding (LArPandoraExternalEventBuilding &&)=delete | |
LArPandoraExternalEventBuilding & | operator= (LArPandoraExternalEventBuilding const &)=delete |
LArPandoraExternalEventBuilding & | operator= (LArPandoraExternalEventBuilding &&)=delete |
void | produce (art::Event &evt) override |
template<typename PROD , BranchType B = InEvent> | |
ProductID | getProductID (std::string const &instanceName={}) const |
template<typename PROD , BranchType B> | |
ProductID | getProductID (ModuleDescription const &moduleDescription, std::string const &instanceName) const |
bool | modifiesEvent () const |
template<typename T , BranchType = InEvent> | |
ProductToken< T > | consumes (InputTag const &) |
template<typename T , art::BranchType BT> | |
art::ProductToken< T > | consumes (InputTag const &it) |
template<typename T , BranchType = InEvent> | |
void | consumesMany () |
template<typename Element , BranchType = InEvent> | |
ViewToken< Element > | consumesView (InputTag const &) |
template<typename T , art::BranchType BT> | |
art::ViewToken< T > | consumesView (InputTag const &it) |
template<typename T , BranchType = InEvent> | |
ProductToken< T > | mayConsume (InputTag const &) |
template<typename T , art::BranchType BT> | |
art::ProductToken< T > | mayConsume (InputTag const &it) |
template<typename T , BranchType = InEvent> | |
void | mayConsumeMany () |
template<typename Element , BranchType = InEvent> | |
ViewToken< Element > | mayConsumeView (InputTag const &) |
template<typename T , art::BranchType BT> | |
art::ViewToken< T > | mayConsumeView (InputTag const &it) |
base_engine_t & | createEngine (seed_t seed) |
base_engine_t & | createEngine (seed_t seed, std::string const &kind_of_engine_to_make) |
base_engine_t & | createEngine (seed_t seed, std::string const &kind_of_engine_to_make, label_t const &engine_label) |
seed_t | get_seed_value (fhicl::ParameterSet const &pset, char const key[]="seed", seed_t const implicit_seed=-1) |
Static Public Member Functions | |
static cet::exempt_ptr< Consumer > | non_module_context () |
Protected Member Functions | |
CurrentProcessingContext const * | currentContext () const |
void | validateConsumedProduct (BranchType const bt, ProductInfo const &pi) |
void | prepareForJob (fhicl::ParameterSet const &pset) |
void | showMissingConsumes () const |
Private Types | |
typedef std::map< art::Ptr< recob::PFParticle >, art::Ptr< larpandoraobj::PFParticleMetadata > > | PFParticleToMetadata |
Private Member Functions | |
void | CollectPFParticles (const art::Event &evt, PFParticleToMetadata &particlesToMetadata, PFParticleVector &particles) const |
Collect PFParticles from the ART event and their mapping to metadata objects. More... | |
void | BuildPFParticleMap (const PFParticleToMetadata &particlesToMetadata, PFParticleMap &particleMap) const |
Build mapping from ID to PFParticle for fast navigation through the hierarchy. More... | |
void | CollectClearCosmicRays (const PFParticleVector &allParticles, const PFParticleToMetadata &particlesToMetadata, const PFParticleMap &particleMap, PFParticleVector &clearCosmics) const |
Collect PFParticles that have been identified as clear cosmic ray muons by pandora. More... | |
void | CollectSlices (const PFParticleVector &allParticles, const PFParticleToMetadata &particlesToMetadata, const PFParticleMap &particleMap, SliceVector &slices) const |
Collect slices. More... | |
void | CollectConsolidatedParticles (const PFParticleVector &allParticles, const PFParticleVector &clearCosmics, const SliceVector &slices, PFParticleVector &consolidatedParticles) const |
Get the consolidated collection of particles based on the slice ids. More... | |
float | GetMetadataValue (const art::Ptr< larpandoraobj::PFParticleMetadata > &metadata, const std::string &key) const |
Query a metadata object for a given key and return the corresponding value. More... | |
Private Attributes | |
std::string | m_inputProducerLabel |
Label for the Pandora instance that produced the collections we want to consolidated. More... | |
std::string | m_trackProducerLabel |
Label for the track producer using the Pandora instance that produced the collections we want to consolidate. More... | |
std::string | m_showerProducerLabel |
Label for the shower producer using the Pandora instance that produced the collections we want to consolidate. More... | |
std::string | m_hitProducerLabel |
Label for the hit producer that was used as input to the Pandora instance specified. More... | |
bool | m_shouldProduceT0s |
If we should produce T0s (relevant when stitching over multiple drift volumes) More... | |
art::InputTag | m_pandoraTag |
The input tag for the pandora producer. More... | |
std::unique_ptr< NeutrinoIdBaseTool > | m_neutrinoIdTool |
The neutrino id tool. More... | |
Definition at line 30 of file LArPandoraExternalEventBuilding_module.cc.
|
inherited |
Definition at line 34 of file EDProducer.h.
|
private |
Definition at line 43 of file LArPandoraExternalEventBuilding_module.cc.
|
inherited |
Definition at line 43 of file EDProducer.h.
|
inherited |
Definition at line 35 of file EDProducer.h.
|
explicit |
Definition at line 123 of file LArPandoraExternalEventBuilding_module.cc.
References m_shouldProduceT0s.
|
delete |
|
delete |
|
private |
Build mapping from ID to PFParticle for fast navigation through the hierarchy.
particlesToMetadata | the input mapping from PFParticles to their metadata |
particleMap | the output mapping from ID to PFParticle |
Definition at line 215 of file LArPandoraExternalEventBuilding_module.cc.
Referenced by produce().
|
private |
Collect PFParticles that have been identified as clear cosmic ray muons by pandora.
allParticles | input vector of all particles |
particlesToMetadata | the input mapping from PFParticles to their metadata |
particleMap | the input mapping from ID to PFParticle |
clearCosmics | the output vector of clear cosmic rays |
Definition at line 226 of file LArPandoraExternalEventBuilding_module.cc.
References GetMetadataValue(), lar_pandora::LArPandoraHelper::GetParentPFParticle(), and part.
Referenced by produce().
|
private |
Get the consolidated collection of particles based on the slice ids.
allParticles | input vector of all particles |
clearCosmics | the input vector of clear cosmic ray muons |
slices | the input vector of slices |
consolidatedParticles | the output vector of particles to include in the consolidated output |
Definition at line 329 of file LArPandoraExternalEventBuilding_module.cc.
References part.
Referenced by produce().
|
private |
Collect PFParticles from the ART event and their mapping to metadata objects.
evt | the ART event |
particlesToMetadata | the output mapping from PFParticles to their metadata |
particles | the output vector of particles |
Definition at line 191 of file LArPandoraExternalEventBuilding_module.cc.
References art::DataViewImpl::getByLabel(), art::Ptr< T >::key(), m_pandoraTag, and part.
Referenced by produce().
|
private |
Collect slices.
allParticles | input vector of all particles |
particlesToMetadata | the input mapping from PFParticles to their metadata |
particleMap | the input mapping from ID to PFParticle |
slices | the output vector of slices |
Definition at line 249 of file LArPandoraExternalEventBuilding_module.cc.
References GetMetadataValue(), lar_pandora::LArPandoraHelper::GetParentPFParticle(), lar_pandora::LArPandoraHelper::IsNeutrino(), and part.
Referenced by produce().
|
inherited |
|
inherited |
Definition at line 147 of file Consumer.h.
References art::InputTag::instance(), art::InputTag::label(), and art::InputTag::process().
|
inherited |
Definition at line 162 of file Consumer.h.
|
inherited |
|
inherited |
Definition at line 172 of file Consumer.h.
References art::InputTag::instance(), art::InputTag::label(), and art::InputTag::process().
|
inherited |
Definition at line 26 of file EngineCreator.cc.
References art::EngineCreator::rng().
Referenced by evgen::CosmicsGen::CosmicsGen(), rndm::NuRandomService::createEngine(), cluster::fuzzyCluster::fuzzyCluster(), cluster::HoughLineFinder::HoughLineFinder(), art::MixFilter< T >::initEngine_(), larg4::LArG4::LArG4(), evgen::LightSource::LightSource(), evgen::NeutronOsc::NeutronOsc(), evgen::NucleonDecay::NucleonDecay(), opdet::OpMCDigi::OpMCDigi(), opdet::OptDetDigitizer::OptDetDigitizer(), phot::PhotonLibraryPropagation::PhotonLibraryPropagation(), detsim::SimDriftElectrons::SimDriftElectrons(), evgen::SingleGen::SingleGen(), evgen::SNNueAr40CCGen::SNNueAr40CCGen(), ToyOneShowerGen::ToyOneShowerGen(), and trkf::Track3DKalman::Track3DKalman().
|
inherited |
Definition at line 32 of file EngineCreator.cc.
References art::EngineCreator::rng().
|
inherited |
Definition at line 40 of file EngineCreator.cc.
References art::EngineCreator::rng().
|
protectedinherited |
|
inherited |
Definition at line 49 of file EngineCreator.cc.
References fhicl::ParameterSet::get().
Referenced by art::MixFilter< T >::initEngine_().
|
private |
Query a metadata object for a given key and return the corresponding value.
metadata | the metadata object to query |
key | the key to search for |
Definition at line 316 of file LArPandoraExternalEventBuilding_module.cc.
References larpandoraobj::PFParticleMetadata::GetPropertiesMap().
Referenced by CollectClearCosmicRays(), and CollectSlices().
|
inlineinherited |
|
inherited |
Definition at line 56 of file ProducerBase.h.
References B, and art::ModuleDescription::moduleLabel().
Referenced by art::ProducerBase::modifiesEvent().
|
inherited |
|
inherited |
Definition at line 190 of file Consumer.h.
References art::InputTag::instance(), art::InputTag::label(), and art::InputTag::process().
|
inherited |
Definition at line 205 of file Consumer.h.
|
inherited |
|
inherited |
Definition at line 215 of file Consumer.h.
References art::InputTag::instance(), art::InputTag::label(), and art::InputTag::process().
|
inlineinherited |
Definition at line 40 of file ProducerBase.h.
References art::ProducerBase::getProductID().
|
staticinherited |
Definition at line 76 of file Consumer.cc.
Referenced by art::RootOutput::beginSubRun(), art::OutputModule::doBeginRun(), art::OutputModule::doBeginSubRun(), art::OutputModule::doEndRun(), art::OutputModule::doEndSubRun(), art::ProducingService::doPostReadEvent(), art::ProducingService::doPostReadRun(), art::ProducingService::doPostReadSubRun(), art::OutputModule::doWriteEvent(), art::ProcessPackage< L >::postScheduleSignal(), art::BeginEndPackage< Level::Run >::Begin::postScheduleSignal(), art::BeginEndPackage< Level::Run >::End::postScheduleSignal(), art::BeginEndPackage< Level::SubRun >::Begin::postScheduleSignal(), art::BeginEndPackage< Level::SubRun >::End::postScheduleSignal(), art::ProcessPackage< L >::preScheduleSignal(), art::BeginEndPackage< Level::Run >::Begin::preScheduleSignal(), art::BeginEndPackage< Level::SubRun >::Begin::preScheduleSignal(), art::EventProcessor::readEvent(), art::EventProcessor::readRun(), art::EmptyEvent::readRun_(), art::EventProcessor::readSubRun(), and art::EmptyEvent::readSubRun_().
|
delete |
|
delete |
|
protectedinherited |
Definition at line 89 of file Consumer.cc.
References fhicl::ParameterSet::get_if_present().
Referenced by art::EDProducer::doBeginJob(), art::EDFilter::doBeginJob(), and art::EDAnalyzer::doBeginJob().
|
overridevirtual |
Implements art::EDProducer.
Definition at line 163 of file LArPandoraExternalEventBuilding_module.cc.
References BuildPFParticleMap(), CollectClearCosmicRays(), CollectConsolidatedParticles(), CollectPFParticles(), CollectSlices(), m_hitProducerLabel, m_inputProducerLabel, m_neutrinoIdTool, m_shouldProduceT0s, m_showerProducerLabel, m_trackProducerLabel, tca::slices, and lar_pandora::LArPandoraEvent::WriteToEvent().
|
protectedinherited |
Definition at line 125 of file Consumer.cc.
Referenced by art::EDProducer::doEndJob(), art::EDFilter::doEndJob(), art::EDAnalyzer::doEndJob(), and art::RootOutput::endJob().
|
protectedinherited |
Definition at line 101 of file Consumer.cc.
References art::errors::ProductRegistrationFailure.
|
private |
Label for the hit producer that was used as input to the Pandora instance specified.
Definition at line 105 of file LArPandoraExternalEventBuilding_module.cc.
Referenced by produce().
|
private |
Label for the Pandora instance that produced the collections we want to consolidated.
Definition at line 102 of file LArPandoraExternalEventBuilding_module.cc.
Referenced by produce().
|
private |
The neutrino id tool.
Definition at line 108 of file LArPandoraExternalEventBuilding_module.cc.
Referenced by produce().
|
private |
The input tag for the pandora producer.
Definition at line 107 of file LArPandoraExternalEventBuilding_module.cc.
Referenced by CollectPFParticles().
|
private |
If we should produce T0s (relevant when stitching over multiple drift volumes)
Definition at line 106 of file LArPandoraExternalEventBuilding_module.cc.
Referenced by LArPandoraExternalEventBuilding(), and produce().
|
private |
Label for the shower producer using the Pandora instance that produced the collections we want to consolidate.
Definition at line 104 of file LArPandoraExternalEventBuilding_module.cc.
Referenced by produce().
|
private |
Label for the track producer using the Pandora instance that produced the collections we want to consolidate.
Definition at line 103 of file LArPandoraExternalEventBuilding_module.cc.
Referenced by produce().