5 #include "CLHEP/Random/RandGaussQ.h" 16 double rmsConstantTerm ) :
17 m_simMap ( parameterMap ) ,
18 m_theCoder ( coder ) ,
19 m_thisCT ( rmsConstantTerm ),
20 m_applyConstantTerm ( applyConstantTerm )
46 clf *= fac*CLHEP::RandGaussQ::shoot(engine, 1.0,
m_thisCT);
virtual void analogToDigital(CLHEP::HepRandomEngine *, const EcalSamples &clf, EcalDataFrame &df) const
from EcalSamples to EcalDataFrame
void amplify(EcalSamples &clf, CLHEP::HepRandomEngine *) const
input signal is in pe. Converted in GeV
const bool m_applyConstantTerm
const CaloSimParameters & simParameters(const DetId &id) const override
return the sim parameters relative to the right subdet
const EcalSimParameterMap * m_simMap
map of parameters
void analogToDigital(CLHEP::HepRandomEngine *, EcalSamples &clf, EcalDataFrame &df) const
from EcalSamples to EcalDataFrame
EcalElectronicsSim(const EcalSimParameterMap *parameterMap, EcalCoder *coder, bool applyConstantTerm, double rmsConstantTerm)