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