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

 TrackCheater (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 38 of file TrackCheater_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

trkf::TrackCheater::TrackCheater ( fhicl::ParameterSet const &  pset)
explicit

Definition at line 54 of file TrackCheater_module.cc.

References fCheatedClusterLabel, and fG4ModuleLabel.

55  : EDProducer{pset}
56  , fCheatedClusterLabel{pset.get<std::string>("CheatedClusterLabel", "cluster")}
57  , fG4ModuleLabel{pset.get<std::string>("G4ModuleLabel", "largeant")}
58  {
59  produces<std::vector<recob::Track>>();
60  produces<std::vector<recob::SpacePoint>>();
61  produces<art::Assns<recob::Track, recob::Cluster>>();
62  produces<art::Assns<recob::Track, recob::SpacePoint>>();
63  produces<art::Assns<recob::Track, recob::Hit>>();
64  }
std::string const fCheatedClusterLabel
EDProducer(fhicl::ParameterSet const &pset)
Definition: EDProducer.cc:6
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 trkf::TrackCheater::produce ( art::Event evt)
overrideprivatevirtual

Implements art::EDProducer.

Definition at line 67 of file TrackCheater_module.cc.

References util::abs(), recob::tracking::convertCollToPoint(), recob::tracking::convertCollToVector(), util::CreateAssn(), DEFINE_ART_MODULE, fCheatedClusterLabel, art::fill_ptr_vector(), art::ProductRetriever::getByLabel(), hits(), cheat::BackTrackerService::HitToXYZ(), geo::kCollection, simb::MCParticle::NumberTrajectoryPoints(), simb::MCParticle::P(), part, cheat::ParticleInventoryService::ParticleList(), simb::MCParticle::PdgCode(), art::PtrVector< T >::push_back(), art::Event::put(), pmtana::sign(), art::PtrVector< T >::size(), simb::MCParticle::Vx(), simb::MCParticle::Vy(), and simb::MCParticle::Vz().

68  {
72 
73  // grab the clusters that have been reconstructed
75  evt.getByLabel(fCheatedClusterLabel, clustercol);
76 
78 
79  // make a vector of them - we aren't writing anything out to a file
80  // so no need for a art::PtrVector here
81  std::vector<art::Ptr<recob::Cluster>> clusters;
82  art::fill_ptr_vector(clusters, clustercol);
83 
84  // loop over the clusters and figure out which particle contributed to each one
85  std::vector<art::Ptr<recob::Cluster>>::iterator itr = clusters.begin();
86 
87  // make a map of vectors of art::Ptrs keyed by eveID values
88  std::map<int, std::vector<std::pair<size_t, art::Ptr<recob::Cluster>>>> eveClusterMap;
89 
90  // loop over all clusters and fill in the map
91  for (size_t c = 0; c < clusters.size(); ++c) {
92 
93  std::pair<size_t, art::Ptr<recob::Cluster>> idxPtr(c, clusters[c]);
94 
95  // in the ClusterCheater module we set the cluster ID to be
96  // the eve particle track ID*1000 + plane*100 + tpc*10 + cryostat number. The
97  // floor function on the cluster ID / 1000 will give us
98  // the eve track ID
99  int eveID = floor((*itr)->ID() / 1000.);
100 
101  eveClusterMap[eveID].push_back(idxPtr);
102  ++itr;
103  } // end loop over clusters
104 
105  // loop over the map and make prongs
106  std::unique_ptr<std::vector<recob::Track>> trackcol(new std::vector<recob::Track>);
107  std::unique_ptr<std::vector<recob::SpacePoint>> spcol(new std::vector<recob::SpacePoint>);
108  std::unique_ptr<art::Assns<recob::Track, recob::SpacePoint>> tspassn(
110  std::unique_ptr<art::Assns<recob::Track, recob::Cluster>> tcassn(
112  std::unique_ptr<art::Assns<recob::Track, recob::Hit>> thassn(
114 
115  auto const clockData = art::ServiceHandle<detinfo::DetectorClocksService const>()->DataFor(evt);
116 
117  for (auto const& clusterMapItr : eveClusterMap) {
118 
119  // separate out the hits for each particle into the different views
120  std::vector<std::pair<size_t, art::Ptr<recob::Cluster>>> const& eveClusters =
121  clusterMapItr.second;
122 
123  simb::MCParticle* part = pi_serv->ParticleList()[clusterMapItr.first];
124 
125  // is this prong electro-magnetic in nature or
126  // hadronic/muonic? EM --> shower, everything else is a track
127  if (abs(part->PdgCode()) != 11 && abs(part->PdgCode()) != 22 && abs(part->PdgCode()) != 111) {
128 
129  // vectors to hold the positions and directions of the track
130  std::vector<TVector3> points;
131  std::vector<TVector3> moms;
132 
133  mf::LogInfo("TrackCheater")
134  << "G4 id " << clusterMapItr.first << " is a track with pdg code " << part->PdgCode();
135 
137  std::vector<size_t> idxs;
138  for (auto const& idxPtr : eveClusters) {
139  ptrvs.push_back(idxPtr.second);
140  idxs.push_back(idxPtr.first);
141  }
142 
143  // grab the hits associated with the collection plane
144  std::vector<art::Ptr<recob::Hit>> hits;
145  for (size_t p = 0; p < ptrvs.size(); ++p) {
146  std::vector<art::Ptr<recob::Hit>> chits = fmh.at(idxs[p]);
147  if (!chits.size()) continue;
148  if (chits[0]->SignalType() != geo::kCollection) continue;
149  hits.insert(hits.end(), chits.begin(), chits.end());
150  }
151 
152  // need at least 2 hits to make a track
153  if (hits.size() < 2) continue;
154 
155  // loop over the hits to get the positions and directions
156  size_t spStart = spcol->size();
157  for (size_t t = 0; t < hits.size(); ++t) {
158  std::vector<double> xyz = bt_serv->HitToXYZ(clockData, hits[t]);
159  TVector3 point(xyz[0], xyz[1], xyz[2]);
160  points.push_back(point);
161 
162  std::vector<double> xyz1;
163  double dx = 0.;
164  double sign = 1.;
165 
166  if (t < hits.size() - 1) { xyz1 = bt_serv->HitToXYZ(clockData, hits[t + 1]); }
167  else {
168  xyz1 = bt_serv->HitToXYZ(clockData, hits[t - 1]);
169  sign = -1.;
170  }
171 
172  // dx is always positive
173  dx = std::sqrt(std::pow(xyz1[0] - xyz[0], 2) + std::pow(xyz1[1] - xyz[1], 2) +
174  std::pow(xyz1[2] - xyz[2], 2));
175 
176  // figure out momentum
177  double mom = 0;
178  double drmin = std::numeric_limits<double>::max();
179  for (unsigned int itp = 0; itp < part->NumberTrajectoryPoints(); itp++) {
180  TVector3 p(part->Vx(itp), part->Vy(itp), part->Vz(itp));
181  double dr = (p - point).Mag();
182  if (dr < drmin) {
183  mom = part->P(itp);
184  drmin = dr;
185  }
186  }
187 
188  // direction is always from the previous point along track to
189  // the next point, that is why sign is there
190  moms.push_back(TVector3(mom * sign * (xyz1[0] - xyz[0]) / dx,
191  mom * sign * (xyz1[1] - xyz[1]) / dx,
192  mom * sign * (xyz1[2] - xyz[2]) / dx));
193 
194  /*************************************************************/
195  /* WARNING */
196  /*************************************************************/
197  /* The dQdx information in recob::Track has been deprecated */
198  /* since 2016 and in 11/2018 the recob::Track interface was */
199  /* changed and DQdxAtPoint and NumberdQdx were removed. */
200  /* Therefore the code below is now commented out */
201  /* (note that it was most likely not functional anyways). */
202  /* For any issue please contact: larsoft-team@fnal.gov */
203  /*************************************************************/
204  /*
205  dQdx[0].push_back(charge/dx);
206  dQdx[1].push_back(charge/dx);
207  dQdx[2].push_back(charge/dx);
208  */
209  /*************************************************************/
210 
211  // make the space point and set its ID and XYZ
212  double xyzerr[6] = {1.e-3};
213  double chisqr = 0.9;
214  recob::SpacePoint sp(&xyz[0], xyzerr, chisqr, clusterMapItr.first * 10000 + t);
215  spcol->push_back(sp);
216  }
217 
218  size_t spEnd = spcol->size();
219 
220  // add a track to the collection. Make the track
221  // ID be the same as the track ID for the eve particle
222  trackcol->push_back(
225  recob::Track::Flags_t(points.size()),
226  true),
227  0,
228  -1.,
229  0,
232  clusterMapItr.first));
233 
234  // associate the track with its clusters
235  util::CreateAssn(evt, *trackcol, ptrvs, *tcassn);
236 
237  // assume the input tracks were previously associated with hits
238  hits.clear();
239  for (size_t p = 0; p < ptrvs.size(); ++p) {
240  hits = fmh.at(idxs[p]);
241  util::CreateAssn(evt, *trackcol, hits, *thassn);
242  }
243 
244  // associate the track to the space points
245  util::CreateAssn(evt, *trackcol, *spcol, *tspassn, spStart, spEnd);
246 
247  mf::LogInfo("TrackCheater") << "adding track: \n" << trackcol->back() << "\nto collection.";
248 
249  } //end if this is a track
250 
251  } // end loop over the map
252 
253  evt.put(std::move(trackcol));
254  evt.put(std::move(spcol));
255  evt.put(std::move(tcassn));
256  evt.put(std::move(thassn));
257  evt.put(std::move(tspassn));
258 
259  return;
260 
261  } // end produce
unsigned int NumberTrajectoryPoints() const
Definition: MCParticle.h:219
int PdgCode() const
Definition: MCParticle.h:213
std::string const fCheatedClusterLabel
MaybeLogger_< ELseverityLevel::ELsev_info, false > LogInfo
std::vector< Vector_t > convertCollToVector(std::vector< Vector > const &coll)
Definition: TrackingTypes.h:78
TrackTrajectory::Flags_t Flags_t
Definition: Track.h:67
constexpr auto abs(T v)
Returns the absolute value of the argument.
ROOT::Math::SMatrix< Double32_t, 5, 5, ROOT::Math::MatRepSym< Double32_t, 5 >> SMatrixSym55
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
TString part[npart]
Definition: Style.C:32
void hits()
Definition: readHits.C:15
void push_back(Ptr< U > const &p)
Definition: PtrVector.h:435
A trajectory in space reconstructed from hits.
double P(const int i=0) const
Definition: MCParticle.h:235
std::vector< Point_t > convertCollToPoint(std::vector< Point > const &coll)
Definition: TrackingTypes.h:68
size_type size() const
Definition: PtrVector.h:302
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.
int sign(double val)
Definition: UtilFunc.cxx:104
double Vx(const int i=0) const
Definition: MCParticle.h:222
bool getByLabel(std::string const &label, std::string const &instance, Handle< PROD > &result) const
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
Namespace collecting geometry-related classes utilities.
double Vy(const int i=0) const
Definition: MCParticle.h:223
Track from a non-cascading particle.A recob::Track consists of a recob::TrackTrajectory, plus additional members relevant for a "fitted" track:
Definition: Track.h:49
Signal from collection planes.
Definition: geo_types.h:152
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 trkf::TrackCheater::fCheatedClusterLabel
private

label for module creating recob::Cluster objects

Definition at line 45 of file TrackCheater_module.cc.

Referenced by produce(), and TrackCheater().

std::string const trkf::TrackCheater::fG4ModuleLabel
private

label for module running G4 and making particles, etc

Definition at line 47 of file TrackCheater_module.cc.

Referenced by TrackCheater().


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