Public Member Functions | Private Attributes | List of all members
lar_pandora::CollectionSplitting Class Reference
Inheritance diagram for lar_pandora::CollectionSplitting:
art::EDProducer art::detail::Producer art::detail::LegacyModule art::Modifier art::ModuleBase art::ProductRegistryHelper

Public Member Functions

 CollectionSplitting (fhicl::ParameterSet const &pset)
 
 CollectionSplitting (CollectionSplitting const &)=delete
 
 CollectionSplitting (CollectionSplitting &&)=delete
 
CollectionSplittingoperator= (CollectionSplitting const &)=delete
 
CollectionSplittingoperator= (CollectionSplitting &&)=delete
 
void produce (art::Event &e) override
 
- Public Member Functions inherited from art::EDProducer
 EDProducer (fhicl::ParameterSet const &pset)
 
template<typename Config >
 EDProducer (Table< Config > const &config)
 
std::string workerType () const
 
- Public Member Functions inherited from art::detail::Producer
virtual ~Producer () noexcept
 
 Producer (fhicl::ParameterSet const &)
 
 Producer (Producer const &)=delete
 
 Producer (Producer &&)=delete
 
Produceroperator= (Producer const &)=delete
 
Produceroperator= (Producer &&)=delete
 
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::Modifier
 ~Modifier () noexcept
 
 Modifier ()
 
 Modifier (Modifier const &)=delete
 
 Modifier (Modifier &&)=delete
 
Modifieroperator= (Modifier const &)=delete
 
Modifieroperator= (Modifier &&)=delete
 
- 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 &current_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 Attributes

std::string m_inputProducerLabel
 Label for the Pandora instance that produced the collections we want to split up. More...
 
std::string m_trackProducerLabel
 Label for the track producer using the Pandora instance that produced the collections we want to split up. More...
 
std::string m_showerProducerLabel
 Label for the shower producer using the Pandora instance that produced the collections we want to split up. 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...
 

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
ConsumesCollectorconsumesCollector ()
 
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 ()
 

Detailed Description

Definition at line 21 of file CollectionSplitting_module.cc.

Constructor & Destructor Documentation

lar_pandora::CollectionSplitting::CollectionSplitting ( fhicl::ParameterSet const &  pset)
explicit

Definition at line 63 of file CollectionSplitting_module.cc.

63  :
64  EDProducer{pset},
65  m_inputProducerLabel(pset.get<std::string>("InputProducerLabel")),
66  m_trackProducerLabel(pset.get<std::string>("TrackProducerLabel")),
67  m_showerProducerLabel(pset.get<std::string>("ShowerProducerLabel")),
68  m_hitProducerLabel(pset.get<std::string>("HitProducerLabel")),
69  m_shouldProduceT0s(pset.get<bool>("ShouldProduceT0s", false))
70 {
71  produces< std::vector<recob::PFParticle> >();
72  produces< std::vector<recob::SpacePoint> >();
73  produces< std::vector<recob::Cluster> >();
74  produces< std::vector<recob::Vertex> >();
75  produces< std::vector<recob::Slice> >();
76  produces< std::vector<recob::Track> >();
77  produces< std::vector<recob::Shower> >();
78  produces< std::vector<recob::PCAxis> >();
79  produces< std::vector<larpandoraobj::PFParticleMetadata> >();
80 
81  produces< art::Assns<recob::PFParticle, recob::SpacePoint> >();
82  produces< art::Assns<recob::PFParticle, recob::Cluster> >();
83  produces< art::Assns<recob::PFParticle, recob::Vertex> >();
84  produces< art::Assns<recob::PFParticle, recob::Slice> >();
85  produces< art::Assns<recob::PFParticle, recob::Track> >();
86  produces< art::Assns<recob::PFParticle, recob::Shower> >();
87  produces< art::Assns<recob::PFParticle, recob::PCAxis> >();
88  produces< art::Assns<recob::PFParticle, larpandoraobj::PFParticleMetadata> >();
89  produces< art::Assns<recob::Track, recob::Hit, recob::TrackHitMeta> >();
90  produces< art::Assns<recob::Shower, recob::Hit> >();
91  produces< art::Assns<recob::Shower, recob::PCAxis> >();
92  produces< art::Assns<recob::SpacePoint, recob::Hit> >();
93  produces< art::Assns<recob::Cluster, recob::Hit> >();
94  produces< art::Assns<recob::Slice, recob::Hit> >();
95 
97  {
98  produces< std::vector<anab::T0> >();
99  produces< art::Assns<recob::PFParticle, anab::T0> >();
100  }
101 }
std::string m_trackProducerLabel
Label for the track producer using the Pandora instance that produced the collections we want to spli...
std::string string
Definition: nybbler.cc:12
EDProducer(fhicl::ParameterSet const &pset)
Definition: EDProducer.h:20
std::string m_showerProducerLabel
Label for the shower producer using the Pandora instance that produced the collections we want to spl...
std::string m_inputProducerLabel
Label for the Pandora instance that produced the collections we want to split up. ...
bool m_shouldProduceT0s
If we should produce T0s (relevant when stitching over multiple drift volumes)
std::string m_hitProducerLabel
Label for the hit producer that was used as input to the Pandora instance specified.
lar_pandora::CollectionSplitting::CollectionSplitting ( CollectionSplitting const &  )
delete
lar_pandora::CollectionSplitting::CollectionSplitting ( CollectionSplitting &&  )
delete

