#include <ESElectronicsSim.h>
Public Types | |
enum | { MAXADC = 4095 } |
enum | { MINADC = 0 } |
Public Member Functions | |
virtual void | analogToDigital (CLHEP::HepRandomEngine *, const CaloSamples &cs, ESDataFrame &df) const |
virtual void | digitalToAnalog (const ESDataFrame &df, CaloSamples &cs) const |
ESElectronicsSim (bool addNoise) | |
void | newEvent (CLHEP::HepRandomEngine *) |
anything that needs to be done once per event More... | |
void | setGain (const int gain) |
void | setMIPs (const ESIntercalibConstants *mips) |
void | setMIPToGeV (const double MIPToGeV) |
void | setPedestals (const ESPedestals *peds) |
virtual | ~ESElectronicsSim () |
Private Member Functions | |
double | decode (const ESSample &sample, const DetId &detId) const |
std::vector< ESSample > | encode (const CaloSamples &timeframe, CLHEP::HepRandomEngine *) const |
Private Attributes | |
bool | addNoise_ |
int | gain_ |
const ESIntercalibConstants * | mips_ |
double | MIPToGeV_ |
const ESPedestals * | peds_ |
Definition at line 16 of file ESElectronicsSim.h.
anonymous enum |
Enumerator | |
---|---|
MAXADC |
Definition at line 20 of file ESElectronicsSim.h.
anonymous enum |
Enumerator | |
---|---|
MINADC |
Definition at line 21 of file ESElectronicsSim.h.
ESElectronicsSim::ESElectronicsSim | ( | bool | addNoise | ) |
Definition at line 11 of file ESElectronicsSim.cc.
|
virtual |
Definition at line 20 of file ESElectronicsSim.cc.
|
virtual |
Definition at line 23 of file ESElectronicsSim.cc.
References encode(), i, ESDataFrame::setSample(), ESDataFrame::setSize(), ESDataFrame::size(), and CaloSamples::size().
Definition at line 95 of file ESElectronicsSim.cc.
Referenced by digitalToAnalog().
|
virtual |
Definition at line 35 of file ESElectronicsSim.cc.
References decode(), i, ESDataFrame::id(), and ESDataFrame::size().
|
private |
Definition at line 45 of file ESElectronicsSim.cc.
References ecalMGPA::adc(), addNoise_, edm::hlt::Exception, ESCondObjectContainer< T >::find(), ESCondObjectContainer< T >::getMap(), i, CaloSamples::id(), edm::Service< T >::isAvailable(), MAXADC, MINADC, mips_, MIPToGeV_, peds_, python.entryComment::results, and CaloSamples::size().
Referenced by analogToDigital().
|
inline |
anything that needs to be done once per event
Definition at line 35 of file ESElectronicsSim.h.
|
inline |
Definition at line 26 of file ESElectronicsSim.h.
References gain_.
Referenced by EcalDigiProducer::checkCalibrations().
|
inline |
Definition at line 28 of file ESElectronicsSim.h.
References mips_.
Referenced by EcalDigiProducer::checkCalibrations().
|
inline |
Definition at line 29 of file ESElectronicsSim.h.
References MIPToGeV_.
Referenced by EcalDigiProducer::checkCalibrations().
|
inline |
Definition at line 27 of file ESElectronicsSim.h.
References peds_.
Referenced by EcalDigiProducer::checkCalibrations().
|
private |
Definition at line 39 of file ESElectronicsSim.h.
Referenced by encode().
|
private |
Definition at line 40 of file ESElectronicsSim.h.
Referenced by setGain().
|
private |
Definition at line 42 of file ESElectronicsSim.h.
|
private |
Definition at line 43 of file ESElectronicsSim.h.
Referenced by encode(), and setMIPToGeV().
|
private |
Definition at line 41 of file ESElectronicsSim.h.
Referenced by encode(), and setPedestals().