LArSoft  v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
evd::details::ADCCorrectorClass Class Reference

Applies Birks correction. More...

Public Member Functions

 ADCCorrectorClass ()
 Default constructor: awaits for update() More...
 
 ADCCorrectorClass (geo::PlaneID const &pid)
 Constructor: update()s with the specified information. More...
 
double Correct (float adc) const
 Applies Birks correction to the specified pedestal-subtracted charge. More...
 
double operator() (float adc) const
 
void update (geo::PlaneID const &pid)
 

Protected Attributes

float wirePitch
 wire pitch More...
 
float electronsToADC
 conversion constant More...
 

Detailed Description

Applies Birks correction.

Definition at line 526 of file RawDataDrawer.cxx.

Constructor & Destructor Documentation

evd::details::ADCCorrectorClass::ADCCorrectorClass ( )
inline

Default constructor: awaits for update()

Definition at line 529 of file RawDataDrawer.cxx.

529 {}
evd::details::ADCCorrectorClass::ADCCorrectorClass ( geo::PlaneID const &  pid)
inline

Constructor: update()s with the specified information.

Definition at line 532 of file RawDataDrawer.cxx.

532 { update(pid); }
void update(geo::PlaneID const &pid)

Member Function Documentation

double evd::details::ADCCorrectorClass::Correct ( float  adc) const
inline

Applies Birks correction to the specified pedestal-subtracted charge.

Definition at line 535 of file RawDataDrawer.cxx.

References detinfo::DetectorProperties::BirksCorrection().

536  {
537  if (adc < 0.) return 0.;
538  double const dQdX = adc / wirePitch / electronsToADC;
539  detinfo::DetectorProperties const* detp = lar::providerFrom<detinfo::DetectorPropertiesService>();
540  return detp->BirksCorrection(dQdX);
541  } // Correct()
virtual double BirksCorrection(double dQdX) const =0
dQ/dX in electrons/cm, returns dE/dX in MeV/cm.
float electronsToADC
conversion constant
double evd::details::ADCCorrectorClass::operator() ( float  adc) const
inline

Definition at line 542 of file RawDataDrawer.cxx.

542 { return Correct(adc); }
double Correct(float adc) const
Applies Birks correction to the specified pedestal-subtracted charge.
void evd::details::ADCCorrectorClass::update ( geo::PlaneID const &  pid)
inline

Definition at line 544 of file RawDataDrawer.cxx.

References detinfo::DetectorProperties::ElectronsToADC(), and geo::GeometryCore::WirePitch().

545  {
547  wirePitch = geo->WirePitch(pid);
548 
549  detinfo::DetectorProperties const* detp = lar::providerFrom<detinfo::DetectorPropertiesService>();
550  electronsToADC = detp->ElectronsToADC();
551  } // update()
geo::Length_t WirePitch(geo::PlaneID const &planeid) const
Returns the distance between two consecutive wires.
float electronsToADC
conversion constant
virtual double ElectronsToADC() const =0
Namespace collecting geometry-related classes utilities.

Member Data Documentation

float evd::details::ADCCorrectorClass::electronsToADC
protected

conversion constant

Definition at line 555 of file RawDataDrawer.cxx.

float evd::details::ADCCorrectorClass::wirePitch
protected

wire pitch

Definition at line 554 of file RawDataDrawer.cxx.


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