Public Member Functions | Private Member Functions | Private Attributes | List of all members
hit::MCHitAnaExample Class Reference
Inheritance diagram for hit::MCHitAnaExample:
art::EDAnalyzer art::detail::Analyzer art::detail::LegacyModule art::Observer art::ModuleBase

Public Member Functions

 MCHitAnaExample (fhicl::ParameterSet const &p)
 
virtual ~MCHitAnaExample ()
 
- Public Member Functions inherited from art::EDAnalyzer
 EDAnalyzer (fhicl::ParameterSet const &pset)
 
template<typename Config >
 EDAnalyzer (Table< Config > const &config)
 
std::string workerType () const
 
- Public Member Functions inherited from art::detail::Analyzer
virtual ~Analyzer () noexcept
 
 Analyzer (fhicl::ParameterSet const &pset)
 
template<typename Config >
 Analyzer (Table< Config > const &config)
 
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::Observer
 ~Observer () noexcept
 
 Observer (Observer const &)=delete
 
 Observer (Observer &&)=delete
 
Observeroperator= (Observer const &)=delete
 
Observeroperator= (Observer &&)=delete
 
void registerProducts (ProductDescriptions &, ModuleDescription const &)
 
void fillDescriptions (ModuleDescription const &)
 
fhicl::ParameterSetID selectorConfig () const
 
- 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 Member Functions

void analyze (art::Event const &e) override
 

Private Attributes

std::string fRecoHitModuleName
 Producer module for recob::Hit. More...
 
std::string fMCHitModuleName
 Producer module for MCHit. More...
 
TStopwatch fAnaWatch
 
TStopwatch fSearchWatch
 
TStopwatch fReadWatch
 
TH1D * hRecoHitReadTime
 Time to read recob::Hit from disk. More...
 
TH1D * hMCHitReadTime
 Time to read MCHit from disk. More...
 
TH1D * hAnalysisTime
 Time to run analyze() function. More...
 
TH1D * hMCHitSearchTime
 Time to search for corresponding MCHit per RecoHit. More...
 
TH1D * hMCHitSearchTimeSum
 Time to search for corresponding MCHit per RecoHit summed over all RecoHits (per event) More...
 
std::vector< TH1D * > hMCHitQ_v
 Histogram (per plane) for all MCHit charge. More...
 
std::vector< TH1D * > hMCHitMult_v
 Histogram (per plane) for MCHit multiplicity in each event. More...
 
std::vector< TH1D * > hRecoHitQ_v
 Histogram (per plane) for RecoHit charge. More...
 
std::vector< TH1D * > hRecoHitMult_v
 Histogram (per plane) for RecoHit multiplicity in each event. More...
 
std::vector< TH2D * > hCorrMult_v
 Histogram (per plane) for # of MCHit vs. # of RecoHit. More...
 
std::vector< TH1D * > hVoidHitQ_v
 Histogram (per plane) for charge of some RecoHit that has no corresponding MCHit. More...
 
std::vector< TH2D * > hCorrQ_v
 Histogram (per plane) for charge of one MCHit that is closest (in time) to one RecoHit. More...
 
std::vector< TH2D * > hCorrQSum_v
 Histogram (per plane) for charge sum of multiple MCHit found within start=>end time of one RecoHit. More...
 
std::vector< TH1D * > hQRatio_v
 Histogram (per plane) for a ratio of RecoHit charge to the closest (in time) RecoHit charge. More...
 
std::vector< TH1D * > hQSumRatio_v
 
std::vector< TH1D * > hDT_v
 Histogram (per plane) for time-diff between one Reco hit and the closest (in time) RecoHit. More...
 
std::vector< TH1D * > hMCHitMultPerRecoHit_v
 Histogram (per plane) for MCHit multiplicity within start=>end time region of RecoHit. More...
 

Additional Inherited Members

- Public Types inherited from art::EDAnalyzer
using WorkerType = WorkerT< EDAnalyzer >
 
using ModuleType = EDAnalyzer
 
- Protected Member Functions inherited from art::Observer
std::string const & processName () const
 
bool wantAllEvents () const noexcept
 
bool wantEvent (ScheduleID id, Event const &e) const
 
Handle< TriggerResultsgetTriggerResults (Event const &e) const
 
 Observer (fhicl::ParameterSet const &config)
 
 Observer (std::vector< std::string > const &select_paths, std::vector< std::string > const &reject_paths, fhicl::ParameterSet const &config)
 
