#include <ESElectronicsSim.h>
Public Types | |
enum | { MAXADC = 4095 } |
enum | { MINADC = 0 } |
Public Member Functions | |
virtual void | analogToDigital (const CaloSamples &cs, ESDataFrame &df) const |
virtual void | digitalToAnalog (const ESDataFrame &df, CaloSamples &cs) const |
ESElectronicsSim (bool addNoise) | |
void | newEvent () |
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) const |
Private Attributes | |
bool | addNoise_ |
int | gain_ |
const ESIntercalibConstants * | mips_ |
double | MIPToGeV_ |
const ESPedestals * | peds_ |
Definition at line 12 of file ESElectronicsSim.h.
anonymous enum |
Enumerator | |
---|---|
MAXADC |
Definition at line 16 of file ESElectronicsSim.h.
anonymous enum |
Enumerator | |
---|---|
MINADC |
Definition at line 17 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 96 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(), edm::RandomNumberGenerator::getEngine(), 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 31 of file ESElectronicsSim.h.
|
inline |
Definition at line 22 of file ESElectronicsSim.h.
References gain_.
Referenced by EcalDigiProducer::checkCalibrations().
|
inline |
Definition at line 24 of file ESElectronicsSim.h.
References mips_.
Referenced by EcalDigiProducer::checkCalibrations().
|
inline |
Definition at line 25 of file ESElectronicsSim.h.
References MIPToGeV_.
Referenced by EcalDigiProducer::checkCalibrations().
|
inline |
Definition at line 23 of file ESElectronicsSim.h.
References peds_.
Referenced by EcalDigiProducer::checkCalibrations().
|
private |
Definition at line 35 of file ESElectronicsSim.h.
Referenced by encode().
|
private |
Definition at line 36 of file ESElectronicsSim.h.
Referenced by setGain().
|
private |
Definition at line 38 of file ESElectronicsSim.h.
|
private |
Definition at line 39 of file ESElectronicsSim.h.
Referenced by encode(), and setMIPToGeV().
|
private |
Definition at line 37 of file ESElectronicsSim.h.
Referenced by encode(), and setPedestals().