|
ATLAS Offline Software
|
Go to the documentation of this file.
5 #ifndef ZDCUTILS_ZDCWAVEFORMSAMPLER_H
6 #define ZDCUTILS_ZDCWAVEFORMSAMPLER_H
41 ZDCWaveformSampler(
float freqMHz,
float timeMin,
unsigned int numSamples,
unsigned int nBits,
unsigned int pedestal,
42 std::shared_ptr<ZDCWaveformBase> waveformPtr) :
54 ZDCWaveformSampler(
float freqMHz,
float timeMin,
unsigned int numSamples,
unsigned int nBits,
unsigned int pedestal,
55 const std::vector<std::shared_ptr<ZDCWaveformBase> >& waveformPtrVec) :
72 std::vector<unsigned int>
Generate(
float amplitude)
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.");
79 std::vector<unsigned int>
Generate(
float amplitude,
float T0)
81 if (
m_numChannels != 1)
throw std::runtime_error(
"ZDCWaveformSampler::Generate called with one parameter on an object with multiple channels.");
85 std::vector<unsigned int>
Generate(
unsigned int channel,
float amplitude,
float T0);