1 #ifndef EcalSimAlgos_ESElectronicsSimFast_h
2 #define EcalSimAlgos_ESElectronicsSimFast_h 1
7 #include "CLHEP/Random/RandGeneral.h"
44 std::vector<ESSample>
fastEncode(
const CaloSamples& timeframe, CLHEP::RandGeneral *histoDistribution,
double hInf,
double hSup,
double hBin)
const;
const ESPedestals * peds_
void setGain(const int gain)
void setMIPToGeV(const double MIPToGeV)
double decode(const ESSample &sample, const DetId &detId) const
const ESIntercalibConstants * mips_
void setPedestals(const ESPedestals *peds)
void digitalToAnalog(const ESDataFrame &df, CaloSamples &cs) const
virtual void analogToDigital(const CaloSamples &cs, ESDataFrame &df, bool wasEmpty, CLHEP::RandGeneral *histoDistribution, double hInf, double hSup, double hBin) const
std::vector< ESSample > fastEncode(const CaloSamples &timeframe, CLHEP::RandGeneral *histoDistribution, double hInf, double hSup, double hBin) const
void newEvent()
anything that needs to be done once per event
ESElectronicsSimFast(bool addNoise)
void setMIPs(const ESIntercalibConstants *mips)
std::vector< ESSample > standEncode(const CaloSamples &timeframe) const