#include <EcalElectronicsSim.h>
Public Member Functions | |
void | amplify (CaloSamples &clf) const |
input signal is in pe. Converted in GeV More... | |
void | analogToDigital (CaloSamples &clf, EcalDataFrame &df) const |
from CaloSamples to EcalDataFrame More... | |
double | constantTerm () const |
compute the event random constant term More... | |
EcalElectronicsSim (const EcalSimParameterMap *parameterMap, EcalCoder *coder, bool applyConstantTerm, double rmsConstantTerm) | |
ctor More... | |
void | newEvent () |
anything that needs to be done once per event More... | |
Private Attributes | |
const bool | applyConstantTerm_ |
const double | rmsConstantTerm_ |
EcalCoder * | theCoder |
Converts CaloDataFrame in CaloTimeSample and vice versa. More... | |
const EcalSimParameterMap * | theParameterMap |
map of parameters More... | |
Definition at line 18 of file EcalElectronicsSim.h.
EcalElectronicsSim::EcalElectronicsSim | ( | const EcalSimParameterMap * | parameterMap, |
EcalCoder * | coder, | ||
bool | applyConstantTerm, | ||
double | rmsConstantTerm | ||
) |
ctor
Definition at line 16 of file EcalElectronicsSim.cc.
void EcalElectronicsSim::amplify | ( | CaloSamples & | clf | ) | const |
input signal is in pe. Converted in GeV
Definition at line 28 of file EcalElectronicsSim.cc.
References applyConstantTerm_, constantTerm(), CaloSamples::id(), EcalSimParameterMap::simParameters(), and theParameterMap.
Referenced by analogToDigital().
void EcalElectronicsSim::analogToDigital | ( | CaloSamples & | clf, |
EcalDataFrame & | df | ||
) | const |
from CaloSamples to EcalDataFrame
Definition at line 51 of file EcalElectronicsSim.cc.
References amplify(), EcalCoder::analogToDigital(), and theCoder.
double EcalElectronicsSim::constantTerm | ( | ) | const |
compute the event random constant term
Definition at line 36 of file EcalElectronicsSim.cc.
References edm::hlt::Exception, edm::RandomNumberGenerator::getEngine(), edm::Service< T >::isAvailable(), and rmsConstantTerm_.
Referenced by amplify().
|
inline |
anything that needs to be done once per event
Definition at line 33 of file EcalElectronicsSim.h.
|
private |
Definition at line 41 of file EcalElectronicsSim.h.
Referenced by amplify().
|
private |
Definition at line 42 of file EcalElectronicsSim.h.
Referenced by constantTerm().
|
private |
Converts CaloDataFrame in CaloTimeSample and vice versa.
Definition at line 40 of file EcalElectronicsSim.h.
Referenced by analogToDigital().
|
private |