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

Applies Birks correction. More...

Public Member Functions

 ADCCorrectorClass (detinfo::DetectorPropertiesData const &dp, geo::PlaneID const &pid)
 
double operator() (float adc) const
 Applies Birks correction to the specified pedestal-subtracted charge. More...
 

Private Attributes

detinfo::DetectorPropertiesData const & detProp
 
double wirePitch
 wire pitch More...
 
double electronsToADC
 conversion constant More...
 

Detailed Description

Applies Birks correction.

Definition at line 499 of file RawDataDrawer.cxx.

Constructor & Destructor Documentation

evd::details::ADCCorrectorClass::ADCCorrectorClass ( detinfo::DetectorPropertiesData const &  dp,
geo::PlaneID const &  pid 
)
inline

Definition at line 501 of file RawDataDrawer.cxx.

502  : detProp{dp}
504  , electronsToADC{dp.ElectronsToADC()}
505  {}
double electronsToADC
conversion constant
detinfo::DetectorPropertiesData const & detProp

Member Function Documentation

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

Applies Birks correction to the specified pedestal-subtracted charge.

Definition at line 508 of file RawDataDrawer.cxx.

509  {
510  if (adc < 0.) return 0.;
511  double const dQdX = adc / wirePitch / electronsToADC;
512  return detProp.BirksCorrection(dQdX);
513  }
double electronsToADC
conversion constant
detinfo::DetectorPropertiesData const & detProp
double BirksCorrection(double dQdX) const
dQ/dX in electrons/cm, returns dE/dX in MeV/cm.

Member Data Documentation

detinfo::DetectorPropertiesData const& evd::details::ADCCorrectorClass::detProp
private

Definition at line 516 of file RawDataDrawer.cxx.

double evd::details::ADCCorrectorClass::electronsToADC
private

conversion constant

Definition at line 518 of file RawDataDrawer.cxx.

double evd::details::ADCCorrectorClass::wirePitch
private

wire pitch

Definition at line 517 of file RawDataDrawer.cxx.


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