stream
0.10.0
stream analysis framework
|
TDC iterator. More...
#include <hadaq/TdcIterator.h>
Public Member Functions | |
TdcIterator (unsigned epochbitlen=28) | |
constructor | |
void | assign (uint32_t *buf, unsigned len, bool swapped=true) |
assign buffer | |
void | assign (hadaqs::RawSubevent *subev, unsigned indx, unsigned datalen) |
assign data from sub event | |
void | setRefEpoch (uint32_t epoch) |
One should call method to set current reference epoch. | |
bool | next () |
next TDC message | |
bool | next4 () |
next TDC v4 message | |
bool | lookForwardMsg (TdcMessage &msg) |
try to check forward message - without shifting iterator | |
uint64_t | getMsgStamp () const |
Returns 39-bit value, which combines epoch and coarse counter. More... | |
double | getMsgTimeCoarse () const |
get coarse time for the current message | |
double | getMsgTimeFine () const |
return fine time value for current message | |
hadaq::TdcMessage & | msg () |
get current message | |
bool | isCurEpoch () const |
Returns true, if current epoch was assigned. | |
void | clearCurEpoch () |
Clear current epoch value. | |
void | setCurEpoch (uint32_t val) |
Set value of current epoch. | |
uint32_t | getCurEpoch () const |
Return value of current epoch. | |
void | printmsg () |
print current message | |
void | printall4 () |
print all v4 messages | |
Protected Types | |
enum | { DummyEpoch = 0xffffffff } |
Protected Attributes | |
uint32_t * | fBuf |
! pointer on raw data | |
uint32_t * | fLastBuf |
! pointer on last extracted message | |
unsigned | fBuflen |
! length of raw data | |
bool | fSwapped |
! true if raw data are swapped | |
hadaq::TdcMessage | fMsg |
! current message | |
uint32_t | fCurEpoch |
! current epoch | |
base::LocalStampConverter | fConv |
! use to covert time stamps in seconds | |
TDC iterator.
Iterator over TDC messages
|
inline |
Returns 39-bit value, which combines epoch and coarse counter.
Time bin is 5 ns