34 if ( unsat_px <= 0 )
return unsat_px;
37 double saturatedSignal =
fNeffPx * ( 1. - std::exp( - unsat_px /
fNeffPx ) );
39 return saturatedSignal;
46 if ( sat_px <= 0 )
return sat_px;
52 float unSaturatedSignal = - fNeffPx * std::log(1 - sat_px / fNeffPx);
53 return unSaturatedSignal;
58 float unSaturatedSignal = 1/( 1 -
ratio ) * (sat_px - ratio * fNeffPx) - fNeffPx * std::log( 1 - ratio );
59 return unSaturatedSignal;
Namespace for general, non-LArSoft-specific utilities.
double Saturate(const double unsat_px)
double DeSaturate(const double sat_px)
Interface to SiPMReadoutSimAlg class for SiPM specific.