21 const double time = ev.
Get<
QHeader>(
"DAQ",
"Header").GetTime().GetFromStartRunNs()/1e09;
23 Info(
"************************************************************");
24 Info(
"Event: %d, chan %d, isSignal %d, time %f",evnum,chan,isSignal,time);
25 for(
size_t i = 0; i < neighbours.
Size(); i++) {
27 const double n_time = neighbours[i].Get<
QHeader>(
"DAQ",
"Header").GetTime().GetFromStartRunNs()/1e09;
31 const int n_evnum = neighbours[i].GetReadNumber();
32 Info(
"Neighbour event: %d, chan %d, isSignal %d, time %f",n_evnum,n_chan,n_isSignal,n_time);
#define REGISTER_MODULE(clazz)
one-line description of your module
void Init(Diana::QEvent &ev)
Init method.
void Do(Diana::QEvent &ev, const Diana::QEventList &neighbours)
Do method. Declare and implement only one of the two versions.
list of references to const QEvent (s)
size_t Size() const
number of QEvent (s)
void Get(const char *owner, ReadHandle< Q > &handle) const
Get a QObject Handle in read mode.
unsigned int GetReadNumber() const
return the event number as read by the current reader.
Raw event: bolometer channel, trigger positions and types.
bool GetIsSignal() const
Get IsSignal.
const int & GetChannelId() const
Get ChannelId.
the Diana namespace is needed because sometimes we use Qt libraries, that use same class names of our...