25 fPulseLabel = GetString(
"PulseLabel",
"DAQ@Pulse",
false);
36 GlobalData().Get(
"",&
rHandle,
"");
53 const unsigned long long time = hdr.
GetTime().GetFromStartRunNs();
61 std::map<int, unsigned long long>::iterator chanIter = fChannels.find(
channel);
63 const unsigned long long firstTimeInWindow = time - (
unsigned long long)(
double(timedSample)*1.e09/samplFreq);
64 const unsigned long long lastTimeInWindow = firstTimeInWindow + (
unsigned long long)(
double(
N)*1.e09/samplFreq);
65 if(chanIter != fChannels.end()) {
66 if(firstTimeInWindow <= chanIter->second) {
69 chanIter->second = lastTimeInWindow;
74 fChannels[
channel] = lastTimeInWindow;
QRunDataHandle rHandle(753)
#define REGISTER_MODULE(clazz)
filter non overlapped events
bool Filter(const Diana::QEvent &ev)
return true if ev passes the cuts
double fSamplingFrequency
sampling frequency in Hz
const Q & GetByLabel(const QEventLabel &label) const
Get a QObject in read mode by label.
void Get(const char *owner, ReadHandle< Q > &handle) const
Get a QObject Handle in read mode.
Raw event: bolometer channel, trigger positions and types.
const QSampleInfo & GetMasterSample() const
Get MasterSample.
const int & GetChannelId() const
Get ChannelId.
Raw event: sampled waveform.
const Diana::QVector & GetSamples() const
Get Samples casted to double (QVector instead of QVectorI). Use this method in place of GetSamplesADC...
global handle for QRunData
const QChannelRunData & GetChannelRunData(const int channel) const
get channel based run data quantities
Int_t GetSampleIndex() const
Get SampleIndex from the beginning of the waveform.
the Diana namespace is needed because sometimes we use Qt libraries, that use same class names of our...