LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
cluster::ClusterCheater Class Reference
Inheritance diagram for cluster::ClusterCheater:
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

 ClusterCheater (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 fMCGeneratorLabel
 label for module to get MC truth information More...
 
std::string fHitModuleLabel
 label for module creating recob::Hit objects More...
 
std::string fG4ModuleLabel
 label for module running G4 and making particles, etc More...
 
unsigned int fMinHits
 minimum number of hits to make a cluster More...
 

Detailed Description

Definition at line 40 of file ClusterCheater_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

cluster::ClusterCheater::ClusterCheater ( fhicl::ParameterSet const &  pset)
explicit

Definition at line 76 of file ClusterCheater_module.cc.

References fG4ModuleLabel, fHitModuleLabel, fMCGeneratorLabel, and fMinHits.

76  : EDProducer{pset}
77  {
78  fMCGeneratorLabel = pset.get<std::string>("MCGeneratorLabel", "generator");
79  fHitModuleLabel = pset.get<std::string>("HitModuleLabel", "hit");
80  fG4ModuleLabel = pset.get<std::string>("G4ModuleLabel", "largeant");
81  fMinHits = pset.get<unsigned int>("MinHits", 1);
82 
83  produces<std::vector<recob::Cluster>>();
84  produces<art::Assns<recob::Cluster, recob::Hit>>();
85  }
std::string fMCGeneratorLabel
label for module to get MC truth information
EDProducer(fhicl::ParameterSet const &pset)
Definition: EDProducer.cc:6
unsigned int fMinHits
minimum number of hits to make a cluster
std::string fHitModuleLabel
label for module creating recob::Hit objects
std::string 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 cluster::ClusterCheater::produce ( art::Event evt)
overrideprivatevirtual
Todo:
: The above encoding of the ID probably won't work for DUNE and should be revisited

Implements art::EDProducer.

Definition at line 88 of file ClusterCheater_module.cc.

References util::CreateAssn(), DEFINE_ART_MODULE, e, fHitModuleLabel, art::fill_ptr_vector(), fMinHits, geo::PlaneGeo::GetBoxCenter(), art::ProductRetriever::getByLabel(), hits(), cheat::BackTrackerService::HitToEveTrackIDEs(), cluster::ClusterParamsImportWrapper< Algo >::ImportHits(), MF_LOG_DEBUG, geo::GeometryCore::NearestWireID(), simb::MCParticle::P(), part, cheat::ParticleInventoryService::ParticleList(), geo::GeometryCore::Plane(), art::Event::put(), simb::MCParticle::Py(), simb::MCParticle::Pz(), recob::Cluster::Sentry, cheat::ParticleInventoryService::SetEveIdCalculator(), cluster::sortHitsByWire(), cheat::ParticleInventoryService::TrackIdToParticle_P(), simb::MCParticle::Vy(), simb::MCParticle::Vz(), and geo::WireID::Wire.

89  {
93 
94  // grab the hits that have been reconstructed
96  evt.getByLabel(fHitModuleLabel, hitcol);
97 
98  // make a vector of them - we aren't writing anything out to a file
99  // so no need for a art::PtrVector here
100  std::vector<art::Ptr<recob::Hit>> hits;
101  art::fill_ptr_vector(hits, hitcol);
102 
103  // adopt an EmEveIdCalculator to find the eve ID.
104  // will return a primary particle if it doesn't find
105  // a responsible particle for an EM process
107 
108  MF_LOG_DEBUG("ClusterCheater") << pi_serv->ParticleList();
109 
110  // make a map of vectors of art::Ptrs keyed by eveID values and
111  // location in cryostat, TPC, plane coordinates of where the hit originated
112  std::map<eveLoc, std::vector<art::Ptr<recob::Hit>>> eveHitMap;
113 
114  auto const clockData = art::ServiceHandle<detinfo::DetectorClocksService const>()->DataFor(evt);
115 
116  // loop over all hits and fill in the map
117  for (auto const& itr : hits) {
118 
119  std::vector<sim::TrackIDE> eveides = bt_serv->HitToEveTrackIDEs(clockData, itr);
120 
121  // loop over all eveides for this hit
122  for (size_t e = 0; e < eveides.size(); ++e) {
123 
124  // don't worry about eve particles that contribute less than 10% of the
125  // energy in the current hit
126  if (eveides[e].energyFrac < 0.1) continue;
127 
128  eveLoc el(eveides[e].trackID, itr->WireID().planeID());
129 
130  eveHitMap[el].push_back(itr);
131 
132  } // end loop over eve IDs for this hit
133 
134  } // end loop over hits
135 
136  // loop over the map and make clusters
137  std::unique_ptr<std::vector<recob::Cluster>> clustercol(new std::vector<recob::Cluster>);
138  std::unique_ptr<art::Assns<recob::Cluster, recob::Hit>> assn(
140 
141  auto const detProp =
143  util::GeometryUtilities const gser{*geo, clockData, detProp};
144 
145  // prepare the algorithm to compute the cluster characteristics;
146  // we use the "standard" one here; configuration would happen here,
147  // but we are using the default configuration for that algorithm
148  ClusterParamsImportWrapper<StandardClusterParamsAlg> ClusterParamAlgo;
149 
150  for (auto hitMapItr : eveHitMap) {
151 
152  // ================================================================================
153  // === Only keeping clusters with fMinHits
154  // ================================================================================
155  if (hitMapItr.second.size() < fMinHits) continue;
156 
157  // get the center of this plane in world coordinates
158  auto const& planeID = hitMapItr.first.planeID;
159  unsigned int cryostat = planeID.Cryostat;
160  unsigned int tpc = planeID.TPC;
161  unsigned int plane = planeID.Plane;
162  auto xyz = geo->Plane(planeID).GetBoxCenter();
163 
164  MF_LOG_DEBUG("ClusterCheater")
165  << "make cluster for eveID: " << hitMapItr.first.eveID << " in cryostat: " << cryostat
166  << " tpc: " << tpc << " plane: " << plane << " view: " << hitMapItr.second.at(0)->View();
167 
168  // get the direction of this particle in the current cryostat, tpc and plane
169  const simb::MCParticle* part = pi_serv->TrackIdToParticle_P(hitMapItr.first.eveID);
170  if (!part) continue;
171 
172  // now set the y and z coordinates of xyz to be the first point on the particle
173  // trajectory and use the initial directions to determine the dT/dW
174  // multiply the direction cosine by 10 to give a decent lever arm for determining
175  // dW
176  xyz.SetY(part->Vy());
177  xyz.SetZ(part->Vz());
178  auto xyz2 = xyz;
179  xyz2.SetY(xyz.Y() + 10. * part->Py() / part->P());
180  xyz2.SetZ(xyz.Z() + 10. * part->Pz() / part->P());
181 
182  // convert positions to wire and time
183  unsigned int w1 = 0;
184  unsigned int w2 = 0;
185 
186  try {
187  w1 = geo->NearestWireID(xyz, planeID).Wire;
188  }
189  catch (cet::exception& e) {
190  w1 = atoi(e.explain_self().substr(e.explain_self().find("#") + 1, 5).c_str());
191  }
192  try {
193  w2 = geo->NearestWireID(xyz2, planeID).Wire;
194  }
195  catch (cet::exception& e) {
196  w2 = atoi(e.explain_self().substr(e.explain_self().find("#") + 1, 5).c_str());
197  }
198 
199  // sort the vector of hits with respect to the directionality of the wires determined by
200  if (w2 < w1)
201  std::sort(hitMapItr.second.rbegin(), hitMapItr.second.rend(), sortHitsByWire);
202  else
203  std::sort(hitMapItr.second.begin(), hitMapItr.second.end(), sortHitsByWire);
204 
205  // set the start and end wires and times
206  double startWire = hitMapItr.second.front()->WireID().Wire;
207  double startTime = hitMapItr.second.front()->PeakTimeMinusRMS();
208  double endWire = hitMapItr.second.back()->WireID().Wire;
209  double endTime = hitMapItr.second.back()->PeakTimePlusRMS();
210 
211  // add a cluster to the collection. Make the ID be the eve particle
212  // trackID*1000 + plane number*100 + tpc*10 + cryostat that the current hits are from
214  recob::Cluster::ID_t clusterID =
215  (((hitMapItr.first.eveID) * 10 + planeID.Plane) * 10 +
216  planeID.TPC // 10 is weird choice for DUNE FD... should be 1000! FIXME
217  ) *
218  10 +
219  planeID.Cryostat;
220 
221  // feed the algorithm with all the cluster hits
222  ClusterParamAlgo.ImportHits(gser, hitMapItr.second);
223 
224  // create the recob::Cluster directly in the vector
225  ClusterCreator cluster(gser,
226  ClusterParamAlgo, // algo
227  startWire, // start_wire
228  0., // sigma_start_wire
229  startTime, // start_tick
230  0., // sigma_start_tick
231  endWire, // end_wire
232  0., // sigma_end_wire
233  endTime, // end_tick
234  0., // sigma_end_tick
235  clusterID, // ID
236  hitMapItr.second.at(0)->View(), // view
237  planeID, // plane
238  recob::Cluster::Sentry // sentry
239  );
240 
241  clustercol->emplace_back(cluster.move());
242 
243  // association the hits to this cluster
244  util::CreateAssn(evt, *clustercol, hitMapItr.second, *assn);
245 
246  mf::LogInfo("ClusterCheater") << "adding cluster: \n"
247  << clustercol->back() << "\nto collection.";
248 
249  } // end loop over the map
250 
251  evt.put(std::move(clustercol));
252  evt.put(std::move(assn));
253  } // end produce
double Py(const int i=0) const
Definition: MCParticle.h:232
MaybeLogger_< ELseverityLevel::ELsev_info, false > LogInfo
const simb::MCParticle * TrackIdToParticle_P(int id) const
void SetEveIdCalculator(sim::EveIdCalculator *ec)
WireID_t Wire
Index of the wire within its plane.
Definition: geo_types.h:563
Cluster finding and building.
unsigned int fMinHits
minimum number of hits to make a cluster
std::string fHitModuleLabel
label for module creating recob::Hit objects
static const SentryArgument_t Sentry
An instance of the sentry object.
Definition: Cluster.h:174
bool sortHitsByWire(art::Ptr< recob::Hit > a, art::Ptr< recob::Hit > b)
PutHandle< PROD > put(std::unique_ptr< PROD > &&edp, std::string const &instance={})
Definition: Event.h:77
PlaneGeo const & Plane(PlaneID const &planeid) const
Returns the specified wire.
TString part[npart]
Definition: Style.C:32
void hits()
Definition: readHits.C:15
Point_t GetBoxCenter() const
Returns the centre of the box representing the plane.
Definition: PlaneGeo.h:449
double P(const int i=0) const
Definition: MCParticle.h:235
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.
WireID NearestWireID(Point_t const &point, PlaneID const &planeid) const
Returns the ID of wire closest to position in the specified TPC.
bool getByLabel(std::string const &label, std::string const &instance, Handle< PROD > &result) const
std::vector< sim::TrackIDE > HitToEveTrackIDEs(detinfo::DetectorClocksData const &clockData, recob::Hit const &hit) const
#define MF_LOG_DEBUG(id)
double Pz(const int i=0) const
Definition: MCParticle.h:233
double Vz(const int i=0) const
Definition: MCParticle.h:224
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.
double Vy(const int i=0) const
Definition: MCParticle.h:223
int ID_t
Type of cluster ID.
Definition: Cluster.h:72
cet::coded_exception< error, detail::translate > exception
Definition: exception.h:33
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 cluster::ClusterCheater::fG4ModuleLabel
private

label for module running G4 and making particles, etc

Definition at line 49 of file ClusterCheater_module.cc.

Referenced by ClusterCheater().

std::string cluster::ClusterCheater::fHitModuleLabel
private

label for module creating recob::Hit objects

Definition at line 48 of file ClusterCheater_module.cc.

Referenced by ClusterCheater(), and produce().

std::string cluster::ClusterCheater::fMCGeneratorLabel
private

label for module to get MC truth information

Definition at line 47 of file ClusterCheater_module.cc.

Referenced by ClusterCheater().

unsigned int cluster::ClusterCheater::fMinHits
private

minimum number of hits to make a cluster

Definition at line 50 of file ClusterCheater_module.cc.

Referenced by ClusterCheater(), and produce().


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