- 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 29 of file MCHitAnaExample_module.cc.

Constructor & Destructor Documentation

hit::MCHitAnaExample::MCHitAnaExample ( fhicl::ParameterSet const &  p)
explicit

Definition at line 123 of file MCHitAnaExample_module.cc.

123  : EDAnalyzer(p) // ,
124 
125  {
126  fRecoHitModuleName = p.get<std::string>("RecoHitModuleName");
127  fMCHitModuleName = p.get<std::string>("MCHitModuleName");
128 
130 
132 
133  for (unsigned char plane = 0; plane < geo->Nplanes(); ++plane) {
134 
135  hMCHitQ_v.push_back(
136  fs->make<TH1D>(Form("hMCHitQ_%d", plane),
137  Form("MCHit Charge (Plane %d); Charge [ADC]; # MCHit", plane),
138  250,
139  0,
140  2000));
141 
142  hMCHitMult_v.push_back(
143  fs->make<TH1D>(Form("hMCHitMult_%d", plane),
144  Form("MCHit Multiplicity (Plane %d); Multiplicity; # MCHit", plane),
145  250,
146  0,
147  5000));
148 
149  hRecoHitQ_v.push_back(
150  fs->make<TH1D>(Form("hRecoHitQ_%d", plane),
151  Form("RecoHit Charge (Plane %d); Charge [ADC]; # RecoHits", plane),
152  250,
153  0,
154  2000));
155 
156  hRecoHitMult_v.push_back(
157  fs->make<TH1D>(Form("hRecoHitMult_%d", plane),
158  Form("RecoHit Multiplicity (Plane %d); Multiplicity; # RecoHits", plane),
159  200,
160  0,
161  2000));
162 
163  hCorrMult_v.push_back(
164  fs->make<TH2D>(Form("hCorrMult_%d", plane),
165  Form("# MCHits vs. # RecoHits (Plane %d); # MCHits; # RecoHits", plane),
166  250,
167  0,
168  5000,
169  200,
170  0,
171  2000));
172 
173  hVoidHitQ_v.push_back(fs->make<TH1D>(
174  Form("hVoidHitQ_%d", plane),
175  Form("RecoHit Charge (No Corresponding MCHit)) (Plane %d); Charge [ADC]; # RecoHits",
176  plane),
177  250,
178  0,
179  2000));
180 
181  hCorrQ_v.push_back(fs->make<TH2D>(
182  Form("hCorrQ_%d", plane),
183  Form("RecoHit Q vs. Closest MCHit Q (Plane %d); MCHit Charge [ADC]; RecoHit Charge [ADC]",
184  plane),
185  250,
186  0,
187  2000,
188  250,
189  0,
190  2000));
191 
192  hCorrQSum_v.push_back(
193  fs->make<TH2D>(Form("hCorrQSum_%d", plane),
194  Form("RecoHit Q vs. MCHit QSum Within Start=>End (Plane %d); MCHit Charge "
195  "[ADC]; RecoHit Charge [ADC]",
196  plane),
197  250,
198  0,
199  2000,
200  250,
201  0,
202  2000));
203 
204  hQRatio_v.push_back(
205  fs->make<TH1D>(Form("hQRatio_%d", plane),
206  Form("Reco/MCHit Charge (Plane %d); Ratio; # RecoHits", plane),
207  200,
208  0,
209  2));
210 
211  hQSumRatio_v.push_back(
212  fs->make<TH1D>(Form("hQSumRatio_%d", plane),
213  Form("Reco/MCHit Charge (Plane %d); Ratio; # RecoHits", plane),
214  200,
215  0,
216  2));
217 
218  hDT_v.push_back(fs->make<TH1D>(
219  Form("hDT_%d", plane),
220  Form("#DeltaT btw Reco and Closest MCHit (Plane %d); #DeltaT; # RecoHits", plane),
221  190,
222  -9.5,
223  9.5));
224 
225  hMCHitMultPerRecoHit_v.push_back(fs->make<TH1D>(
226  Form("hMCHitMultPerRecoHit_%d", plane),
227  Form("MCHit Multiplicity per RecoHit (Plane %d); Multiplicity; # RecoHits", plane),
228  21,
229  -1.5,
230  19.5));
231  }
232 
234  fs->make<TH1D>("hRecoHitReadTime",
235  "Real Time to Read recob::Hit From Disk; Real Time [ms]; Events",
236  200,
237  0,
238  1000);
239 
241  fs->make<TH1D>("hMCHitReadTime",
242  "Real Time to Read sim::MCHit From Disk; Real Time [ms]; Events",
243  200,
244  0,
245  1000);
246 
247  hAnalysisTime =
248  fs->make<TH1D>("hAnalysisTime",
249  "Analysis Time to Run analyze() Function; Real Time [ms]; Events",
250  200,
251  0,
252  1000);
253 
255  fs->make<TH1D>("hMCHitSearchTime",
256  "Time to Search Multiple sim::MCHit Per RecoHit; RealTime [us]; # RecoHit",
257  200,
258  0,
259  200);
260 
261  hMCHitSearchTimeSum = fs->make<TH1D>(
262  "hMCHitSearchTimeSum",
263  "Time to Search Multiple sim::MCHit for All RecoHit in Event; RealTime [ms]; # Event",
264  200,
265  0,
266  200);
267  }
TH1D * hMCHitSearchTimeSum
Time to search for corresponding MCHit per RecoHit summed over all RecoHits (per event) ...
std::string string
Definition: nybbler.cc:12
static constexpr double fs
Definition: Units.h:100
std::vector< TH1D * > hQRatio_v
Histogram (per plane) for a ratio of RecoHit charge to the closest (in time) RecoHit charge...
std::vector< TH2D * > hCorrMult_v
Histogram (per plane) for # of MCHit vs. # of RecoHit.
EDAnalyzer(fhicl::ParameterSet const &pset)
Definition: EDAnalyzer.h:25
TH1D * hMCHitReadTime
Time to read MCHit from disk.
std::vector< TH1D * > hDT_v
Histogram (per plane) for time-diff between one Reco hit and the closest (in time) RecoHit...
std::string fMCHitModuleName
Producer module for MCHit.
std::vector< TH1D * > hRecoHitMult_v
Histogram (per plane) for RecoHit multiplicity in each event.
unsigned int Nplanes(unsigned int tpc=0, unsigned int cstat=0) const
Returns the total number of wire planes in the specified TPC.
std::vector< TH1D * > hRecoHitQ_v
Histogram (per plane) for RecoHit charge.
std::string fRecoHitModuleName
Producer module for recob::Hit.
p
Definition: test.py:223
std::vector< TH1D * > hQSumRatio_v
std::vector< TH1D * > hMCHitMultPerRecoHit_v
Histogram (per plane) for MCHit multiplicity within start=>end time region of RecoHit.
std::vector< TH2D * > hCorrQ_v
Histogram (per plane) for charge of one MCHit that is closest (in time) to one RecoHit.
TH1D * hMCHitSearchTime
Time to search for corresponding MCHit per RecoHit.
std::vector< TH1D * > hMCHitQ_v
Histogram (per plane) for all MCHit charge.
TH1D * hRecoHitReadTime
Time to read recob::Hit from disk.
std::vector< TH1D * > hMCHitMult_v
Histogram (per plane) for MCHit multiplicity in each event.
LArSoft geometry interface.
Definition: ChannelGeo.h:16
TH1D * hAnalysisTime
Time to run analyze() function.
std::vector< TH2D * > hCorrQSum_v
Histogram (per plane) for charge sum of multiple MCHit found within start=>end time of one RecoHit...
std::vector< TH1D * > hVoidHitQ_v
Histogram (per plane) for charge of some RecoHit that has no corresponding MCHit. ...
hit::MCHitAnaExample::~MCHitAnaExample ( )
virtual

