#include <ZDCWaveformSampler.h>
|
| ZDCWaveformSampler (float freqMHz, float timeMin, unsigned int numSamples, unsigned int nBits, unsigned int pedestal, std::shared_ptr< ZDCWaveformBase > waveformPtr) |
|
| ZDCWaveformSampler (float freqMHz, float timeMin, unsigned int numSamples, unsigned int nBits, unsigned int pedestal, const std::vector< std::shared_ptr< ZDCWaveformBase > > &waveformPtrVec) |
|
void | SetDefaultT0 (float T0) |
|
std::vector< unsigned int > | Generate (float amplitude) |
|
std::vector< unsigned int > | Generate (float amplitude, float T0) |
|
std::vector< unsigned int > | Generate (unsigned int channel, float amplitude, float T0) |
|
Definition at line 24 of file ZDCWaveformSampler.h.
◆ ZDCWaveformSampler() [1/2]
ZDCWaveformSampler::ZDCWaveformSampler |
( |
float |
freqMHz, |
|
|
float |
timeMin, |
|
|
unsigned int |
numSamples, |
|
|
unsigned int |
nBits, |
|
|
unsigned int |
pedestal, |
|
|
std::shared_ptr< ZDCWaveformBase > |
waveformPtr |
|
) |
| |
|
inline |
◆ ZDCWaveformSampler() [2/2]
ZDCWaveformSampler::ZDCWaveformSampler |
( |
float |
freqMHz, |
|
|
float |
timeMin, |
|
|
unsigned int |
numSamples, |
|
|
unsigned int |
nBits, |
|
|
unsigned int |
pedestal, |
|
|
const std::vector< std::shared_ptr< ZDCWaveformBase > > & |
waveformPtrVec |
|
) |
| |
|
inline |
◆ Generate() [1/3]
std::vector<unsigned int> ZDCWaveformSampler::Generate |
( |
float |
amplitude | ) |
|
|
inline |
Definition at line 72 of file ZDCWaveformSampler.h.
74 if (
m_numChannels != 1)
throw std::runtime_error(
"ZDCWaveformSampler::Generate called with one parameter on an object with multiple channels.");
75 if (!
m_haveDefaultT0)
throw std::runtime_error(
"ZDCWaveformSampler::Generate called with no default t0.");
◆ Generate() [2/3]
std::vector<unsigned int> ZDCWaveformSampler::Generate |
( |
float |
amplitude, |
|
|
float |
T0 |
|
) |
| |
|
inline |
Definition at line 79 of file ZDCWaveformSampler.h.
81 if (
m_numChannels != 1)
throw std::runtime_error(
"ZDCWaveformSampler::Generate called with one parameter on an object with multiple channels.");
◆ Generate() [3/3]
std::vector< unsigned int > ZDCWaveformSampler::Generate |
( |
unsigned int |
channel, |
|
|
float |
amplitude, |
|
|
float |
T0 |
|
) |
| |
Definition at line 8 of file ZDCWaveformSampler.cxx.
10 std::vector<unsigned int> samples;
18 for (
unsigned int isample = 0; isample <
m_numSamples; isample++) {
27 float value = std::floor(valueUnitNorm*amplitude);
36 samples.push_back(valueIntTrunc);
◆ SetDefaultT0()
void ZDCWaveformSampler::SetDefaultT0 |
( |
float |
T0 | ) |
|
|
inline |
◆ m_defaultT0
float ZDCWaveformSampler::m_defaultT0 |
|
private |
◆ m_deltaT
float ZDCWaveformSampler::m_deltaT |
|
private |
◆ m_haveDefaultT0
bool ZDCWaveformSampler::m_haveDefaultT0 |
|
private |
◆ m_maxADC
float ZDCWaveformSampler::m_maxADC |
|
private |
◆ m_numChannels
unsigned int ZDCWaveformSampler::m_numChannels |
|
private |
◆ m_numSamples
unsigned int ZDCWaveformSampler::m_numSamples |
|
private |
◆ m_pedestal
unsigned int ZDCWaveformSampler::m_pedestal |
|
private |
◆ m_timeMin
float ZDCWaveformSampler::m_timeMin |
|
private |
◆ m_waveformChanPtrs
std::vector<std::shared_ptr<ZDCWaveformBase> > ZDCWaveformSampler::m_waveformChanPtrs |
|
private |
The documentation for this class was generated from the following files: