![]() |
Belle II Software
release-08-02-04
|
The Raw FTSW class 3 ( 2019.8.20 ) More...
#include <RawFTSWFormat_latest.h>


Public Member Functions | |
| RawFTSWFormat_latest () | |
| Default constructor. | |
| virtual | ~RawFTSWFormat_latest () |
| Constructor using existing pointer to raw data buffer. More... | |
| int | GetNwordsHeader (int n) OVERRIDE_CPP17 |
| Get # of words of header. | |
| unsigned int | GetFTSWNodeID (int n) OVERRIDE_CPP17 |
| Get Node # ( should be "TTD " ) | |
| unsigned int | GetEveNo (int n) OVERRIDE_CPP17 |
| Get event #. | |
| unsigned int | GetTTCtimeTRGType (int n) OVERRIDE_CPP17 |
| Get a word containing ctime and trigger type info. | |
| unsigned int | GetTTUtime (int n) OVERRIDE_CPP17 |
| get unixtime of the trigger | |
| int | GetTTCtime (int n) OVERRIDE_CPP17 |
| Get ctime of the trigger. | |
| int | GetTRGType (int n) OVERRIDE_CPP17 |
| Get trgtype. | |
| void | GetTTTimeVal (int n, struct timeval *tv) OVERRIDE_CPP17 |
| Get timeval from ctime and utime. | |
| void | GetTTTimeSpec (int n, struct timespec *ts) OVERRIDE_CPP17 |
| Get timespec from ctime and utime. | |
| unsigned long long int | GetTTTimeNs (int n) OVERRIDE_CPP17 |
| Get time in ns since epoch from ctime and utime. | |
| unsigned int | GetMagicTrailer (int n) OVERRIDE_CPP17 |
| Get magic number for data corruption check. | |
| void | GetPCTimeVal (int n, struct timeval *tv) OVERRIDE_CPP17 |
| Get stored information of getimeofday in a PC. | |
| void | CheckData (int n, unsigned int prev_evenum, unsigned int *cur_evenum, unsigned int prev_exprunsubrun_no, unsigned int *cur_exprunsubrun_no) OVERRIDE_CPP17 |
| check the data contents | |
| unsigned int | GetExpRunSubrun (int n) OVERRIDE_CPP17 |
| Exp# (10bit) run# (14bit) restart # (8bit) | |
| int | GetRunNo (int n) OVERRIDE_CPP17 |
| Get run #. | |
| int | GetSubRunNo (int n) OVERRIDE_CPP17 |
| Get subrun #. | |
| int | GetRunNoSubRunNo (int n) OVERRIDE_CPP17 |
| get a word cotaining run # and subrun # | |
| int | GetExpNo (int n) OVERRIDE_CPP17 |
| Get Exp #. | |
| int | GetIsHER (int n) OVERRIDE_CPP17 |
| HER injection = 1 or LER injection = 0. | |
| unsigned int | GetTimeSinceLastInjection (int n) OVERRIDE_CPP17 |
| Get time since the last injection. | |
| unsigned int | GetTimeSincePrevTrigger (int n) OVERRIDE_CPP17 |
| Get time since the previous trigger. | |
| unsigned int | GetBunchNumber (int n) OVERRIDE_CPP17 |
| Get a bunch number. | |
| unsigned int | GetFrameCount (int n) OVERRIDE_CPP17 |
| Get a frame count. | |
| virtual int | Get15bitTLUTag (int n) |
| DESY test only (ver.1) | |
| virtual void | SetBuffer (int *bufin, int nwords, int delete_flag, int num_events, int num_nodes) |
| set buffer ( delete_flag : m_buffer is freeed( = 0 )/ not freeed( = 1 ) in Destructer ) | |
| virtual int | TotalBufNwords () |
| Get total length of m_buffer. | |
| virtual int | GetBufferPos (int n) |
| get position of data block in word | |
| virtual int * | GetBuffer (int n) |
| get nth buffer pointer | |
| virtual int * | GetWholeBuffer () |
| get pointer to buffer(m_buffer) | |
| virtual int | GetNumEntries () |
| get # of data blocks = (# of nodes)*(# of events) | |
| virtual int | GetNumNodes () |
| get # of data sources(e.g. # of COPPER boards) in m_buffer | |
| virtual int | GetNumEvents () |
| get # of events in m_buffer | |
| virtual int | GetPreAllocFlag () |
| get malloc_flag | |
| virtual int | GetBlockNwords (int n) |
| get size of a data block | |
| virtual int | CheckFTSWID (int n) |
| get FTSW ID to check whether this data block is FTSW data or not | |
| virtual int | CheckTLUID (int n) |
| get FTSW ID to check whether this data block is FTSW data or not | |
| virtual void | CopyBlock (int n, int *buf_to) |
| Copy one datablock to buffer. | |
| virtual void | PrintData (int *buf, int nwords) |
| print data | |
Protected Attributes | |
| int | m_nwords |
| number of words of buffer | |
| int | m_num_nodes |
| number of nodes in this object | |
| int | m_num_events |
| number of events in this object | |
| int * | m_buffer |
| Buffer. | |
| int | m_use_prealloc_buf |
| not recorded More... | |
The Raw FTSW class 3 ( 2019.8.20 )
This class stores the RAW data containing FTSW data(event #, trg time ).
Definition at line 24 of file RawFTSWFormat_latest.h.
|
virtual |
Constructor using existing pointer to raw data buffer.
Destructor
Definition at line 19 of file RawFTSWFormat_latest.cc.
|
protectedinherited |
not recorded
flag for deleting m_buffer in destructer( 0:delete, 1: not delete) When using pre-allocated buffer, the buffer should be reused and not deleted in the destructer
Definition at line 102 of file RawDataBlockFormat.h.