13#include <rawdata/dataobjects/RawDataBlock.h>
14#include <rawdata/dataobjects/RawFTSWFormat.h>
15#include <rawdata/dataobjects/RawFTSWFormat_v1.h>
16#include <rawdata/dataobjects/RawFTSWFormat_v2.h>
17#include <rawdata/dataobjects/RawFTSWFormat_latest.h>
42 void SetBuffer(
int* bufin,
int nwords,
int delete_flag,
int num_events,
int num_nodes) OVERRIDE_CPP17;
122 unsigned int prev_evenum,
unsigned int* cur_evenum,
123 unsigned int prev_exprunsubrun_no,
unsigned int* cur_exprunsubrun_no)
126 return m_access->
CheckData(n, prev_evenum, cur_evenum, prev_exprunsubrun_no, cur_exprunsubrun_no);
218 FTSW_FORMAT_MASK = 0x000000FF,
220 FORMAT_ID_VER_0TO2 = 0x54544420,
221 FORMAT_ID_VER_0TO3 = 0x54544431,
227 VER_2_HEADER_SIZE = 8,
228 VER_3_HEADER_SIZE = 8
The RawDataBlock class Base class for rawdata handling.
int m_num_events
number of events in this object
int m_num_nodes
number of nodes in this object
int m_nwords
do not record
unsigned int GetTTCtimeTRGType(int n)
Get a word containing ctime and trigger type info.
void SetVersion()
read data, detect and set the version number of the data format
int GetIsHER(int n)
HER injection = 1 or LER injection = 0.
RawFTSW()
Default constructor.
int GetExpNo(int n)
Get Exp #.
unsigned int GetExpRunSubrun(int n)
Exp# (10bit) run# (14bit) restart # (8bit)
void GetPCTimeVal(int n, struct timeval *tv)
Get timeval obtained from gettimeval()
unsigned int GetFTSWNodeID(int n)
Get Node # ( should be "TTD " )
unsigned int GetFrameCount(int n)
Get a frame count.
unsigned int GetTimeSinceLastInjection(int n)
Get time since the last injection.
unsigned int GetEveNo(int n)
Get event #.
unsigned int GetTTUtime(int n)
get unixtime of the trigger
virtual ~RawFTSW()
Constructor using existing pointer to raw data buffer.
int GetRunNoSubRunNo(int n)
get a word cotaining run # and subrun #
int GetSubRunNo(int n)
Get subrun #.
int Get15bitTLUTag(int n)
DESY test only.
@ POS_NODE_FORMAT_ID
Added to distinguish different version.
@ VER_1_HEADER_SIZE
Unpacker for ver.0(early DESY version) is not available.
@ VER_0_HEADER_SIZE
The same number of this information must appear in RawFTSWFormat*.h. Information should be placed in ...
ClassDefOverride(RawFTSW, 2)
do not record
int GetNwordsHeader(int n)
Get # of words of header.
unsigned int GetMagicTrailer(int n)
Get magic number for data corruption check.
RawFTSWFormat * m_access
class to access
unsigned int GetTimeSincePrevTrigger(int n)
Get time since the previous trigger.
int m_version
do not record
void GetTTTimeVal(int n, struct timeval *tv)
Get timeval from ctime and utime.
int GetTTCtime(int n)
Get ctime of the trigger.
unsigned int GetBunchNumber(int n)
Get a bunch number.
void SetBuffer(int *bufin, int nwords, int delete_flag, int num_events, int num_nodes) OVERRIDE_CPP17
set buffer ( delete_flag : m_buffer is freeed( = 0 )/ not freeed( = 1 ) in Destructer )
int GetTRGType(int n)
Get trgtype.
void CheckData(int n, unsigned int prev_evenum, unsigned int *cur_evenum, unsigned int prev_exprunsubrun_no, unsigned int *cur_exprunsubrun_no)
check the data contents
int GetRunNo(int n)
Get run #.
void CheckVersionSetBuffer()
Check the version number of data format.
Abstract base class for different kinds of events.