#include <NoisyAdcSimulator.h>
|
using | Channel = unsigned int |
|
using | Count = unsigned short |
|
using | Tick = unsigned int |
|
Definition at line 27 of file NoisyAdcSimulator.h.
NoisyAdcSimulator::NoisyAdcSimulator |
( |
double |
vsen, |
|
|
unsigned int |
nbit, |
|
|
int |
noise |
|
) |
| |
|
explicit |
Definition at line 9 of file NoisyAdcSimulator_tool.cc.
14 seedSvc->registerEngine(NuRandomService::CLHEPengineSeeder(
m_random_engine),
"NoisyAdcSimulator");
16 if ( nbit == 0 )
return;
17 unsigned int nbitmax = 8*
sizeof(
Count);
18 if ( nbit > nbitmax )
return;
20 for (
unsigned int ibit=0; ibit<nbit; ++ibit ) {
CLHEP::HepRandomEngine * m_random_engine
Implements AdcSimulator.
Definition at line 39 of file NoisyAdcSimulator_tool.cc.
43 double halfsen = 0.5*
m_vsen;
44 if (
m_vsen <= 0.0 )
return 0;
45 if ( vin < halfsen )
return 0;
Count count(double vin, Channel chan=0, Tick tick=0) const override
AdcSimulator::Count Count
CLHEP::HepRandomEngine * m_random_engine
Count NoisyAdcSimulator::m_adcmax |
|
private |
int NoisyAdcSimulator::m_noise |
|
private |
CLHEP::HepRandomEngine* NoisyAdcSimulator::m_random_engine |
|
private |
double NoisyAdcSimulator::m_vmax |
|
private |
double NoisyAdcSimulator::m_vsen |
|
private |
The documentation for this class was generated from the following files: