LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
shwf::ShowerCheater Class Reference
Inheritance diagram for shwf::ShowerCheater:
art::EDProducer art::detail::Producer art::detail::LegacyModule art::Modifier art::ModuleBase art::ProductRegistryHelper

Public Types

using ModuleType = EDProducer
 
template<typename UserConfig , typename KeysToIgnore = void>
using Table = Modifier::Table< UserConfig, KeysToIgnore >
 

Public Member Functions

 ShowerCheater (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)
 
void fillProductDescriptions ()
 
void registerProducts (ProductDescriptions &productsToRegister)
 
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)
 
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

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 produce (art::Event &evt) override
 

Private Attributes

std::string const fCheatedClusterLabel
 
std::string const fG4ModuleLabel
 label for module running G4 and making particles, etc More...
 

Detailed Description

Definition at line 33 of file ShowerCheater_module.cc.

Member Typedef Documentation

Definition at line 17 of file EDProducer.h.

template<typename UserConfig , typename KeysToIgnore = void>
using art::detail::Producer::Table = Modifier::Table<UserConfig, KeysToIgnore>
inherited

Definition at line 26 of file Producer.h.

Constructor & Destructor Documentation

shwf::ShowerCheater::ShowerCheater ( fhicl::ParameterSet const &  pset)
explicit

Definition at line 49 of file ShowerCheater_module.cc.

References fCheatedClusterLabel, and fG4ModuleLabel.

50  : EDProducer{pset}
51  , fCheatedClusterLabel{pset.get<std::string>("CheatedClusterLabel", "cluster")}
52  , fG4ModuleLabel{pset.get<std::string>("G4ModuleLabel", "largeant")}
53  {
54  produces<std::vector<recob::Shower>>();
55  produces<std::vector<recob::SpacePoint>>();
56  produces<art::Assns<recob::Shower, recob::Cluster>>();
57  produces<art::Assns<recob::Shower, recob::SpacePoint>>();
58  produces<art::Assns<recob::Shower, recob::Hit>>();
59  produces<art::Assns<recob::Hit, recob::SpacePoint>>();
60  }
EDProducer(fhicl::ParameterSet const &pset)
Definition: EDProducer.cc:6
std::string const fCheatedClusterLabel
std::string const fG4ModuleLabel
label for module running G4 and making particles, etc

Member Function Documentation

template<typename T , BranchType BT>
ProductToken< T > art::ModuleBase::consumes ( InputTag const &  tag)
protectedinherited

Definition at line 61 of file ModuleBase.h.

References art::ModuleBase::collector_, and art::ConsumesCollector::consumes().

62  {
63  return collector_.consumes<T, BT>(tag);
64  }
ConsumesCollector collector_
Definition: ModuleBase.h:56
ProductToken< T > consumes(InputTag const &)
ConsumesCollector & art::ModuleBase::consumesCollector ( )
protectedinherited

Definition at line 57 of file ModuleBase.cc.

References art::ModuleBase::collector_.

58  {
59  return collector_;
60  }
ConsumesCollector collector_
Definition: ModuleBase.h:56
template<typename T , BranchType BT>
void art::ModuleBase::consumesMany ( )
protectedinherited

Definition at line 75 of file ModuleBase.h.

References art::ModuleBase::collector_, and art::ConsumesCollector::consumesMany().

76  {
77  collector_.consumesMany<T, BT>();
78  }
ConsumesCollector collector_
Definition: ModuleBase.h:56
template<typename Element , BranchType = InEvent>
ViewToken<Element> art::ModuleBase::consumesView ( InputTag const &  )
protectedinherited
template<typename T , BranchType BT>
ViewToken<T> art::ModuleBase::consumesView ( InputTag const &  tag)
inherited

Definition at line 68 of file ModuleBase.h.

References art::ModuleBase::collector_, and art::ConsumesCollector::consumesView().

69  {
70  return collector_.consumesView<T, BT>(tag);
71  }
ConsumesCollector collector_
Definition: ModuleBase.h:56
ViewToken< Element > consumesView(InputTag const &)
void art::detail::Producer::doBeginJob ( SharedResources const &  resources)
inherited

Definition at line 22 of file Producer.cc.

References art::detail::Producer::beginJobWithFrame(), and art::detail::Producer::setupQueues().

23  {
24  setupQueues(resources);
25  ProcessingFrame const frame{ScheduleID{}};
26  beginJobWithFrame(frame);
27  }
virtual void setupQueues(SharedResources const &)=0
virtual void beginJobWithFrame(ProcessingFrame const &)=0
bool art::detail::Producer::doBeginRun ( RunPrincipal rp,
ModuleContext const &  mc 
)
inherited

Definition at line 65 of file Producer.cc.

References art::detail::Producer::beginRunWithFrame(), art::RangeSet::forRun(), art::RunPrincipal::makeRun(), r, art::RunPrincipal::runID(), and art::ModuleContext::scheduleID().

66  {
67  auto r = rp.makeRun(mc, RangeSet::forRun(rp.runID()));
68  ProcessingFrame const frame{mc.scheduleID()};
69  beginRunWithFrame(r, frame);
70  r.commitProducts();
71  return true;
72  }
TRandom r
Definition: spectrum.C:23
virtual void beginRunWithFrame(Run &, ProcessingFrame const &)=0
static RangeSet forRun(RunID)
Definition: RangeSet.cc:51
bool art::detail::Producer::doBeginSubRun ( SubRunPrincipal srp,
ModuleContext const &  mc 
)
inherited

Definition at line 85 of file Producer.cc.

References art::detail::Producer::beginSubRunWithFrame(), art::RangeSet::forSubRun(), art::SubRunPrincipal::makeSubRun(), art::ModuleContext::scheduleID(), and art::SubRunPrincipal::subRunID().

86  {
87  auto sr = srp.makeSubRun(mc, RangeSet::forSubRun(srp.subRunID()));
88  ProcessingFrame const frame{mc.scheduleID()};
89  beginSubRunWithFrame(sr, frame);
90  sr.commitProducts();
91  return true;
92  }
virtual void beginSubRunWithFrame(SubRun &, ProcessingFrame const &)=0
static RangeSet forSubRun(SubRunID)
Definition: RangeSet.cc:57
void art::detail::Producer::doEndJob ( )
inherited

Definition at line 30 of file Producer.cc.

References art::detail::Producer::endJobWithFrame().

31  {
32  ProcessingFrame const frame{ScheduleID{}};
33  endJobWithFrame(frame);
34  }
virtual void endJobWithFrame(ProcessingFrame const &)=0
bool art::detail::Producer::doEndRun ( RunPrincipal rp,
ModuleContext const &  mc 
)
inherited

Definition at line 75 of file Producer.cc.

References art::detail::Producer::endRunWithFrame(), art::RunPrincipal::makeRun(), r, art::ModuleContext::scheduleID(), and art::Principal::seenRanges().

76  {
77  auto r = rp.makeRun(mc, rp.seenRanges());
78  ProcessingFrame const frame{mc.scheduleID()};
79  endRunWithFrame(r, frame);
80  r.commitProducts();
81  return true;
82  }
TRandom r
Definition: spectrum.C:23
virtual void endRunWithFrame(Run &, ProcessingFrame const &)=0
bool art::detail::Producer::doEndSubRun ( SubRunPrincipal srp,
ModuleContext const &  mc 
)
inherited

Definition at line 95 of file Producer.cc.

References art::detail::Producer::endSubRunWithFrame(), art::SubRunPrincipal::makeSubRun(), art::ModuleContext::scheduleID(), and art::Principal::seenRanges().

96  {
97  auto sr = srp.makeSubRun(mc, srp.seenRanges());
98  ProcessingFrame const frame{mc.scheduleID()};
99  endSubRunWithFrame(sr, frame);
100  sr.commitProducts();
101  return true;
102  }
virtual void endSubRunWithFrame(SubRun &, ProcessingFrame const &)=0
bool art::detail::Producer::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 
)
inherited

Definition at line 105 of file Producer.cc.

References art::detail::Producer::checkPutProducts_, e, art::EventPrincipal::makeEvent(), art::detail::Producer::produceWithFrame(), and art::ModuleContext::scheduleID().

110  {
111  auto e = ep.makeEvent(mc);
112  ++counts_run;
113  ProcessingFrame const frame{mc.scheduleID()};
114  produceWithFrame(e, frame);
115  e.commitProducts(checkPutProducts_, &expectedProducts<InEvent>());
116  ++counts_passed;
117  return true;
118  }
bool const checkPutProducts_
Definition: Producer.h:70
Float_t e
Definition: plot.C:35
virtual void produceWithFrame(Event &, ProcessingFrame const &)=0
void art::detail::Producer::doRespondToCloseInputFile ( FileBlock const &  fb)
inherited

Definition at line 44 of file Producer.cc.

References art::detail::Producer::respondToCloseInputFileWithFrame().

45  {
46  ProcessingFrame const frame{ScheduleID{}};
48  }
virtual void respondToCloseInputFileWithFrame(FileBlock const &, ProcessingFrame const &)=0
TFile fb("Li6.root")
void art::detail::Producer::doRespondToCloseOutputFiles ( FileBlock const &  fb)
inherited

Definition at line 58 of file Producer.cc.

References art::detail::Producer::respondToCloseOutputFilesWithFrame().

59  {
60  ProcessingFrame const frame{ScheduleID{}};
62  }
virtual void respondToCloseOutputFilesWithFrame(FileBlock const &, ProcessingFrame const &)=0
TFile fb("Li6.root")
void art::detail::Producer::doRespondToOpenInputFile ( FileBlock const &  fb)
inherited

Definition at line 37 of file Producer.cc.

References art::detail::Producer::respondToOpenInputFileWithFrame().

38  {
39  ProcessingFrame const frame{ScheduleID{}};
41  }
virtual void respondToOpenInputFileWithFrame(FileBlock const &, ProcessingFrame const &)=0
TFile fb("Li6.root")
void art::detail::Producer::doRespondToOpenOutputFiles ( FileBlock const &  fb)
inherited

Definition at line 51 of file Producer.cc.

References art::detail::Producer::respondToOpenOutputFilesWithFrame().

52  {
53  ProcessingFrame const frame{ScheduleID{}};
55  }
virtual void respondToOpenOutputFilesWithFrame(FileBlock const &, ProcessingFrame const &)=0
TFile fb("Li6.root")
void art::Modifier::fillProductDescriptions ( )
inherited

Definition at line 10 of file Modifier.cc.

References art::ProductRegistryHelper::fillDescriptions(), and art::ModuleBase::moduleDescription().

11  {
13  }
void fillDescriptions(ModuleDescription const &md)
ModuleDescription const & moduleDescription() const
Definition: ModuleBase.cc:13
std::array< std::vector< ProductInfo >, NumBranchTypes > const & art::ModuleBase::getConsumables ( ) const
inherited

Definition at line 43 of file ModuleBase.cc.

References art::ModuleBase::collector_, and art::ConsumesCollector::getConsumables().

44  {
45  return collector_.getConsumables();
46  }
ConsumesCollector collector_
Definition: ModuleBase.h:56
std::array< std::vector< ProductInfo >, NumBranchTypes > const & getConsumables() const
std::unique_ptr< Worker > art::ModuleBase::makeWorker ( WorkerParams const &  wp)
inherited

Definition at line 37 of file ModuleBase.cc.

References art::ModuleBase::doMakeWorker(), and art::NumBranchTypes.

38  {
39  return doMakeWorker(wp);
40  }
virtual std::unique_ptr< Worker > doMakeWorker(WorkerParams const &wp)=0
template<typename T , BranchType BT>
ProductToken< T > art::ModuleBase::mayConsume ( InputTag const &  tag)
protectedinherited

Definition at line 82 of file ModuleBase.h.

References art::ModuleBase::collector_, and art::ConsumesCollector::mayConsume().

