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