LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
lcvn::HitHelper Class Reference

#include "PixelMapProducer.h"

Public Member Functions

 HitHelper (recob::Hit hit, double thresh=0.)
 
virtual Waveform GetWaveform ()
 
virtual geo::WireID GetID ()
 

Protected Attributes

recob::Hit fHit
 
double fThreshold
 
geo::GeometryCore const * fGeometry
 

Detailed Description

Definition at line 35 of file PixelMapProducer.h.

Constructor & Destructor Documentation

lcvn::HitHelper::HitHelper ( recob::Hit  hit,
double  thresh = 0. 
)
inline

Definition at line 37 of file PixelMapProducer.h.

References fGeometry, GetID(), and GetWaveform().

37  : fHit(hit), fThreshold(thresh)
38  {
40  }
geo::GeometryCore const * fGeometry

Member Function Documentation

geo::WireID lcvn::HitHelper::GetID ( )
virtual

Definition at line 41 of file PixelMapProducer.cxx.

References fHit, and recob::Hit::WireID().

Referenced by HitHelper(), lcvn::SimChannelHelper::SimChannelHelper(), and lcvn::WireHelper::WireHelper().

42  {
43  return fHit.WireID();
44  }
geo::WireID const & WireID() const
Initial tdc tick for hit.
Definition: Hit.h:280
Waveform lcvn::HitHelper::GetWaveform ( )
virtual

Definition at line 31 of file PixelMapProducer.cxx.

References fHit, fThreshold, recob::Hit::Integral(), and recob::Hit::PeakTime().

Referenced by HitHelper(), lcvn::SimChannelHelper::SimChannelHelper(), and lcvn::WireHelper::WireHelper().

32  {
33 
34  Waveform ret;
35  double pe = fHit.Integral();
36  if (pe > fThreshold) ret.push_back(std::map<double, double>({{fHit.PeakTime(), pe}}));
37 
38  return ret;
39  }
float Integral() const
Integral under the calibrated signal waveform of the hit, in tick x ADC units.
Definition: Hit.h:244
float PeakTime() const
Time of the signal peak, in tick units.
Definition: Hit.h:220
std::vector< std::map< double, double > > Waveform

Member Data Documentation

recob::Hit lcvn::HitHelper::fHit
protected

Definition at line 46 of file PixelMapProducer.h.

Referenced by GetID(), and GetWaveform().

double lcvn::HitHelper::fThreshold
protected

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