14 #include "acqiris_device.h"
25 WaveformGenerator::WaveformGenerator()
29 void WaveformGenerator::load()
33 _instrID = s.
value(
"InstrumentId",8).toInt();
34 Instrument::channels_t &channels = _instrument.channels();
35 const size_t nSamples = s.
value(
"NbrOfSamples",20000).toUInt();
36 const double sampleInterval = s.
value(
"SampleInterval",1.e-9).toDouble();
38 channels.resize(size);
39 for (
int i = 0; i <
size; ++i)
42 Channel &chan = channels[i];
43 chan.channelNbr() = 99;
45 chan.offset() = s.
value(
"Offset",0).toDouble();
46 chan.sampleInterval() = sampleInterval;
47 chan.gain() = 0xFFFF / s.
value(
"FullScale",0.5).toDouble();
48 chan.waveform().resize(nSamples);
56 Instrument::channels_t &channels = _instrument.channels();
57 for (Instrument::channels_t::iterator it(channels.begin()); it != channels.end(); ++it)
60 waveform_t &waveform (chan.waveform());
61 generate(waveform.begin(),waveform.end(),qrand);
65 Device &dev(*dynamic_cast<Device*>(evt.
devices()[CASSEvent::Acqiris]));
67 Instrument & instrument(dev.instruments()[
static_cast<Instruments
>(_instrID)]);
69 instrument = _instrument;
Event to store all LCLS Data.
helper struct that will add Derived to the factory map
file contains declaration of the CASSEvent
things written only at end of run H5Dump ProcessorSummary size
beginReadArray(const QString &prefix)
devices_t & devices()
setters
value(const QString &key, const QVariant &defaultValue=QVariant()
file contains specialized class that do the settings for cass
beginGroup(const QString &prefix)