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... | |
bool | IsTarget (const art::Ptr< larpandoraobj::PFParticleMetadata > &metadata) const |
Query a metadata object to see if it is a target particle. 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< SliceIdBaseTool > | m_sliceIdTool |
The slice id tool. More... | |
bool | m_useTestBeamMode |
If we should expect a test-beam (instead of a neutrino) slice. More... | |
std::string | m_targetKey |
The metadata key for a PFParticle to determine if it is the target. More... | |
std::string | m_scoreKey |
The metadata key for the score of the target slice from Pandora. More... | |
Additional Inherited Members | |
Public Types inherited from art::EDProducer | |
using | ModuleType = EDProducer |
using | WorkerType = WorkerT< EDProducer > |
Public Types inherited from art::detail::Producer | |
template<typename UserConfig , typename KeysToIgnore = void> | |
using | Table = Modifier::Table< UserConfig, KeysToIgnore > |
Public Types inherited from art::Modifier | |
template<typename UserConfig , typename UserKeysToIgnore = void> | |
using | Table = ProducerTable< UserConfig, detail::ModuleConfig, UserKeysToIgnore > |
Static Public Member Functions inherited from art::EDProducer | |
static void | commitEvent (EventPrincipal &ep, Event &e) |
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 () |
Definition at line 32 of file LArPandoraExternalEventBuilding_module.cc.
|
private |
Definition at line 45 of file LArPandoraExternalEventBuilding_module.cc.
|
explicit |
Definition at line 137 of file LArPandoraExternalEventBuilding_module.cc.
|
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 236 of file LArPandoraExternalEventBuilding_module.cc.
|
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 247 of file LArPandoraExternalEventBuilding_module.cc.
|
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 360 of file LArPandoraExternalEventBuilding_module.cc.
|
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 212 of file LArPandoraExternalEventBuilding_module.cc.
|
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 270 of file LArPandoraExternalEventBuilding_module.cc.
|
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 347 of file LArPandoraExternalEventBuilding_module.cc.
|
private |
Query a metadata object to see if it is a target particle.
metadata | the metadata object to query |
Definition at line 382 of file LArPandoraExternalEventBuilding_module.cc.
|
delete |
|
delete |
|
overridevirtual |
Implements art::EDProducer.
Definition at line 184 of file LArPandoraExternalEventBuilding_module.cc.
|
private |
Label for the hit producer that was used as input to the Pandora instance specified.
Definition at line 116 of file LArPandoraExternalEventBuilding_module.cc.
|
private |
Label for the Pandora instance that produced the collections we want to consolidated.
Definition at line 113 of file LArPandoraExternalEventBuilding_module.cc.
|
private |
The input tag for the pandora producer.
Definition at line 118 of file LArPandoraExternalEventBuilding_module.cc.
|
private |
The metadata key for the score of the target slice from Pandora.
Definition at line 122 of file LArPandoraExternalEventBuilding_module.cc.
|
private |
If we should produce T0s (relevant when stitching over multiple drift volumes)
Definition at line 117 of file LArPandoraExternalEventBuilding_module.cc.
|
private |
Label for the shower producer using the Pandora instance that produced the collections we want to consolidate.
Definition at line 115 of file LArPandoraExternalEventBuilding_module.cc.
|
private |
The slice id tool.
Definition at line 119 of file LArPandoraExternalEventBuilding_module.cc.
|
private |
The metadata key for a PFParticle to determine if it is the target.
Definition at line 121 of file LArPandoraExternalEventBuilding_module.cc.
|
private |
Label for the track producer using the Pandora instance that produced the collections we want to consolidate.
Definition at line 114 of file LArPandoraExternalEventBuilding_module.cc.
|
private |
If we should expect a test-beam (instead of a neutrino) slice.
Definition at line 120 of file LArPandoraExternalEventBuilding_module.cc.