Definition at line 269 of file MCHitAnaExample_module.cc.

269 {}

Member Function Documentation

void hit::MCHitAnaExample::analyze ( art::Event const &  e)
overrideprivatevirtual

Implements art::EDAnalyzer.

Definition at line 272 of file MCHitAnaExample_module.cc.

273  {
274  fAnaWatch.Start();
275 
277  auto const clock_data = art::ServiceHandle<detinfo::DetectorClocksService const>()->DataFor(e);
278 
279  fReadWatch.Start();
280  auto const& mchits_v = *e.getValidHandle<std::vector<sim::MCHitCollection>>(fMCHitModuleName);
281  hMCHitReadTime->Fill(fReadWatch.RealTime() * 1.e3);
282 
283  fReadWatch.Start();
284  auto const& recohits = *e.getValidHandle<std::vector<recob::Hit>>(fRecoHitModuleName);
285  hRecoHitReadTime->Fill(fReadWatch.RealTime() * 1.e3);
286 
287  //
288  // Work on purely MCHit info
289  //
290  std::vector<size_t> mchit_mult(geo->Nplanes(), 0);
291  for (auto const& mchits : mchits_v) {
292 
293  auto plane = geo->ChannelToWire(mchits.Channel()).at(0).Plane;
294 
295  mchit_mult.at(plane) += mchits.size();
296 
297  for (auto const& mchit : mchits)
298 
299  hMCHitQ_v.at(plane)->Fill(mchit.Charge(true));
300  }
301 
302  std::vector<size_t> recohit_mult(geo->Nplanes(), 0);
303 
304  double search_time_sum = 0;
305 
306  // Loop over RecoHit
307  for (size_t hit_index = 0; hit_index < recohits.size(); ++hit_index) {
308 
309  auto const& hit = recohits.at(hit_index);
310 
311  auto const& wire_id = hit.WireID();
312 
313  // Fill purly RecoHit info
314  hRecoHitQ_v.at(wire_id.Plane)->Fill(hit.PeakAmplitude());
315  recohit_mult.at(wire_id.Plane) += 1;
316 
317  // Figure out channel & retrieve MCHitCollection for this channel
318  auto ch = geo->PlaneWireToChannel(wire_id.Plane, wire_id.Wire, wire_id.TPC, wire_id.Cryostat);
319 
320  if (mchits_v.size() <= ch)
321  throw cet::exception(__PRETTY_FUNCTION__)
322  << "Channel " << ch << " not found in MCHit vector!" << std::endl;
323 
324  // Found MCHitCollection
325  auto const& mchits = mchits_v.at(ch);
326 
327  if (ch != mchits.Channel())
328  throw cet::exception(__PRETTY_FUNCTION__)
329  << "MCHit channel & vector index mismatch: " << mchits.Channel() << " != " << ch
330  << std::endl;
331 
332  // Locate corresponding MCHit(s) to this RecoHit
333  sim::MCHit start_time, end_time, peak_time;
334 
335  start_time.SetTime(clock_data.TPCTick2TDC(hit.PeakTimeMinusRMS()), 0);
336  peak_time.SetTime(clock_data.TPCTick2TDC(hit.PeakTime()), 0);
337  end_time.SetTime(clock_data.TPCTick2TDC(hit.PeakTimePlusRMS()), 0);
338 
339  fSearchWatch.Start();
340  auto start_iter = std::lower_bound(mchits.begin(), mchits.end(), start_time);
341  auto end_iter = std::upper_bound(mchits.begin(), mchits.end(), end_time);
342  search_time_sum += fSearchWatch.RealTime() * 1.e3;
343  hMCHitSearchTime->Fill(fSearchWatch.RealTime() * 1.e6);
344 
345  double reco_q = hit.PeakAmplitude();
346  double mc_qsum = 0;
347  double mc_q = 0;
348  double mult = 0;
349  double dt_min = 0;
350  double abs_dt_min = 1e9;
351 
352  // Loop over MCHit(s) that reside in start=>end time of MCHit
353  while (start_iter != end_iter) {
354  mc_qsum += (*start_iter).Charge(true);
355  ++mult;
356  double dt = (*start_iter).PeakTime() - peak_time.PeakTime();
357  double abs_dt = dt;
358  if (abs_dt < 0) abs_dt *= -1;
359 
360  if (abs_dt < abs_dt_min) {
361  abs_dt_min = abs_dt;
362  dt_min = dt;
363  mc_q = (*start_iter).Charge(true);
364  }
365  ++start_iter;
366  }
367 
368  // Fill histograms
369  hMCHitMultPerRecoHit_v.at(wire_id.Plane)->Fill(mult);
370 
371  if (!mc_qsum)
372  hVoidHitQ_v.at(wire_id.Plane)->Fill(reco_q);
373 
374  else {
375 
376  hRecoHitQ_v.at(wire_id.Plane)->Fill(reco_q);
377  hCorrQ_v.at(wire_id.Plane)->Fill(mc_q, reco_q);
378  hCorrQSum_v.at(wire_id.Plane)->Fill(mc_qsum, reco_q);
379  hQSumRatio_v.at(wire_id.Plane)->Fill(reco_q / mc_qsum);
380  hQRatio_v.at(wire_id.Plane)->Fill(reco_q / mc_q);
381  hDT_v.at(wire_id.Plane)->Fill(dt_min);
382  }
383 
384  } // end looping over hits
385 
386  // Fill purely-MCHit and purely-RecoHit multiplicity histograms
387  for (unsigned char plane = 0; plane < geo->Nplanes(); ++plane) {
388  std::cout << mchit_mult.at(plane) << std::endl;
389  hMCHitMult_v.at(plane)->Fill(mchit_mult.at(plane));
390  hRecoHitMult_v.at(plane)->Fill(recohit_mult.at(plane));
391  hCorrMult_v.at(plane)->Fill(mchit_mult.at(plane), recohit_mult.at(plane));
392  }
393 
394  hAnalysisTime->Fill(fAnaWatch.RealTime() * 1.e3);
395  hMCHitSearchTimeSum->Fill(search_time_sum);
396  }
float PeakTime() const
Getter for start time.
Definition: MCHit.h:75
TH1D * hMCHitSearchTimeSum
Time to search for corresponding MCHit per RecoHit summed over all RecoHits (per event) ...
void SetTime(const float peak, const float width)
Setter function for time.
Definition: MCHit.h:57
std::vector< geo::WireID > ChannelToWire(raw::ChannelID_t const channel) const
Returns a list of wires connected to the specified TPC channel.
std::vector< TH1D * > hQRatio_v
Histogram (per plane) for a ratio of RecoHit charge to the closest (in time) RecoHit charge...
std::vector< TH2D * > hCorrMult_v
Histogram (per plane) for # of MCHit vs. # of RecoHit.
TH1D * hMCHitReadTime
Time to read MCHit from disk.
std::vector< TH1D * > hDT_v
Histogram (per plane) for time-diff between one Reco hit and the closest (in time) RecoHit...
std::string fMCHitModuleName
Producer module for MCHit.
std::vector< TH1D * > hRecoHitMult_v
Histogram (per plane) for RecoHit multiplicity in each event.
unsigned int Nplanes(unsigned int tpc=0, unsigned int cstat=0) const
Returns the total number of wire planes in the specified TPC.
const double e
std::vector< TH1D * > hRecoHitQ_v
Histogram (per plane) for RecoHit charge.
std::string fRecoHitModuleName
Producer module for recob::Hit.
std::vector< TH1D * > hQSumRatio_v
std::vector< TH1D * > hMCHitMultPerRecoHit_v
Histogram (per plane) for MCHit multiplicity within start=>end time region of RecoHit.
Detector simulation of raw signals on wires.
std::vector< TH2D * > hCorrQ_v
Histogram (per plane) for charge of one MCHit that is closest (in time) to one RecoHit.
raw::ChannelID_t PlaneWireToChannel(WireID const &wireid) const
Returns the ID of the TPC channel connected to the specified wire.
TH1D * hMCHitSearchTime
Time to search for corresponding MCHit per RecoHit.
std::vector< TH1D * > hMCHitQ_v
Histogram (per plane) for all MCHit charge.
TH1D * hRecoHitReadTime
Time to read recob::Hit from disk.
std::vector< TH1D * > hMCHitMult_v
Histogram (per plane) for MCHit multiplicity in each event.
LArSoft geometry interface.
Definition: ChannelGeo.h:16
TH1D * hAnalysisTime
Time to run analyze() function.
std::vector< TH2D * > hCorrQSum_v
Histogram (per plane) for charge sum of multiple MCHit found within start=>end time of one RecoHit...
cet::coded_exception< error, detail::translate > exception
Definition: exception.h:33
QTextStream & endl(QTextStream &s)
std::vector< TH1D * > hVoidHitQ_v
Histogram (per plane) for charge of some RecoHit that has no corresponding MCHit. ...

