1 #ifndef HADAQ_TDCSUBEVENT_H
2 #define HADAQ_TDCSUBEVENT_H
4 #include "base/SubEvent.h"
6 #include "hadaq/TdcMessage.h"
30 uint8_t
getCh()
const {
return ch & 0x7F; }
44 ch(_ch | (_rising ? 0x00 : 0x80)),
72 uint8_t
getCh()
const {
return ch & 0x7F; }
86 ch(_ch | (_rising ? 0x00 : 0x80)),
Extended message - any message plus global time stamp.
Definition: base/SubEvent.h:36
Subevent with vector of extended messages.
Definition: base/SubEvent.h:91
Output double message.
Definition: TdcSubEvent.h:65
double getStamp() const
stamp
Definition: TdcSubEvent.h:70
MessageDouble(const MessageDouble &src)
constructor
Definition: TdcSubEvent.h:83
uint8_t ch
channel and edge
Definition: TdcSubEvent.h:66
double stamp
full time stamp, s
Definition: TdcSubEvent.h:67
uint8_t getCh() const
channel
Definition: TdcSubEvent.h:72
bool isRising() const
is rising
Definition: TdcSubEvent.h:76
MessageDouble(unsigned _ch, bool _rising, double _stamp)
constructor
Definition: TdcSubEvent.h:85
uint8_t getEdge() const
edge 0 - rising, 1 - falling
Definition: TdcSubEvent.h:74
bool operator<(const MessageDouble &rhs) const
compare operator - used for time sorting
Definition: TdcSubEvent.h:91
MessageDouble()
constructor
Definition: TdcSubEvent.h:81
bool isFalling() const
is falling
Definition: TdcSubEvent.h:78
Output float message.
Definition: TdcSubEvent.h:23
MessageFloat()
constructor
Definition: TdcSubEvent.h:39
uint8_t getEdge() const
edge 0 - rising, 1 - falling
Definition: TdcSubEvent.h:32
bool isRising() const
is rising
Definition: TdcSubEvent.h:34
MessageFloat(unsigned _ch, bool _rising, float _stamp)
constructor
Definition: TdcSubEvent.h:43
float stamp
time stamp minus channel0 time, ns
Definition: TdcSubEvent.h:25
MessageFloat(const MessageFloat &src)
constructor
Definition: TdcSubEvent.h:41
bool isFalling() const
is falling
Definition: TdcSubEvent.h:36
uint8_t ch
channel and edge
Definition: TdcSubEvent.h:24
float getStamp() const
stamp
Definition: TdcSubEvent.h:28
uint8_t getCh() const
channel
Definition: TdcSubEvent.h:30
bool operator<(const MessageFloat &rhs) const
compare operator - used for time sorting
Definition: TdcSubEvent.h:50