#include <ESElectronicsSim.h>
Definition at line 16 of file ESElectronicsSim.h.
◆ anonymous enum
◆ anonymous enum
◆ ESElectronicsSim()
ESElectronicsSim::ESElectronicsSim |
( |
bool |
addNoise | ) |
|
Definition at line 11 of file ESElectronicsSim.cc.
const ESIntercalibConstants * mips_
const ESPedestals * peds_
◆ ~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.
References gpuClustering::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_, mysort::results, and CaloSamples::size().
Referenced by analogToDigital().
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_;
int size() const
get the size
const ESIntercalibConstants * mips_
const_iterator find(uint32_t rawId) const
DetId id() const
get the (generic) id
std::vector< Item >::const_iterator const_iterator
const self & getMap() const
const ESPedestals * peds_
uint16_t *__restrict__ uint16_t const *__restrict__ adc
◆ 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_