Member Data Documentation

TStopwatch hit::MCHitAnaExample::fAnaWatch
private

Definition at line 50 of file MCHitAnaExample_module.cc.

std::string hit::MCHitAnaExample::fMCHitModuleName
private

Producer module for MCHit.

Definition at line 45 of file MCHitAnaExample_module.cc.

TStopwatch hit::MCHitAnaExample::fReadWatch
private

Definition at line 50 of file MCHitAnaExample_module.cc.

std::string hit::MCHitAnaExample::fRecoHitModuleName
private

Producer module for recob::Hit.

Definition at line 42 of file MCHitAnaExample_module.cc.

TStopwatch hit::MCHitAnaExample::fSearchWatch
private

Definition at line 50 of file MCHitAnaExample_module.cc.

TH1D* hit::MCHitAnaExample::hAnalysisTime
private

Time to run analyze() function.

Definition at line 63 of file MCHitAnaExample_module.cc.

std::vector<TH2D*> hit::MCHitAnaExample::hCorrMult_v
private

Histogram (per plane) for # of MCHit vs. # of RecoHit.

Definition at line 96 of file MCHitAnaExample_module.cc.

std::vector<TH2D*> hit::MCHitAnaExample::hCorrQ_v
private

Histogram (per plane) for charge of one MCHit that is closest (in time) to one RecoHit.