83  {
84  return collector_.mayConsume<T, BT>(tag);
85  }
ProductToken< T > mayConsume(InputTag const &)
ConsumesCollector collector_
Definition: ModuleBase.h:56
template<typename T , BranchType BT>
void art::ModuleBase::mayConsumeMany ( )
protectedinherited

Definition at line 96 of file ModuleBase.h.

References art::ModuleBase::collector_, and art::ConsumesCollector::mayConsumeMany().

97  {
98  collector_.mayConsumeMany<T, BT>();
99  }
ConsumesCollector collector_
Definition: ModuleBase.h:56
template<typename Element , BranchType = InEvent>
ViewToken<Element> art::ModuleBase::mayConsumeView ( InputTag const &  )
protectedinherited
template<typename T , BranchType BT>
ViewToken<T> art::ModuleBase::mayConsumeView ( InputTag const &  tag)
inherited

Definition at line 89 of file ModuleBase.h.

References art::ModuleBase::collector_, and art::ConsumesCollector::mayConsumeView().

90  {
91  return collector_.mayConsumeView<T, BT>(tag);
92  }
ConsumesCollector collector_
Definition: ModuleBase.h:56
ViewToken< Element > mayConsumeView(InputTag const &)
ModuleDescription const & art::ModuleBase::moduleDescription ( ) const
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().

14  {
15  if (md_.has_value()) {
16  return *md_;
17  }
18 
20  "There was an error while calling moduleDescription().\n"}
21  << "The moduleDescription() base-class member function cannot be called\n"
22  "during module construction. To determine which module is "
23  "responsible\n"
24  "for calling it, find the '<module type>:<module "
25  "label>@Construction'\n"
26  "tag in the message prefix above. Please contact artists@fnal.gov\n"
27  "for guidance.\n";
28  }
cet::coded_exception< errors::ErrorCodes, ExceptionDetail::translate > Exception
Definition: Exception.h:66
std::optional< ModuleDescription > md_
Definition: ModuleBase.h:55
void shwf::ShowerCheater::produce ( art::Event evt)
overrideprivatevirtual
Todo:
figure out the max transverse width of the shower in the x and y directions

Implements art::EDProducer.

Definition at line 63 of file ShowerCheater_module.cc.

References util::abs(), util::CreateAssn(), DEFINE_ART_MODULE, e, fCheatedClusterLabel, art::fill_ptr_vector(), art::ProductRetriever::getByLabel(), hits(), cheat::BackTrackerService::HitToXYZ(), cheat::ParticleInventoryService::ParticleList(), art::Event::put(), recob::Shower::set_direction(), recob::Shower::set_direction_err(), and recob::Shower::set_id().

