2 #ifndef EcalSimAlgos_EcalCoder_h 3 #define EcalSimAlgos_EcalCoder_h 1 20 class HepRandomEngine;
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,
double EEscale);
62 virtual void analogToDigital(CLHEP::HepRandomEngine*,
const EcalSamples& clf,
EcalDataFrame& df)
const;
66 double fullScaleEnergy(
const DetId& did)
const;
69 void encode(
const EcalSamples& ecalSamples,
EcalDataFrame& df, CLHEP::HepRandomEngine*)
const;
80 void findGains(
const DetId& detId,
double theGains[])
const;
82 void findIntercalibConstant(
const DetId& detId,
double& icalconst)
const;
96 const Noisifier* m_ebCorrNoise[3];
97 const Noisifier* m_eeCorrNoise[3];
const EcalGainRatios * m_gainRatios
CorrelatedNoisifier< EcalCorrMatrix > Noisifier
CaloTSamples< float, 10 > EcalSamples
const EcalIntercalibConstantsMC * m_intercals
const EcalPedestals * m_peds
constexpr int gainId(sample_type sample)
get the gainId (2 bits)