25 ACQIRISTDC::Channel::hits_t::const_iterator it(
hits.begin());
26 for (; it !=
hits.end();++it)
30 for (; tit != _timeranges.end();++tit)
32 if ((*tit).first < (*it) && (*it) < (*tit).second)
43 sig.push_back(signal);
52 _instrument = s.
value(
"TDCInstrument").toUInt();
53 _channelNumber= s.
value(
"ChannelNumber",0).toUInt();
55 for (
int i = 0; i <
size; ++i)
58 _timeranges.push_back(make_pair(s.
value(
"LowerLimit",0.).toDouble(),
59 s.
value(
"UpperLimit",1000).toDouble()));
65 void ACQIRISTDC::TDCExtractor::associate(
const CASSEvent &evt)
68 (dynamic_cast<const ACQIRISTDC::Device&>(*(evt.
devices().find(CASSEvent::AcqirisTDC)->second)));
69 ACQIRISTDC::Device::instruments_t::const_iterator instrumentIt
70 (device.instruments().find(_instrument));
71 if (instrumentIt == device.instruments().end())
72 throw invalid_argument(
"TDCExtractor::associate(): The requested Instrument '" +
73 toString(_instrument) +
"' is not in the datastream");
75 (instrumentIt->second.channels());
76 if ((_channelNumber >= tdcChannels.size()))
77 throw invalid_argument(
"TDCExtractor::associate(): The requested channel '" +
78 toString(_channelNumber) +
"' does not exist in Instrument '"+
80 _chan = &(tdcChannels[_channelNumber]);
Event to store all LCLS Data.
std::vector< signal_t > signals_t
file contains declaration of the CASSEvent
Average out the iShit status to get the avererage hits
things written only at end of run H5Dump ProcessorSummary size
std::vector< double > signal_t
beginReadArray(const QString &prefix)
file contains the declaration of the acqiristdc part of the CASSEvent
std::vector< Channel > channels_t
a vector of Channels
devices_t & devices()
setters
std::string toString(const Type &t)
convert any type to a string
value(const QString &key, const QVariant &defaultValue=QVariant()
void loadSettings(CASSSettings &s, CFDParameters &p, uint32_t &instrument, size_t &channelNbr)
implementation of loading settings for both CFD classes
file contains specialized class that do the settings for cass
std::vector< double > hits_t
define the hits
beginGroup(const QString &prefix)