64  {
68 
69  // grab the clusters that have been reconstructed
71  evt.getByLabel(fCheatedClusterLabel, clustercol);
72 
74 
75  // make a vector of them - we aren't writing anything out to a file
76  // so no need for a art::PtrVector here
77  std::vector<art::Ptr<recob::Cluster>> clusters;
78  art::fill_ptr_vector(clusters, clustercol);
79 
80  // make a map of vectors of art::Ptrs keyed by eveID values
81  std::map<int, std::vector<std::pair<size_t, art::Ptr<recob::Cluster>>>> eveClusterMap;
82 
83  // loop over all clusters and fill in the map
84  for (size_t c = 0; c < clusters.size(); ++c) {
85 
86  // in the ClusterCheater module we set the cluster ID to be
87  // the eve particle track ID*1000 + plane*100 + tpc*10 + cryostat number. The
88  // floor function on the cluster ID / 1000 will give us
89  // the eve track ID
90  int eveID = floor(clusters[c]->ID() / 1000.);
91 
92  std::pair<size_t, art::Ptr<recob::Cluster>> indexPtr(c, clusters[c]);
93 
94  eveClusterMap[eveID].push_back(indexPtr);
95 
96  } // end loop over clusters
97 
98  // loop over the map and make prongs
99  std::unique_ptr<std::vector<recob::Shower>> showercol(new std::vector<recob::Shower>);
100  std::unique_ptr<std::vector<recob::SpacePoint>> spcol(new std::vector<recob::SpacePoint>);
101  std::unique_ptr<art::Assns<recob::Shower, recob::Cluster>> scassn(
103  std::unique_ptr<art::Assns<recob::Shower, recob::Hit>> shassn(
105  std::unique_ptr<art::Assns<recob::Shower, recob::SpacePoint>> sspassn(
107  std::unique_ptr<art::Assns<recob::Hit, recob::SpacePoint>> sphassn(
109 
110  auto const clockData = art::ServiceHandle<detinfo::DetectorClocksService const>()->DataFor(evt);
111 
112  for (auto const& clusterMapItr : eveClusterMap) {
113 
114  // separate out the hits for each particle into the different views
115  std::vector<std::pair<size_t, art::Ptr<recob::Cluster>>> const& eveClusters =
116  clusterMapItr.second;
117 
118  size_t startSPIndx = spcol->size();
119 
120  std::vector<art::Ptr<recob::Cluster>> ptrvs;
121  std::vector<size_t> idxs;
122 
123  for (auto const& idxPtr : eveClusters) {
124  idxs.push_back(idxPtr.first);
125  ptrvs.push_back(idxPtr.second);
126 
127  // need to make the space points for this prong
128  // loop over the hits for this cluster and make
129  // a space point for each one
130  // set the SpacePoint ID to be the cluster ID*10000
131  // + the hit index in the cluster PtrVector of hits
132  std::vector<art::Ptr<recob::Hit>> const& hits = fmh.at(idxPtr.first);
133 
134  for (size_t h = 0; h < hits.size(); ++h) {
135  art::Ptr<recob::Hit> hit = hits[h];
136  // add up the charge from the hits on the collection plane
137  std::vector<double> xyz = bt_serv->HitToXYZ(clockData, hit);
138  double sperr[6] = {0.01, 0.01, 0.1, 0.001, 0.001, 0.001};
139 
140  // make the space point and set its ID and XYZ
141  // the errors and chi^2 are set to "good" values as we know the information perfectly
142  recob::SpacePoint sp(&xyz[0], sperr, 0.9, idxPtr.second->ID() * 10000 + h);
143  spcol->push_back(sp);
144 
145  // associate the space point to the hit
146  util::CreateAssn(evt, *spcol, hit, *sphassn);
147 
148  } // end loop over hits
149  } // end loop over pairs of index values and cluster Ptrs
150 
151  size_t endSPIndx = spcol->size();
152 
153  // is this prong electro-magnetic in nature or
154  // hadronic/muonic? EM --> shower, everything else is a track
155  if (std::abs(pi_serv->ParticleList()[clusterMapItr.first]->PdgCode()) == 11 ||
156  std::abs(pi_serv->ParticleList()[clusterMapItr.first]->PdgCode()) == 22 ||
157  std::abs(pi_serv->ParticleList()[clusterMapItr.first]->PdgCode()) == 111) {
158 
159  mf::LogInfo("ShowerCheater")
160  << "prong of " << clusterMapItr.first << " is a shower with pdg code "
161  << pi_serv->ParticleList()[clusterMapItr.first]->PdgCode();
162 
163  // get the direction cosine for the eve ID particle
164  // just use the same for both the start and end of the prong
165  const TLorentzVector initmom = pi_serv->ParticleList()[clusterMapItr.first]->Momentum();
166  TVector3 dcos(
167  initmom.Px() / initmom.Mag(), initmom.Py() / initmom.Mag(), initmom.Pz() / initmom.Mag());
168  TVector3 dcosErr(1.e-3, 1.e-3, 1.e-3);
169 
171  //double maxTransWidth[2] = { util::kBogusD, util::kBogusD };
172  //double distanceMaxWidth = util::kBogusD;
173 
174  // add a prong to the collection. Make the prong
175  // ID be the same as the track ID for the eve particle
176  recob::Shower s;
177  s.set_id(showercol->size());
178  s.set_direction(dcos);
179  s.set_direction_err(dcosErr);
180  showercol->push_back(s);
181  // associate the shower with its clusters
182  util::CreateAssn(evt, *showercol, ptrvs, *scassn);
183 
184  // get the hits associated with each cluster and associate those with the shower
185  for (size_t i = 0; i < idxs.size(); ++i) {
186  std::vector<art::Ptr<recob::Hit>> hits = fmh.at(i);
187  util::CreateAssn(evt, *showercol, hits, *shassn);
188  }
189 
190  // associate the shower with the space points
191  util::CreateAssn(evt, *showercol, *spcol, *sspassn, startSPIndx, endSPIndx);
192 
193  mf::LogInfo("ShowerCheater") << "adding shower: \n"
194  << showercol->back() << "\nto collection.";
195 
196  } // end if this is a shower
197  } // end loop over the map
198 
199  evt.put(std::move(showercol));
200  evt.put(std::move(spcol));
201  evt.put(std::move(scassn));
202  evt.put(std::move(shassn));
203  evt.put(std::move(sspassn));
204  evt.put(std::move(sphassn));
205  } // end produce
void set_direction_err(const TVector3 &dir_e)
Definition: Shower.h:135
MaybeLogger_< ELseverityLevel::ELsev_info, false > LogInfo
constexpr auto abs(T v)
Returns the absolute value of the argument.
std::vector< double > HitToXYZ(detinfo::DetectorClocksData const &clockData, const recob::Hit &hit) const
PutHandle< PROD > put(std::unique_ptr< PROD > &&edp, std::string const &instance={})
Definition: Event.h:77
void set_id(const int id)
Definition: Shower.h:127
void hits()
Definition: readHits.C:15
void set_direction(const TVector3 &dir)
Definition: Shower.h:134
std::string const fCheatedClusterLabel
Detector simulation of raw signals on wires.
const sim::ParticleList & ParticleList() const
bool CreateAssn(art::Event &evt, std::vector< T > const &a, art::Ptr< U > const &b, art::Assns< U, T > &assn, std::string a_instance, size_t index=UINT_MAX)
Creates a single one-to-one association.
bool getByLabel(std::string const &label, std::string const &instance, Handle< PROD > &result) const
void fill_ptr_vector(std::vector< Ptr< T >> &ptrs, H const &h)
Definition: Ptr.h:306
Float_t e
Definition: plot.C:35
Namespace collecting geometry-related classes utilities.
void art::Modifier::registerProducts ( ProductDescriptions productsToRegister)
inherited

Definition at line 16 of file Modifier.cc.

References art::ModuleBase::moduleDescription(), and art::ProductRegistryHelper::registerProducts().

17  {
18  ProductRegistryHelper::registerProducts(productsToRegister,
20  }
void registerProducts(ProductDescriptions &productsToRegister, ModuleDescription const &md)
ModuleDescription const & moduleDescription() const
Definition: ModuleBase.cc:13
void art::ModuleBase::setModuleDescription ( ModuleDescription const &  md)
inherited

Definition at line 31 of file ModuleBase.cc.

References art::ModuleBase::md_.

32  {
33  md_ = md;
34  }
std::optional< ModuleDescription > md_
Definition: ModuleBase.h:55
void art::ModuleBase::sortConsumables ( std::string const &  current_process_name)
inherited

Definition at line 49 of file ModuleBase.cc.

References art::ModuleBase::collector_, and art::ConsumesCollector::sortConsumables().

50  {
51  // Now that we know we have seen all the consumes declarations,
52  // sort the results for fast lookup later.
53  collector_.sortConsumables(current_process_name);
54  }
ConsumesCollector collector_
Definition: ModuleBase.h:56
void sortConsumables(std::string const &current_process_name)

Member Data Documentation

std::string const shwf::ShowerCheater::fCheatedClusterLabel
private

label for module creating recob::Cluster objects

Definition at line 40 of file ShowerCheater_module.cc.

Referenced by produce(), and ShowerCheater().

std::string const shwf::ShowerCheater::fG4ModuleLabel
private

label for module running G4 and making particles, etc

Definition at line 42 of file ShowerCheater_module.cc.

Referenced by ShowerCheater().


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