1 #ifndef SimCalorimetry_EcalSimAlgos_EcalLiteDTUCoder_h 2 #define SimCalorimetry_EcalSimAlgos_EcalLiteDTUCoder_h 21 class HepRandomEngine;
const EcalLiteDTUPedestalsMap * m_peds
static constexpr unsigned int NGAINS
void encode(const EcalSamples &ecalSamples, EcalDataFrame_Ph2 &df, CLHEP::HepRandomEngine *) const
produce the pulse-shape
CorrelatedNoisifier< EcalCorrMatrix_Ph2 > Noisifier
CaloTSamples< float, ecalPh2::sampleSize > EcalSamples
void setIntercalibConstants(const EcalIntercalibConstantsMC *ical)
const Noisifier * m_ebCorrNoise[ecalPh2::NGAINS]
double fullScaleEnergy(const DetId &did) const
limit on the energy scale due to the electronics range
void setFullScaleEnergy(double EBscale)
void setGainRatios(float gainRatios)
const EcalIntercalibConstantsMC * m_intercals
constexpr int gainId(sample_type sample)
get the gainId (2 bits)
void findPedestal(const DetId &detId, int gainId, double &pedestal, double &width) const
void findGains(const DetId &detId, float theGains[]) const
void findIntercalibConstant(const DetId &detId, double &icalconst) const
virtual void analogToDigital(CLHEP::HepRandomEngine *, const EcalSamples &clf, EcalDataFrame_Ph2 &df) const
from EcalSamples to EcalDataFrame_Ph2
virtual ~EcalLiteDTUCoder()
dtor
void setPedestals(const EcalLiteDTUPedestalsMap *pedestals)
can be fetched every event from the EventSetup
EcalLiteDTUCoder(bool addNoise, bool PreMix1, Noisifier *ebCorrNoise0, Noisifier *ebCorrNoise1=nullptr)
ctor