Definition at line 102 of file MCHitAnaExample_module.cc.

std::vector<TH2D*> hit::MCHitAnaExample::hCorrQSum_v
private

Histogram (per plane) for charge sum of multiple MCHit found within start=>end time of one RecoHit.

Definition at line 105 of file MCHitAnaExample_module.cc.

std::vector<TH1D*> hit::MCHitAnaExample::hDT_v
private

Histogram (per plane) for time-diff between one Reco hit and the closest (in time) RecoHit.

Definition at line 117 of file MCHitAnaExample_module.cc.

std::vector<TH1D*> hit::MCHitAnaExample::hMCHitMult_v
private

Histogram (per plane) for MCHit multiplicity in each event.

Definition at line 79 of file MCHitAnaExample_module.cc.

std::vector<TH1D*> hit::MCHitAnaExample::hMCHitMultPerRecoHit_v
private

Histogram (per plane) for MCHit multiplicity within start=>end time region of RecoHit.

Definition at line 120 of file MCHitAnaExample_module.cc.

std::vector<TH1D*> hit::MCHitAnaExample::hMCHitQ_v
private

Histogram (per plane) for all MCHit charge.

Definition at line 76 of file MCHitAnaExample_module.cc.

TH1D* hit::MCHitAnaExample::hMCHitReadTime
private

