2 #ifndef EcalSimAlgos_EcalCoder_h 3 #define EcalSimAlgos_EcalCoder_h 1 19 class HepRandomEngine;
36 ADCGAINSWITCH = 4079 ,
43 Noisifier* ebCorrNoise0 ,
44 Noisifier* eeCorrNoise0 =
nullptr ,
45 Noisifier* ebCorrNoise1 =
nullptr ,
46 Noisifier* eeCorrNoise1 =
nullptr ,
47 Noisifier* ebCorrNoise2 =
nullptr ,
48 Noisifier* eeCorrNoise2 =
nullptr ) ;
57 void setFullScaleEnergy(
double EBscale ,
64 virtual void analogToDigital( CLHEP::HepRandomEngine*,
65 const EcalSamples& clf ,
71 double fullScaleEnergy(
const DetId & did )
const ;
74 void encode(
const EcalSamples& ecalSamples ,
76 CLHEP::HepRandomEngine* )
const ;
85 void findPedestal(
const DetId& detId ,
88 double&
width )
const ;
90 void findGains(
const DetId& detId,
91 double theGains[] )
const ;
93 void findIntercalibConstant(
const DetId& detId ,
94 double& icalconst )
const ;
108 const Noisifier* m_ebCorrNoise[3] ;
109 const Noisifier* m_eeCorrNoise[3] ;
const EcalGainRatios * m_gainRatios
CaloTSamples< float, 10 > EcalSamples
int gainId(sample_type sample)
get the gainId (2 bits)
CorrelatedNoisifier< EcalCorrMatrix > Noisifier
const EcalIntercalibConstantsMC * m_intercals
const EcalPedestals * m_peds