17 bool applyConstantTerm ,
18 double rmsConstantTerm ) :
19 m_simMap ( parameterMap ) ,
20 m_theCoder ( coder ) ,
21 m_gaussQDistribution ( 0 )
25 if( applyConstantTerm )
30 <<
"EcalElectroncSim requires the RandomNumberGeneratorService\n"
31 "which is not present in the configuration file. You must add the service\n"
32 "in the configuration file or remove the modules that require it.";
35 double thisCT = rmsConstantTerm ;
virtual const CaloSimParameters & simParameters(const DetId &id) const
return the sim parameters relative to the right subdet
void amplify(EcalSamples &clf) const
input signal is in pe. Converted in GeV
CLHEP::RandGaussQ * m_gaussQDistribution
virtual void analogToDigital(const EcalSamples &clf, EcalDataFrame &df) const
from EcalSamples to EcalDataFrame
void analogToDigital(EcalSamples &clf, EcalDataFrame &df) const
from EcalSamples to EcalDataFrame
virtual CLHEP::HepRandomEngine & getEngine() const =0
Use this to get the random number engine, this is the only function most users should call...
const EcalSimParameterMap * m_simMap
map of parameters
EcalElectronicsSim(const EcalSimParameterMap *parameterMap, EcalCoder *coder, bool applyConstantTerm, double rmsConstantTerm)