Time to read MCHit from disk.

Definition at line 60 of file MCHitAnaExample_module.cc.

TH1D* hit::MCHitAnaExample::hMCHitSearchTime
private

Time to search for corresponding MCHit per RecoHit.

Definition at line 66 of file MCHitAnaExample_module.cc.

TH1D* hit::MCHitAnaExample::hMCHitSearchTimeSum
private

Time to search for corresponding MCHit per RecoHit summed over all RecoHits (per event)

Definition at line 69 of file MCHitAnaExample_module.cc.

std::vector<TH1D*> hit::MCHitAnaExample::hQRatio_v
private

Histogram (per plane) for a ratio of RecoHit charge to the closest (in time) RecoHit charge.

Definition at line 108 of file MCHitAnaExample_module.cc.

std::vector<TH1D*> hit::MCHitAnaExample::hQSumRatio_v
private

Histogram (per plane) for a ratio of charge sum of multiple MCHit to one RecoHit. Multiple MCHits are found within start=>end time of RecoHit.

Definition at line 114 of file MCHitAnaExample_module.cc.

std::vector<TH1D*> hit::MCHitAnaExample::hRecoHitMult_v
private

Histogram (per plane) for RecoHit multiplicity in each event.

Definition at line 89 of file MCHitAnaExample_module.cc.

std::vector<TH1D*> hit::MCHitAnaExample::hRecoHitQ_v
private

Histogram (per plane) for RecoHit charge.

Definition at line 86 of file MCHitAnaExample_module.cc.

TH1D* hit::MCHitAnaExample::hRecoHitReadTime
private

Time to read recob::Hit from disk.

Definition at line 57 of file MCHitAnaExample_module.cc.

std::vector<TH1D*> hit::MCHitAnaExample::hVoidHitQ_v
private

Histogram (per plane) for charge of some RecoHit that has no corresponding MCHit.

Definition at line 99 of file MCHitAnaExample_module.cc.


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