#include <ESElectronicsSimFast.h>
Definition at line 16 of file ESElectronicsSimFast.h.
◆ ESSamples
◆ anonymous enum
◆ ESElectronicsSimFast()
ESElectronicsSimFast::ESElectronicsSimFast |
( |
bool |
addNoise, |
|
|
bool |
PreMix1 |
|
) |
| |
◆ ~ESElectronicsSimFast()
ESElectronicsSimFast::~ESElectronicsSimFast |
( |
| ) |
|
◆ analogToDigital()
void ESElectronicsSimFast::analogToDigital |
( |
CLHEP::HepRandomEngine * |
engine, |
|
|
ESSamples & |
cs, |
|
|
ESDataFrame & |
df, |
|
|
bool |
isNoise = false |
|
) |
| const |
Definition at line 24 of file ESElectronicsSimFast.cc.
30 df.setSize(
cs.size());
36 const double baseline((
double)it_ped->getMean());
37 const double sigma(isNoise ? 0. : (
double)it_ped->getRms());
38 const double MIPADC(isNoise ? 0. : (
double)(*it_mip));
39 const double ADCGeV(isNoise ? 1. : MIPADC /
m_MIPToGeV);
43 for (
unsigned int i(0);
i !=
cs.size(); ++
i) {
44 const double noi(isNoise || (!
m_addNoise) ? 0 : sigma * CLHEP::RandGaussQ::shoot(engine, 0, 1));
48 signal =
cs[
i] * ADCGeV + noi + baseline;
50 signal =
cs[
i] * ADCGeV;
63 if (0.5 < signal -
adc)
References gpuClustering::adc, cms::cuda::assert(), fwrapper::cs, hgcalPerformanceValidation::df, ESCondObjectContainer< T >::end(), ESCondObjectContainer< T >::find(), ESCondObjectContainer< T >::getMap(), mps_fire::i, triggerObjects_cff::id, createfilelist::int, m_addNoise, m_mips, m_MIPToGeV, m_peds, m_PreMix1, MAXADC, and MINADC.
◆ newEvent()
void ESElectronicsSimFast::newEvent |
( |
| ) |
|
|
inline |
◆ setMIPs()
◆ setMIPToGeV()
void ESElectronicsSimFast::setMIPToGeV |
( |
double |
MIPToGeV | ) |
|
◆ setPedestals()
void ESElectronicsSimFast::setPedestals |
( |
const ESPedestals * |
peds | ) |
|
◆ m_addNoise
bool ESElectronicsSimFast::m_addNoise |
|
private |
◆ m_mips
◆ m_MIPToGeV
double ESElectronicsSimFast::m_MIPToGeV |
|
private |
◆ m_peds
◆ m_PreMix1
bool ESElectronicsSimFast::m_PreMix1 |
|
private |