Public Member Functions | Private Attributes | List of all members
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 662 of file RawDataDrawer.cxx.

Constructor & Destructor Documentation

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

Definition at line 664 of file RawDataDrawer.cxx.

665  : detProp{dp}
667  , electronsToADC{dp.ElectronsToADC()}
668  {}
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 672 of file RawDataDrawer.cxx.

673  {
674  if (adc < 0.) return 0.;
675  double const dQdX = adc / wirePitch / electronsToADC;
676  return detProp.BirksCorrection(dQdX);
677  }
int16_t adc
Definition: CRTFragment.hh:202
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 680 of file RawDataDrawer.cxx.

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

conversion constant

Definition at line 682 of file RawDataDrawer.cxx.

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

wire pitch

Definition at line 681 of file RawDataDrawer.cxx.


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