#include <ESElectronicsSim.h>
Definition at line 16 of file ESElectronicsSim.h.
◆ anonymous enum
◆ anonymous enum
◆ ESElectronicsSim()
ESElectronicsSim::ESElectronicsSim |
( |
bool |
addNoise | ) |
|
◆ ~ESElectronicsSim()
ESElectronicsSim::~ESElectronicsSim |
( |
| ) |
|
|
virtual |
◆ analogToDigital()
void ESElectronicsSim::analogToDigital |
( |
CLHEP::HepRandomEngine * |
engine, |
|
|
const CaloSamples & |
cs, |
|
|
ESDataFrame & |
df |
|
) |
| const |
|
virtual |
◆ decode()
double ESElectronicsSim::decode |
( |
const ESSample & |
sample, |
|
|
const DetId & |
detId |
|
) |
| const |
|
private |
◆ digitalToAnalog()
◆ encode()
std::vector< ESSample > ESElectronicsSim::encode |
( |
const CaloSamples & |
timeframe, |
|
|
CLHEP::HepRandomEngine * |
engine |
|
) |
| const |
|
private |
Definition at line 35 of file ESElectronicsSim.cc.
39 <<
"ESElectroncSim requires the RandomNumberGeneratorService\n"
40 "which is not present in the configuration file. You must add the service\n"
41 "in the configuration file or remove the modules that require it.";
49 int baseline_ = (
int)it_ped->getMean();
50 double sigma_ = (double)it_ped->getRms();
51 double MIPADC_ = (double)(*it_mip);
56 for (
int i = 0;
i < timeframe.
size();
i++) {
61 noi = CLHEP::RandGaussQ::shoot(engine, 0., sigma_);
64 signal = timeframe[
i] * ADCGeV + noi + baseline_;
References ecalLiteDTU::adc(), addNoise_, Exception, ESCondObjectContainer< T >::find(), ESCondObjectContainer< T >::getMap(), mps_fire::i, CaloSamples::id(), createfilelist::int, edm::Service< T >::isAvailable(), MAXADC, MINADC, mips_, MIPToGeV_, peds_, bookConverter::results, and CaloSamples::size().
Referenced by analogToDigital().
◆ newEvent()
void ESElectronicsSim::newEvent |
( |
CLHEP::HepRandomEngine * |
| ) |
|
|
inline |
◆ setGain()
void ESElectronicsSim::setGain |
( |
const int |
gain | ) |
|
|
inline |
◆ setMIPs()
◆ setMIPToGeV()
void ESElectronicsSim::setMIPToGeV |
( |
const double |
MIPToGeV | ) |
|
|
inline |
◆ setPedestals()
void ESElectronicsSim::setPedestals |
( |
const ESPedestals * |
peds | ) |
|
|
inline |
◆ addNoise_
bool ESElectronicsSim::addNoise_ |
|
private |
◆ gain_
int ESElectronicsSim::gain_ |
|
private |
◆ mips_
◆ MIPToGeV_
double ESElectronicsSim::MIPToGeV_ |
|
private |
◆ peds_