Member Function Documentation

CollectionSplitting& lar_pandora::CollectionSplitting::operator= ( CollectionSplitting const &  )
delete
CollectionSplitting& lar_pandora::CollectionSplitting::operator= ( CollectionSplitting &&  )
delete
void lar_pandora::CollectionSplitting::produce ( art::Event e)
overridevirtual

Implements art::EDProducer.

Definition at line 105 of file CollectionSplitting_module.cc.

106 {
108  const lar_pandora::LArPandoraEvent pandoraEvent(this, &evt, labels, m_shouldProduceT0s);
109 
110  pandoraEvent.WriteToEvent();
111 }
std::string m_trackProducerLabel
Label for the track producer using the Pandora instance that produced the collections we want to spli...
LArPandoraEvent class.
std::string m_showerProducerLabel
Label for the shower producer using the Pandora instance that produced the collections we want to spl...
std::string m_inputProducerLabel
Label for the Pandora instance that produced the collections we want to split up. ...
bool m_shouldProduceT0s
If we should produce T0s (relevant when stitching over multiple drift volumes)
Class to handle the required producer labels.
TCEvent evt
Definition: DataStructs.cxx:7
std::string m_hitProducerLabel
Label for the hit producer that was used as input to the Pandora instance specified.

Member Data Documentation

std::string lar_pandora::CollectionSplitting::m_hitProducerLabel
private

Label for the hit producer that was used as input to the Pandora instance specified.

Definition at line 37 of file CollectionSplitting_module.cc.

std::string lar_pandora::CollectionSplitting::m_inputProducerLabel
private

Label for the Pandora instance that produced the collections we want to split up.

Definition at line 34 of file CollectionSplitting_module.cc.

bool lar_pandora::CollectionSplitting::m_shouldProduceT0s
private

If we should produce T0s (relevant when stitching over multiple drift volumes)

Definition at line 38 of file CollectionSplitting_module.cc.

std::string lar_pandora::CollectionSplitting::m_showerProducerLabel
private

Label for the shower producer using the Pandora instance that produced the collections we want to split up.

Definition at line 36 of file CollectionSplitting_module.cc.

std::string lar_pandora::CollectionSplitting::m_trackProducerLabel
private

Label for the track producer using the Pandora instance that produced the collections we want to split up.

Definition at line 35 of file CollectionSplitting_module.cc.


The documentation for this class was generated from the following file: