Belle II Software development
rawdata data objects

Classes

class  PostRawCOPPERFormat_latest
 The Raw COPPER class ver. More...
 
class  PostRawCOPPERFormat_v1
 The Raw COPPER class ver.1 ( the latest version since May, 2014 ) This class stores data received by COPPER via belle2linkt Data from all detectors except PXD are stored in this class. More...
 
class  PostRawCOPPERFormat_v2
 The Raw COPPER class ver.2 This class stores data received by COPPER via belle2link Data from all detectors except PXD are stored in this class. More...
 
class  PreRawCOPPERFormat_latest
 The Raw COPPER class ver.1 ( the latest version since May, 2014 ) This class stores data received by COPPER via belle2linkt Data from all detectors except PXD are stored in this class. More...
 
class  PreRawCOPPERFormat_v1
 The Raw COPPER class ver.1 ( the latest version since May, 2014 ) This class stores data received by COPPER via belle2linkt Data from all detectors except PXD are stored in this class. More...
 
class  PreRawCOPPERFormat_v2
 The Raw COPPER class ver.1 ( the latest version since May, 2014 ) This class stores data received by COPPER via belle2linkt Data from all detectors except PXD are stored in this class. More...
 
class  RawARICH
 The Raw ARICH class Class for RawCOPPER class data taken by ARICH Currently, this class is almost same as RawCOPPER class. More...
 
class  RawCDC
 The Raw CDC class Class for RawCOPPER class data taken by CDC Currently, this class is almost same as RawCOPPER class. More...
 
class  RawCOPPER
 The Raw COPPER class This class stores data received by COPPER via belle2linkt Data from all detectors except PXD are stored in this class. More...
 
class  RawCOPPERFormat
 The Raw COPPER class This class stores data received by COPPER via belle2linkt Data from all detectors except PXD are stored in this class. More...
 
class  RawCOPPERFormat_latest
 The Raw COPPER class ver.1 ( the latest version since May, 2014 ) This class stores data received by COPPER via belle2linkt Data from all detectors except PXD are stored in this class. More...
 
class  RawCOPPERFormat_v0
 The Raw COPPER class ver.0 ( from August, 2013 to April, 2014 ) This class stores data received by COPPER via belle2linkt Data from all detectors except PXD are stored in this class. More...
 
class  RawCOPPERFormat_v1
 The Raw COPPER class ver.1 ( the latest version since May, 2014 ) This class stores data received by COPPER via belle2linkt Data from all detectors except PXD are stored in this class. More...
 
class  RawCOPPERFormat_v2
 The Raw COPPER class ver.1 ( the latest version since May, 2014 ) This class stores data received by COPPER via belle2linkt Data from all detectors except PXD are stored in this class. More...
 
class  RawDataBlock
 The RawDataBlock class Base class for rawdata handling. More...
 
class  RawDataBlockFormat
 The RawDataBlockFormat class Format information for rawdata handling. More...
 
class  RawECL
 The Raw ECL class Class for RawCOPPER class data taken by ECL Currently, this class is almost same as RawCOPPER class. More...
 
class  RawFTSW
 The Raw FTSW class. More...
 
class  RawFTSWFormat
 The Raw FTSW class. More...
 
class  RawFTSWFormat_latest
 The Raw FTSW class 3 ( 2019.8.20 ) More...
 
class  RawFTSWFormat_v1
 The Raw FTSW class ver.1 . More...
 
class  RawFTSWFormat_v2
 The Raw FTSW class ver.2 . More...
 
class  RawHeader_latest
 The Raw Header class ver.1 ( the latest version since May, 2014 ) This class defines the format of the header of RawCOPPER class data and used for extracting header info from RawCOPPER object. More...
 
class  RawHeader_v0
 The Raw Header class ver.0 ( from August, 2013 to April, 2014 ) This class defines the format of the header of RawCOPPER class data and used for extracting header info from RawCOPPER object. More...
 
class  RawHeader_v1
 The Raw Header class ver.1 ( the latest version since May, 2014 ) This class defines the format of the header of RawCOPPER class data and used for extracting header info from RawCOPPER object. More...
 
class  RawHeader_v2
 The Raw Header class ver.1 ( the latest version since May, 2014 ) This class defines the format of the header of RawCOPPER class data and used for extracting header info from RawCOPPER object. More...
 
class  RawKLM
 The Raw KLM class Class for RawCOPPER class data taken by KLM. More...
 
class  RawPXD
 The Raw PXD class. More...
 
class  RawSVD
 The Raw SVD class Class for RawCOPPER class data taken by SVD Currently, this class is almost same as RawCOPPER class. More...
 
class  RawTLU
 The Raw TLU class Class for data from DAQ PC for TLU(Trigger Logic Unit) It is supposed to be used only in the DESY beam test. More...
 
class  RawTLUFormat
 The Raw TLU class Class for data from DAQ PC for TLU(Trigger Logic Unit) It is supposed to be used only in the DESY beam test. More...
 
class  RawTOP
 The Raw TOP class Class for RawCOPPER class data taken by TOP Currently, this class is almost same as RawCOPPER class. More...
 
class  RawTrailer_latest
 The Raw Trailer class ver.1 ( the latest version since May, 2014 ) This class defines the format of the trailer of RawCOPPER class data and used for extracting trailer info from RawCOPPER object. More...
 
class  RawTrailer_v0
 The Raw Trailer class ver.0 ( from August, 2013 to April, 2014 ) This class defines the format of the trailer of RawCOPPER class data and used for extracting trailer info from RawCOPPER object. More...
 
class  RawTrailer_v1
 The Raw Trailer class ver.1 ( the latest version since May, 2014 ) This class defines the format of the trailer of RawCOPPER class data and used for extracting trailer info from RawCOPPER object. More...
 
class  RawTrailer_v2
 The Raw Trailer class ver.1 ( the latest version since May, 2014 ) This class defines the format of the trailer of RawCOPPER class data and used for extracting trailer info from RawCOPPER object. More...
 
class  RawTRG
 The Raw TOP class Class for RawCOPPER class data taken by TOP Currently, this class is almost same as RawCOPPER class. More...
 

Functions

virtual int * GetExpRunSubrunBuf (int n) OVERRIDE_CPP17
 get b2l block from "FEE b2link header"
 
unsigned int GetDriverChkSum (int n) OVERRIDE_CPP17
 read COPPER driver's checksum value
 
unsigned int GetCOPPERCounter (int n) OVERRIDE_CPP17
 get posistion of COPPER block in unit of word
 
unsigned int GetMagicDriverHeader (int n) OVERRIDE_CPP17
 get magic word of COPPER driver header
 
unsigned int GetMagicFPGAHeader (int n) OVERRIDE_CPP17
 get magic word of COPPER FPGA header
 
unsigned int GetMagicFPGATrailer (int n) OVERRIDE_CPP17
 get magic word of COPPER FPGA trailer
 
unsigned int GetMagicDriverTrailer (int n) OVERRIDE_CPP17
 get magic word of COPPER driver trailer
 
unsigned int GetTrailerChksum (int n) OVERRIDE_CPP17
 Get checksum in RawTrailer.
 
int GetEventCRC16Value (int n, int finesse_num) OVERRIDE_CPP17
 Get CRC16 value for an event.
 
int * GetDetectorBuffer (int n, int finesse_num) OVERRIDE_CPP17
 Get a pointer to detector buffer.
 
int GetDetectorNwords (int n, int finesse_num) OVERRIDE_CPP17
 get Detector buffer length
 
bool CheckOnlineRemovedDataBit (int n, int finesse_num) OVERRIDE_CPP17
 check if this channel's data has been removed on a readout PC for CDC online "masking" True : data contents was removed on a readout PC
 
int GetOffset1stFINESSE (int n) OVERRIDE_CPP17
 get # of offset words for FINESSE slot A buffer position
 
int * Get1stDetectorBuffer (int n) OVERRIDE_CPP17
 get Detector buffer of slot A
 
int * Get2ndDetectorBuffer (int n) OVERRIDE_CPP17
 get Detector Buffer of slot B
 
int * Get3rdDetectorBuffer (int n) OVERRIDE_CPP17
 get Detector Buffer of slot C
 
int * Get4thDetectorBuffer (int n) OVERRIDE_CPP17
 get Detector Buffer of slot D
 
virtual int * GetExpRunSubrunBuf (int n) OVERRIDE_CPP17
 get b2l block from "FEE b2link header"
 
unsigned int GetDriverChkSum (int n) OVERRIDE_CPP17
 read COPPER driver's checksum value
 
unsigned int GetCOPPERCounter (int n) OVERRIDE_CPP17
 get posistion of COPPER block in unit of word
 
unsigned int GetMagicDriverHeader (int n) OVERRIDE_CPP17
 get magic word of COPPER driver header
 
unsigned int GetMagicFPGAHeader (int n) OVERRIDE_CPP17
 get magic word of COPPER FPGA header
 
unsigned int GetMagicFPGATrailer (int n) OVERRIDE_CPP17
 get magic word of COPPER FPGA trailer
 
unsigned int GetMagicDriverTrailer (int n) OVERRIDE_CPP17
 get magic word of COPPER driver trailer
 
unsigned int GetTrailerChksum (int n) OVERRIDE_CPP17
 Get checksum in RawTrailer.
 
int GetOffset1stFINESSE (int n) OVERRIDE_CPP17
 get # of offset words for FINESSE slot A buffer position
 
int * Get1stDetectorBuffer (int n) OVERRIDE_CPP17
 get Detector buffer of slot A
 
int * Get2ndDetectorBuffer (int n) OVERRIDE_CPP17
 get Detector Buffer of slot B
 
int * Get3rdDetectorBuffer (int n) OVERRIDE_CPP17
 get Detector Buffer of slot C
 
int * Get4thDetectorBuffer (int n) OVERRIDE_CPP17
 get Detector Buffer of slot D
 
virtual int * GetExpRunSubrunBuf (int n) OVERRIDE_CPP17
 get b2l block from "FEE b2link header"
 
unsigned int GetDriverChkSum (int n) OVERRIDE_CPP17
 read COPPER driver's checksum value
 
unsigned int GetCOPPERCounter (int n) OVERRIDE_CPP17
 get posistion of COPPER block in unit of word
 
unsigned int GetMagicDriverHeader (int n) OVERRIDE_CPP17
 get magic word of COPPER driver header
 
unsigned int GetMagicFPGAHeader (int n) OVERRIDE_CPP17
 get magic word of COPPER FPGA header
 
unsigned int GetMagicFPGATrailer (int n) OVERRIDE_CPP17
 get magic word of COPPER FPGA trailer
 
unsigned int GetMagicDriverTrailer (int n) OVERRIDE_CPP17
 get magic word of COPPER driver trailer
 
unsigned int GetTrailerChksum (int n) OVERRIDE_CPP17
 Get checksum in RawTrailer.
 
int GetEventCRC16Value (int n, int finesse_num) OVERRIDE_CPP17
 Get CRC16 value for an event.
 
virtual int * GetExpRunSubrunBuf (int n) OVERRIDE_CPP17
 get b2l block from "FEE b2link header"
 
unsigned int GetMagicDriverHeader (int n) OVERRIDE_CPP17
 get magic word of COPPER driver header
 
unsigned int GetMagicFPGAHeader (int n) OVERRIDE_CPP17
 get magic word of COPPER FPGA header
 
unsigned int GetMagicFPGATrailer (int n) OVERRIDE_CPP17
 get magic word of COPPER FPGA trailer
 
unsigned int GetMagicDriverTrailer (int n) OVERRIDE_CPP17
 get magic word of COPPER driver trailer
 
unsigned int GetDriverChkSum (int n) OVERRIDE_CPP17
 read COPPER driver's checksum value
 
unsigned int GetCOPPERCounter (int n) OVERRIDE_CPP17
 get posistion of COPPER block in unit of word
 
unsigned int GetTrailerChksum (int n) OVERRIDE_CPP17
 get a checksum on trailer
 
int * GetDetectorBuffer (int n, int finesse_num) OVERRIDE_CPP17
 Get a pointer to detector buffer.
 
int GetDetectorNwords (int n, int finesse_num) OVERRIDE_CPP17
 get Detector buffer length
 
bool CheckOnlineRemovedDataBit (int n, int finesse_num) OVERRIDE_CPP17
 check if this channel's data has been removed on a readout PC for CDC online "masking" True : data contents was removed on a readout PC
 
int GetOffset1stFINESSE (int n) OVERRIDE_CPP17
 get # of offset words for FINESSE slot A buffer position
 
int * Get1stDetectorBuffer (int n) OVERRIDE_CPP17
 get Detector buffer of slot A
 
int * Get2ndDetectorBuffer (int n) OVERRIDE_CPP17
 get Detector Buffer of slot B
 
int * Get3rdDetectorBuffer (int n) OVERRIDE_CPP17
 get Detector Buffer of slot C
 
int * Get4thDetectorBuffer (int n) OVERRIDE_CPP17
 get Detector Buffer of slot D
 
virtual int * GetExpRunSubrunBuf (int n) OVERRIDE_CPP17
 get b2l block from "FEE b2link header"
 
unsigned int GetMagicDriverHeader (int n) OVERRIDE_CPP17
 get magic word of COPPER driver header
 
unsigned int GetMagicFPGAHeader (int n) OVERRIDE_CPP17
 get magic word of COPPER FPGA header
 
unsigned int GetMagicFPGATrailer (int n) OVERRIDE_CPP17
 get magic word of COPPER FPGA trailer
 
unsigned int GetMagicDriverTrailer (int n) OVERRIDE_CPP17
 get magic word of COPPER driver trailer
 
unsigned int GetDriverChkSum (int n) OVERRIDE_CPP17
 read COPPER driver's checksum value
 
unsigned int GetCOPPERCounter (int n) OVERRIDE_CPP17
 get posistion of COPPER block in unit of word
 
unsigned int GetTrailerChksum (int n) OVERRIDE_CPP17
 get a checksum on trailer
 
int GetOffset1stFINESSE (int n) OVERRIDE_CPP17
 get # of offset words for FINESSE slot A buffer position
 
int * Get1stDetectorBuffer (int n) OVERRIDE_CPP17
 get Detector buffer of slot A
 
int * Get2ndDetectorBuffer (int n) OVERRIDE_CPP17
 get Detector Buffer of slot B
 
int * Get3rdDetectorBuffer (int n) OVERRIDE_CPP17
 get Detector Buffer of slot C
 
int * Get4thDetectorBuffer (int n) OVERRIDE_CPP17
 get Detector Buffer of slot D
 
virtual int * GetExpRunSubrunBuf (int n) OVERRIDE_CPP17
 get b2l block from "FEE b2link header"
 
unsigned int GetMagicDriverHeader (int n) OVERRIDE_CPP17
 get magic word of COPPER driver header
 
unsigned int GetMagicFPGAHeader (int n) OVERRIDE_CPP17
 get magic word of COPPER FPGA header
 
unsigned int GetMagicFPGATrailer (int n) OVERRIDE_CPP17
 get magic word of COPPER FPGA trailer
 
unsigned int GetMagicDriverTrailer (int n) OVERRIDE_CPP17
 get magic word of COPPER driver trailer
 
unsigned int GetDriverChkSum (int n) OVERRIDE_CPP17
 read COPPER driver's checksum value
 
unsigned int GetCOPPERCounter (int n) OVERRIDE_CPP17
 get posistion of COPPER block in unit of word
 
unsigned int GetTrailerChksum (int n) OVERRIDE_CPP17
 get a checksum on trailer
 
virtual int * GetRawHdrBufPtr (int n)
 get buffer pointer of rawcopper header(Currently same as GetBufferPos)
 
virtual int * GetRawTrlBufPtr (int n)
 get buffer pointer of rawcopper trailer
 
unsigned int GetDriverChkSum (int n)
 read COPPER driver's checksum value
 
int GetExpNo (int n)
 get Experimental # from header
 
unsigned int GetExpRunSubrun (int n)
 get Experimental # from header
 
int GetRunNo (int n)
 Exp# (10bit) run# (14bit) restart # (8bit)
 
int GetSubRunNo (int n)
 get run # (14bit)
 
unsigned int GetEveNo (int n)
 get subrun #(8bit)
 
unsigned int GetNodeID (int n)
 get node-ID from data
 
int GetDataType (int n)
 get contents of header
 
int GetTruncMask (int n)
 get contents of header
 
unsigned int GetErrorBitFlag (int n)
 get contents of header
 
void AddErrorBitFlag (int n, unsigned int error_bit_flag)
 Get Detected Error bitflag.
 
int GetPacketCRCError (int n)
 check CRC packet Error
 
int GetEventCRCError (int n)
 check CRC event Error
 
int GetEventCRC16Value (int n, int finesse_num)
 Get Event CRC16 value.
 
virtual unsigned int GetCOPPERCounter (int n)
 get COPPER counter(not event number)
 
int Get1stDetectorNwords (int n)
 get Detector buffer length of slot A
 
int Get2ndDetectorNwords (int n)
 get Detector buffer length of slot B
 
int Get3rdDetectorNwords (int n)
 get Detector buffer length of slot C
 
int Get4thDetectorNwords (int n)
 get Detector buffer length of slot D
 
int Get1stFINESSENwords (int n)
 get data size of FINESSE slot A buffer
 
int Get2ndFINESSENwords (int n)
 get data size of FINESSE slot B buffer
 
int Get3rdFINESSENwords (int n)
 get data size of FINESSE slot C buffer
 
int Get4thFINESSENwords (int n)
 get data size of FINESSE slot D buffer
 
int GetOffset1stFINESSE (int n)
 get # of offset words for FINESSE slot A buffer position
 
int GetOffset2ndFINESSE (int n)
 get # of offset words for FINESSE slot B buffer position
 
int GetOffset3rdFINESSE (int n)
 get # of offset words for FINESSE slot C buffer position
 
int GetOffset4thFINESSE (int n)
 get # of offset words for FINESSE slot D buffer position
 
int * Get1stFINESSEBuffer (int n)
 get FINESSE buffer pointer for slot A
 
int * Get2ndFINESSEBuffer (int n)
 get FINESSE buffer pointer for slot B
 
int * Get3rdFINESSEBuffer (int n)
 get FINESSE buffer pointer for slot C
 
int * Get4thFINESSEBuffer (int n)
 get FINESSE buffer pointer for slot D
 
int * Get1stDetectorBuffer (int n)
 get Detector buffer of slot A
 
int * Get2ndDetectorBuffer (int n)
 get Detector Buffer of slot B
 
int * Get3rdDetectorBuffer (int n)
 get Detector Buffer of slot C
 
int * Get4thDetectorBuffer (int n)
 get Detector Buffer of slot D
 
virtual int * GetExpRunSubrunBuf (int n)
 get b2l block from "FEE b2link header"
 
unsigned int GetMagicDriverHeader (int n)
 get magic word of COPPER driver header
 
unsigned int GetMagicFPGAHeader (int n)
 get magic word of COPPER FPGA header
 
unsigned int GetMagicFPGATrailer (int n)
 get magic word of COPPER FPGA trailer
 
unsigned int GetMagicDriverTrailer (int n)
 get magic word of COPPER driver trailer
 
unsigned int GetTrailerChksum (int n)
 Get checksum in RawTrailer.
 
unsigned int GetTTCtimeTRGType (int n)
 Check if COPPER Magic words are correct.
 
unsigned int GetTTUtime (int n)
 Check if COPPER Magic words are correct.
 
int GetTTCtime (int n)
 Get ctime.
 
int GetTRGType (int n)
 Get trgtype.
 
void GetTTTimeVal (int n, struct timeval *tv)
 Get timeval.
 
virtual int GetBufferPos (int n) OVERRIDE_CPP17
 get posistion of COPPER block in unit of word
 
unsigned int CalcDriverChkSum (int n)
 calc COPPER driver's checksum value
 
virtual int GetNumFINESSEBlock (int n)
 get # of FINNESEs which contains data
 
int GetDetectorNwords (int n, int finesse_num)
 get Detector buffer length
 
int GetFINESSENwords (int n, int finesse)
 get data size of FINESSE buffer
 
int GetOffsetFINESSE (int n, int finesse)
 get # of offset words
 
int * GetFINESSEBuffer (int n, int finesse_num)
 get FINESSE buffer pointer
 
int * GetDetectorBuffer (int n, int finesse_num)
 get Detector buffer
 
virtual unsigned int GetB2LFEE32bitEventNumber (int n)
 get b2l block from "FEE b2link header"
 
unsigned int CalcXORChecksum (int *buf, int nwords)
 calc XOR checksum
 
void CheckData (int n, unsigned int prev_evenum, unsigned int *cur_evenum, unsigned int prev_copper_ctr, unsigned int *cur_copper_ctr, unsigned int prev_exprunsubrun_no, unsigned int *cur_exprunsubrun_no)
 check data contents
 
bool CheckCOPPERMagic (int n)
 Check if COPPER Magic words are correct.
 
void CheckUtimeCtimeTRGType (int n)
 check data contents
 
unsigned int FillTopBlockRawHeader (unsigned int m_node_id, unsigned int prev_eve32, unsigned int prev_exprunsubrun_no, unsigned int *cur_exprunsubrun_no)
 should be called by DeSerializerCOPPER.cc and fill contents in RawHeader
 
void CheckVersionSetBuffer ()
 Check the version number of data format.
 
int GetMaxNumOfCh (int n)
 Get the max number of channels in a readout board.
 
bool CheckOnlineRemovedDataBit (int n, int finesse_num)
 check if this channel's data has been removed on a readout PC for CDC online "masking"
 
virtual int * GetRawHdrBufPtr (int n)
 get buffer pointer of rawcopper header(Currently same as GetBufferPos)
 
virtual int GetOffset2ndFINESSE (int n)
 get # of offset words for FINESSE slot B buffer position
 
virtual int GetOffset3rdFINESSE (int n)
 get # of offset words for FINESSE slot C buffer position
 
virtual int GetOffset4thFINESSE (int n)
 get # of offset words for FINESSE slot D buffer position
 
virtual int * Get1stFINESSEBuffer (int n)
 get FINESSE buffer pointer for slot A
 
virtual int * Get2ndFINESSEBuffer (int n)
 get FINESSE buffer pointer for slot B
 
virtual int * Get3rdFINESSEBuffer (int n)
 get FINESSE buffer pointer for slot C
 
virtual int * Get4thFINESSEBuffer (int n)
 get FINESSE buffer pointer for slot D
 
int * GetRawTrlBufPtr (int n) OVERRIDE_CPP17
 get buffer pointer of rawcopper trailer
 
int GetExpNo (int n) OVERRIDE_CPP17
 get Experimental # from header
 
unsigned int GetExpRunSubrun (int n) OVERRIDE_CPP17
 get Experimental # from header
 
int GetRunNo (int n) OVERRIDE_CPP17
 Exp# (10bit) run# (14bit) restart # (8bit)
 
int GetSubRunNo (int n) OVERRIDE_CPP17
 get run # (14bit)
 
unsigned int GetEveNo (int n) OVERRIDE_CPP17
 get subrun #(8bit)
 
unsigned int GetNodeID (int n) OVERRIDE_CPP17
 get node-ID from data
 
int GetDataType (int n) OVERRIDE_CPP17
 get contents of header
 
int GetTruncMask (int n) OVERRIDE_CPP17
 get contents of header
 
unsigned int GetErrorBitFlag (int n) OVERRIDE_CPP17
 get contents of header
 
void AddErrorBitFlag (int n, unsigned int error_bit_flag) OVERRIDE_CPP17
 Add Detected Error bitflag.
 
int GetPacketCRCError (int n) OVERRIDE_CPP17
 check CRC packet Error
 
int GetEventCRCError (int n) OVERRIDE_CPP17
 check CRC event Error
 
unsigned int GetTTCtimeTRGType (int n) OVERRIDE_CPP17
 get b2l block from "FEE b2link header"
 
unsigned int GetTTUtime (int n) OVERRIDE_CPP17
 Check if COPPER Magic words are correct.
 
int GetTTCtime (int n) OVERRIDE_CPP17
 Get ctime.
 
int GetTRGType (int n) OVERRIDE_CPP17
 Get trgtype.
 
void GetTTTimeVal (int n, struct timeval *tv) OVERRIDE_CPP17
 Get timeval.
 
int GetMaxNumOfCh (int n) OVERRIDE_CPP17
 Get the max number of channels in a readout board.
 
int GetFINESSENwords (int n, int finesse_num) OVERRIDE_CPP17
 Get the size of a finesse buffer.
 
int * GetFINESSEBuffer (int n, int finesse_num) OVERRIDE_CPP17
 Get a pointer to a FINESSE buffer.
 
virtual int * GetRawTrlBufPtr (int n) OVERRIDE_CPP17
 get buffer pointer of rawcopper trailer
 
unsigned int GetDriverChkSum (int n) OVERRIDE_CPP17
 read COPPER driver's checksum value
 
int GetExpNo (int n) OVERRIDE_CPP17
 get Experimental # from header
 
unsigned int GetExpRunSubrun (int n) OVERRIDE_CPP17
 get Experimental # from header
 
int GetRunNo (int n) OVERRIDE_CPP17
 Exp# (10bit) run# (14bit) restart # (8bit)
 
int GetSubRunNo (int n) OVERRIDE_CPP17
 get run # (14bit)
 
unsigned int GetEveNo (int n) OVERRIDE_CPP17
 get subrun #(8bit)
 
unsigned int GetNodeID (int n) OVERRIDE_CPP17
 get node-ID from data
 
int GetDataType (int n) OVERRIDE_CPP17
 get contents of header
 
int GetTruncMask (int n) OVERRIDE_CPP17
 get contents of header
 
unsigned int GetErrorBitFlag (int n) OVERRIDE_CPP17
 get contents of header
 
void AddErrorBitFlag (int n, unsigned int error_bit_flag) OVERRIDE_CPP17
 Add Detected Error bitflag.
 
virtual unsigned int GetCOPPERCounter (int n) OVERRIDE_CPP17
 get COPPER counter(not event number)
 
int Get1stDetectorNwords (int n) OVERRIDE_CPP17
 get Detector buffer length of slot A
 
int Get2ndDetectorNwords (int n) OVERRIDE_CPP17
 get Detector buffer length of slot B
 
int Get3rdDetectorNwords (int n) OVERRIDE_CPP17
 get Detector buffer length of slot C
 
int Get4thDetectorNwords (int n) OVERRIDE_CPP17
 get Detector buffer length of slot D
 
int Get1stFINESSENwords (int n) OVERRIDE_CPP17
 get data size of FINESSE slot A buffer
 
int Get2ndFINESSENwords (int n) OVERRIDE_CPP17
 get data size of FINESSE slot B buffer
 
int Get3rdFINESSENwords (int n) OVERRIDE_CPP17
 get data size of FINESSE slot C buffer
 
int Get4thFINESSENwords (int n) OVERRIDE_CPP17
 get data size of FINESSE slot D buffer
 
int GetOffset1stFINESSE (int n) OVERRIDE_CPP17
 get # of offset words for FINESSE slot A buffer position
 
int * Get1stDetectorBuffer (int n) OVERRIDE_CPP17
 get Detector buffer of slot A
 
int * Get2ndDetectorBuffer (int n) OVERRIDE_CPP17
 get Detector Buffer of slot B
 
int * Get3rdDetectorBuffer (int n) OVERRIDE_CPP17
 get Detector Buffer of slot C
 
int * Get4thDetectorBuffer (int n) OVERRIDE_CPP17
 get Detector Buffer of slot D
 
virtual int * GetExpRunSubrunBuf (int n) OVERRIDE_CPP17
 get b2l block from "FEE b2link header"
 
unsigned int GetMagicDriverHeader (int n) OVERRIDE_CPP17
 get magic word of COPPER driver header
 
unsigned int GetMagicFPGAHeader (int n) OVERRIDE_CPP17
 get magic word of COPPER FPGA header
 
unsigned int GetMagicFPGATrailer (int n) OVERRIDE_CPP17
 get magic word of COPPER FPGA trailer
 
unsigned int GetMagicDriverTrailer (int n) OVERRIDE_CPP17
 get magic word of COPPER driver trailer
 
unsigned int GetTrailerChksum (int n) OVERRIDE_CPP17
 Get checksum in RawTrailer.
 
unsigned int GetTTCtimeTRGType (int n) OVERRIDE_CPP17
 Check if COPPER Magic words are correct.
 
unsigned int GetTTUtime (int n) OVERRIDE_CPP17
 Check if COPPER Magic words are correct.
 
int GetTTCtime (int n) OVERRIDE_CPP17
 Get ctime.
 
int GetTRGType (int n) OVERRIDE_CPP17
 Get trgtype.
 
void GetTTTimeVal (int n, struct timeval *tv) OVERRIDE_CPP17
 Get timeval.
 
int GetMaxNumOfCh (int n) OVERRIDE_CPP17
 Get the max number of channels in a readout board.
 
int * GetRawTrlBufPtr (int n) OVERRIDE_CPP17
 get buffer pointer of rawcopper trailer
 
int GetExpNo (int n) OVERRIDE_CPP17
 get Experimental # from header
 
unsigned int GetExpRunSubrun (int n) OVERRIDE_CPP17
 get Experimental # from header
 
int GetRunNo (int n) OVERRIDE_CPP17
 Exp# (10bit) run# (14bit) restart # (8bit)
 
int GetSubRunNo (int n) OVERRIDE_CPP17
 get run # (14bit)
 
unsigned int GetEveNo (int n) OVERRIDE_CPP17
 get subrun #(8bit)
 
unsigned int GetNodeID (int n) OVERRIDE_CPP17
 get node-ID from data
 
int GetDataType (int n) OVERRIDE_CPP17
 get contents of header
 
int GetTruncMask (int n) OVERRIDE_CPP17
 get contents of header
 
unsigned int GetErrorBitFlag (int n) OVERRIDE_CPP17
 get contents of header
 
void AddErrorBitFlag (int n, unsigned int error_bit_flag) OVERRIDE_CPP17
 Add Detected Error bitflag.
 
int Get1stDetectorNwords (int n) OVERRIDE_CPP17
 get Detector buffer length of slot A
 
int Get2ndDetectorNwords (int n) OVERRIDE_CPP17
 get Detector buffer length of slot B
 
int Get3rdDetectorNwords (int n) OVERRIDE_CPP17
 get Detector buffer length of slot C
 
int Get4thDetectorNwords (int n) OVERRIDE_CPP17
 get Detector buffer length of slot D
 
int Get1stFINESSENwords (int n) OVERRIDE_CPP17
 get data size of FINESSE slot A buffer
 
int Get2ndFINESSENwords (int n) OVERRIDE_CPP17
 get data size of FINESSE slot B buffer
 
int Get3rdFINESSENwords (int n) OVERRIDE_CPP17
 get data size of FINESSE slot C buffer
 
int Get4thFINESSENwords (int n) OVERRIDE_CPP17
 get data size of FINESSE slot D buffer
 
unsigned int GetTTCtimeTRGType (int n) OVERRIDE_CPP17
 get b2l block from "FEE b2link header"
 
unsigned int GetTTUtime (int n) OVERRIDE_CPP17
 Check if COPPER Magic words are correct.
 
int GetTTCtime (int n) OVERRIDE_CPP17
 Get ctime.
 
int GetTRGType (int n) OVERRIDE_CPP17
 Get trgtype.
 
void GetTTTimeVal (int n, struct timeval *tv) OVERRIDE_CPP17
 Get timeval.
 
int GetMaxNumOfCh (int n) OVERRIDE_CPP17
 Get the max number of channels in a readout board.
 
int * GetRawTrlBufPtr (int n) OVERRIDE_CPP17
 get buffer pointer of rawcopper trailer
 
int GetExpNo (int n) OVERRIDE_CPP17
 get Experimental # from header
 
unsigned int GetExpRunSubrun (int n) OVERRIDE_CPP17
 get Experimental # from header
 
int GetRunNo (int n) OVERRIDE_CPP17
 Exp# (10bit) run# (14bit) restart # (8bit)
 
int GetSubRunNo (int n) OVERRIDE_CPP17
 get run # (14bit)
 
unsigned int GetEveNo (int n) OVERRIDE_CPP17
 get subrun #(8bit)
 
unsigned int GetNodeID (int n) OVERRIDE_CPP17
 get node-ID from data
 
int GetDataType (int n) OVERRIDE_CPP17
 get contents of header
 
int GetTruncMask (int n) OVERRIDE_CPP17
 get contents of header
 
unsigned int GetErrorBitFlag (int n) OVERRIDE_CPP17
 get contents of header
 
void AddErrorBitFlag (int n, unsigned int error_bit_flag) OVERRIDE_CPP17
 Add Detected Error bitflag.
 
int GetPacketCRCError (int n) OVERRIDE_CPP17
 check CRC packet Error
 
int GetEventCRCError (int n) OVERRIDE_CPP17
 check CRC event Error
 
int Get1stDetectorNwords (int n) OVERRIDE_CPP17
 get Detector buffer length of slot A
 
int Get2ndDetectorNwords (int n) OVERRIDE_CPP17
 get Detector buffer length of slot B
 
int Get3rdDetectorNwords (int n) OVERRIDE_CPP17
 get Detector buffer length of slot C
 
int Get4thDetectorNwords (int n) OVERRIDE_CPP17
 get Detector buffer length of slot D
 
int Get1stFINESSENwords (int n) OVERRIDE_CPP17
 get data size of FINESSE slot A buffer
 
int Get2ndFINESSENwords (int n) OVERRIDE_CPP17
 get data size of FINESSE slot B buffer
 
int Get3rdFINESSENwords (int n) OVERRIDE_CPP17
 get data size of FINESSE slot C buffer
 
int Get4thFINESSENwords (int n) OVERRIDE_CPP17
 get data size of FINESSE slot D buffer
 
unsigned int GetTTCtimeTRGType (int n) OVERRIDE_CPP17
 get b2l block from "FEE b2link header"
 
unsigned int GetTTUtime (int n) OVERRIDE_CPP17
 Check if COPPER Magic words are correct.
 
int GetTTCtime (int n) OVERRIDE_CPP17
 Get ctime.
 
int GetTRGType (int n) OVERRIDE_CPP17
 Get trgtype.
 
void GetTTTimeVal (int n, struct timeval *tv) OVERRIDE_CPP17
 Get timeval.
 
int GetMaxNumOfCh (int n) OVERRIDE_CPP17
 Get the max number of channels in a readout board.
 
void CheckVersionSetBuffer ()
 Check the version number of data format.
 
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 #.
 
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 #.
 
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 #.
 
void CheckSetBuffer ()
 initialize header
 
void CheckGetBuffer ()
 check if m_buffer exists
 
void SetNwords (int nwords)
 set contents of header
 
void SetEveNo (unsigned int eve_no)
 set contents of header
 
void SetNodeID (unsigned int node_id)
 set contents of header
 
void SetDataType (int data_type)
 set contents of header
 
void SetTruncMask (int trunc_mask)
 set contents of header
 
void SetFTSW2Words (unsigned int word1, unsigned int word2)
 Set values of FTSW info( trigger timing)
 
void SetExpRunNumber (int *exprun_buf)
 Set a word consists of exp #, run # and subrun #.
 
int GetNwords ()
 set contents of header
 
int GetHdrNwords ()
 get contents of header
 
int GetExpNo ()
 get a run/exp number combined word
 
int GetRunNo ()
 get contents of header
 
int GetSubRunNo ()
 get run # (14bit)
 
unsigned int GetExpRunSubrun ()
 get contents of header
 
unsigned int GetEveNo ()
 get restart #(8bit)
 
unsigned int GetNodeID ()
 get contents of header
 
int GetDataType ()
 get contents of header
 
int GetTruncMask ()
 get contents of header
 
unsigned int GetErrorBitFlag ()
 get contents of header
 
void AddErrorBitFlag (unsigned int error_bit_flag)
 Add Detected Error bitflag.
 
int GetPacketCRCError ()
 Get Packet CRC error flag.
 
int GetEventCRCError ()
 Get Detected Error bitflag.
 
unsigned int GetTTCtimeTRGType ()
 get contents of header
 
int GetTTCtime ()
 get contents of header
 
int GetTRGType ()
 get TRGType
 
unsigned int GetTTUtime ()
 get contents of header
 
void GetTTTimeVal (struct timeval *tv)
 get contents of header
 
void CheckSetBuffer ()
 initialize header
 
void CheckGetBuffer ()
 check if m_buffer exists
 
void Initialize ()
 initialize header
 
void SetMagicWordEntireHeader ()
 set contents of header
 
void SetNwords (int nwords)
 set contents of header
 
void SetEveNo (unsigned int eve_no)
 set contents of header
 
void SetNodeID (unsigned int node_id)
 set contents of header
 
void SetDataType (int data_type)
 set contents of header
 
void SetTruncMask (int trunc_mask)
 set contents of header
 
void SetOffset1stFINESSE (int offset_1st_FINESSE)
 set contents of header
 
void SetOffset2ndFINESSE (int offset_2nd_FINESSE)
 set contents of header
 
void SetOffset3rdFINESSE (int offset_3rd_FINESSE)
 set contents of header
 
void SetOffset4thFINESSE (int offset_4th_FINESSE)
 set contents of header
 
void SetFTSW2Words (unsigned int word1, unsigned int word2)
 set contents of header
 
void SetExpRunNumber (int *exprun_buf)
 Set a word consists of exp #, run # and subrun #.
 
int GetNwords ()
 get contents of header
 
int GetHdrNwords ()
 get contents of header
 
int GetExpNo ()
 get a run/exp number combined word
 
int GetRunNo ()
 get contents of header
 
int GetSubRunNo ()
 get run # (14bit)
 
unsigned int GetExpRunSubrun ()
 get contents of header
 
unsigned int GetEveNo ()
 get restart #(8bit)
 
unsigned int GetNodeID ()
 get contents of header
 
int GetDataType ()
 get contents of header
 
int GetTruncMask ()
 get contents of header
 
unsigned int GetErrorBitFlag ()
 get contents of header
 
void AddErrorBitFlag (unsigned int error_bit_flag)
 Add Detected Error bitflag.
 
int GetOffset1stFINESSE ()
 get contents of header
 
int GetOffset2ndFINESSE ()
 get contents of header
 
int GetOffset3rdFINESSE ()
 get contents of header
 
int GetOffset4thFINESSE ()
 get contents of header
 
int GetNumNodes ()
 get contents of header
 
unsigned int GetTTCtimeTRGType ()
 get contents of header
 
int GetTTCtime ()
 get contents of header
 
int GetTRGType ()
 get TRGType
 
unsigned int GetTTUtime ()
 get contents of header
 
void GetTTTimeVal (struct timeval *tv)
 get contents of header
 
unsigned int GetMagicWordEntireHeader ()
 Get magic word to check the data corruption.
 
void CheckSetBuffer ()
 initialize header
 
void CheckGetBuffer ()
 check if m_buffer exists
 
void SetNwords (int nwords)
 set contents of header
 
void SetEveNo (unsigned int eve_no)
 set contents of header
 
void SetNodeID (unsigned int node_id)
 set contents of header
 
void SetDataType (int data_type)
 set contents of header
 
void SetTruncMask (int trunc_mask)
 set contents of header
 
void SetOffset1stFINESSE (int offset_1st_FINESSE)
 set contents of header
 
void SetOffset2ndFINESSE (int offset_2nd_FINESSE)
 set contents of header
 
void SetOffset3rdFINESSE (int offset_3rd_FINESSE)
 set contents of header
 
void SetOffset4thFINESSE (int offset_4th_FINESSE)
 set contents of header
 
void SetFTSW2Words (unsigned int word1, unsigned int word2)
 Set values of FTSW info( trigger timing)
 
void SetExpRunNumber (int *exprun_buf)
 Set a word consists of exp #, run # and subrun #.
 
int GetNwords ()
 set contents of header
 
int GetHdrNwords ()
 get contents of header
 
int GetExpNo ()
 get a run/exp number combined word
 
int GetRunNo ()
 get contents of header
 
int GetSubRunNo ()
 get run # (14bit)
 
unsigned int GetExpRunSubrun ()
 get contents of header
 
unsigned int GetEveNo ()
 get restart #(8bit)
 
unsigned int GetNodeID ()
 get contents of header
 
int GetDataType ()
 get contents of header
 
int GetTruncMask ()
 get contents of header
 
unsigned int GetErrorBitFlag ()
 get contents of header
 
void AddErrorBitFlag (unsigned int error_bit_flag)
 Add Detected Error bitflag.
 
int GetOffset1stFINESSE ()
 get contents of header
 
int GetOffset2ndFINESSE ()
 get contents of header
 
int GetOffset3rdFINESSE ()
 get contents of header
 
int GetOffset4thFINESSE ()
 get contents of header
 
unsigned int GetTTCtimeTRGType ()
 get contents of header
 
int GetTTCtime ()
 get contents of header
 
int GetTRGType ()
 get TRGType
 
unsigned int GetTTUtime ()
 get contents of header
 
void GetTTTimeVal (struct timeval *tv)
 get contents of header
 
void CheckSetBuffer ()
 initialize header
 
void CheckGetBuffer ()
 check if m_buffer exists
 
void SetNwords (int nwords)
 set contents of header
 
void SetEveNo (unsigned int eve_no)
 set contents of header
 
void SetNodeID (unsigned int node_id)
 set contents of header
 
void SetDataType (int data_type)
 set contents of header
 
void SetTruncMask (int trunc_mask)
 set contents of header
 
void SetOffset1stFINESSE (int offset_1st_FINESSE)
 set contents of header
 
void SetOffset2ndFINESSE (int offset_2nd_FINESSE)
 set contents of header
 
void SetOffset3rdFINESSE (int offset_3rd_FINESSE)
 set contents of header
 
void SetOffset4thFINESSE (int offset_4th_FINESSE)
 set contents of header
 
void SetFTSW2Words (unsigned int word1, unsigned int word2)
 Set values of FTSW info( trigger timing)
 
void SetExpRunNumber (int *exprun_buf)
 Set a word consists of exp #, run # and subrun #.
 
int GetNwords ()
 set contents of header
 
int GetHdrNwords ()
 get contents of header
 
int GetExpNo ()
 get a run/exp number combined word
 
int GetRunNo ()
 get contents of header
 
int GetSubRunNo ()
 get run # (14bit)
 
unsigned int GetExpRunSubrun ()
 get contents of header
 
unsigned int GetEveNo ()
 get restart #(8bit)
 
unsigned int GetNodeID ()
 get contents of header
 
int GetDataType ()
 get contents of header
 
int GetTruncMask ()
 get contents of header
 
unsigned int GetErrorBitFlag ()
 get contents of header
 
void AddErrorBitFlag (unsigned int error_bit_flag)
 Add Detected Error bitflag.
 
int GetPacketCRCError ()
 Get Packet CRC error flag.
 
int GetEventCRCError ()
 Get Detected Error bitflag.
 
int GetOffset1stFINESSE ()
 get contents of header
 
int GetOffset2ndFINESSE ()
 get contents of header
 
int GetOffset3rdFINESSE ()
 get contents of header
 
int GetOffset4thFINESSE ()
 get contents of header
 
unsigned int GetTTCtimeTRGType ()
 get contents of header
 
int GetTTCtime ()
 get contents of header
 
int GetTRGType ()
 get TRGType
 
unsigned int GetTTUtime ()
 get contents of header
 
void GetTTTimeVal (struct timeval *tv)
 get contents of header
 
void CheckBuffer ()
 set buffer
 
int * GetBuffer ()
 set buffer
 
void SetBuffer (int *bufin)
 return buffer
 
void Initialize ()
 set buffer
 
void SetChksum (int chksum)
 set buffer
 
void SetMagicWord ()
 initialize header
 
int GetMagicWord ()
 initialize header
 
unsigned int GetChksum ()
 Set # of trailer words.
 
int GetTrlNwords ()
 Set magic word.
 
void CheckBuffer ()
 Destructor.
 
int * GetBuffer ()
 set buffer
 
void SetBuffer (int *bufin)
 return buffer
 
void Initialize ()
 set buffer
 
void SetChksum (int chksum)
 set buffer
 
void SetMagicWord ()
 initialize header
 
int GetMagicWord ()
 initialize header
 
unsigned int GetChksum ()
 Set # of trailer words.
 
int GetTrlNwords ()
 Set magic word.
 
void CheckBuffer ()
 set buffer
 
int * GetBuffer ()
 set buffer
 
void SetBuffer (int *bufin)
 return buffer
 
void Initialize ()
 set buffer
 
void SetChksum (int chksum)
 set buffer
 
void SetMagicWord ()
 initialize header
 
int GetMagicWord ()
 initialize header
 
unsigned int GetChksum ()
 Set # of trailer words.
 
int GetTrlNwords ()
 Set magic word.
 
void CheckBuffer ()
 set buffer
 
int * GetBuffer ()
 set buffer
 
void SetBuffer (int *bufin)
 return buffer
 
void Initialize ()
 set buffer
 
void SetChksum (int chksum)
 set buffer
 
void SetMagicWord ()
 initialize header
 
int GetMagicWord ()
 initialize header
 
unsigned int GetChksum ()
 Set # of trailer words.
 
int GetTrlNwords ()
 Set magic word.
 

Detailed Description

Function Documentation

◆ AddErrorBitFlag() [1/9]

void AddErrorBitFlag ( int  n,
unsigned int  error_bit_flag 
)
inline

Get Detected Error bitflag.

Definition at line 422 of file RawCOPPER.h.

423 {
425 return m_access->AddErrorBitFlag(n, error_bit_flag);
426 }
virtual void AddErrorBitFlag(int n, unsigned int error_bit_flag)=0
Add Detected Error bitflag.
RawCOPPERFormat * m_access
class to access
Definition: RawCOPPER.h:333
void CheckVersionSetBuffer()
Check the version number of data format.
Definition: RawCOPPER.h:741

◆ AddErrorBitFlag() [2/9]

void AddErrorBitFlag ( int  n,
unsigned int  error_bit_flag 
)
inlinevirtual

Add Detected Error bitflag.

Implements RawCOPPERFormat.

Definition at line 344 of file RawCOPPERFormat_latest.h.

345 {
347 tmp_header.AddErrorBitFlag(error_bit_flag);
348 return;
349 }
RawHeader_latest tmp_header
header ( not recorded )
virtual int * GetBuffer(int n)
get nth buffer pointer
void SetBuffer(int *bufin)
set buffer
void AddErrorBitFlag(unsigned int error_bit_flag)
Add Detected Error bitflag.

◆ AddErrorBitFlag() [3/9]

void AddErrorBitFlag ( int  n,
unsigned int  error_bit_flag 
)
inlinevirtual

Add Detected Error bitflag.

Implements RawCOPPERFormat.

Definition at line 457 of file RawCOPPERFormat_v0.h.

458 {
460 tmp_header.AddErrorBitFlag(error_bit_flag);
461 return;
462 }
RawHeader_v0 tmp_header
header ( not recorded )
void SetBuffer(int *bufin)
set buffer
Definition: RawHeader_v0.h:49

◆ AddErrorBitFlag() [4/9]

void AddErrorBitFlag ( int  n,
unsigned int  error_bit_flag 
)
inlinevirtual

Add Detected Error bitflag.

Implements RawCOPPERFormat.

Definition at line 265 of file RawCOPPERFormat_v1.h.

266 {
268 tmp_header.AddErrorBitFlag(error_bit_flag);
269 return;
270 }
RawHeader_v1 tmp_header
header ( not recorded )
void SetBuffer(int *bufin)
set buffer
Definition: RawHeader_v1.h:47

◆ AddErrorBitFlag() [5/9]

void AddErrorBitFlag ( int  n,
unsigned int  error_bit_flag 
)
inlinevirtual

Add Detected Error bitflag.

Implements RawCOPPERFormat.

Definition at line 276 of file RawCOPPERFormat_v2.h.

277 {
279 tmp_header.AddErrorBitFlag(error_bit_flag);
280 return;
281 }
RawHeader_v2 tmp_header
header ( not recorded )
void SetBuffer(int *bufin)
set buffer
Definition: RawHeader_v2.h:47

◆ AddErrorBitFlag() [6/9]

void AddErrorBitFlag ( unsigned int  error_bit_flag)
inline

Add Detected Error bitflag.

Definition at line 385 of file RawHeader_latest.h.

386 {
388 m_buffer[ POS_TRUNC_MASK_DATATYPE ] |= (int)error_bit_flag;
389 return;
390 }
int * m_buffer
do not record buffer ( RawCOPPER includes buffer of RawHeader_latest and RawTrailer )
void CheckGetBuffer()
check if m_buffer exists

◆ AddErrorBitFlag() [7/9]

void AddErrorBitFlag ( unsigned int  error_bit_flag)
inline

Add Detected Error bitflag.

Definition at line 432 of file RawHeader_v0.h.

433 {
435 m_buffer[ POS_TRUNC_MASK_DATATYPE ] |= (int)error_bit_flag;
436 return;
437 }
int * m_buffer
do not record buffer ( RawCOPPER includes buffer of RawHeader_v0 and RawTrailer )
Definition: RawHeader_v0.h:222

◆ AddErrorBitFlag() [8/9]

void AddErrorBitFlag ( unsigned int  error_bit_flag)
inline

Add Detected Error bitflag.

Definition at line 411 of file RawHeader_v1.h.

412 {
414 m_buffer[ POS_TRUNC_MASK_DATATYPE ] |= (int)error_bit_flag;
415 return;
416 }
int * m_buffer
do not record buffer ( RawCOPPER includes buffer of RawHeader_v1 and RawTrailer )
Definition: RawHeader_v1.h:219

◆ AddErrorBitFlag() [9/9]

void AddErrorBitFlag ( unsigned int  error_bit_flag)
inline

Add Detected Error bitflag.

Definition at line 426 of file RawHeader_v2.h.

427 {
429 m_buffer[ POS_TRUNC_MASK_DATATYPE ] |= (int)error_bit_flag;
430 return;
431 }
int * m_buffer
do not record buffer ( RawCOPPER includes buffer of RawHeader_v2 and RawTrailer )
Definition: RawHeader_v2.h:236

◆ CalcDriverChkSum()

unsigned int CalcDriverChkSum ( int  n)
inline

calc COPPER driver's checksum value

Definition at line 644 of file RawCOPPER.h.

645 {
647 return m_access->CalcDriverChkSum(n);
648 }
virtual unsigned int CalcDriverChkSum(int n)=0
calc COPPER driver's checksum value

◆ CalcXORChecksum()

unsigned int CalcXORChecksum ( int *  buf,
int  nwords 
)
inline

calc XOR checksum

Definition at line 693 of file RawCOPPER.h.

694 {
696 return m_access->CalcXORChecksum(buf, nwords);
697 }
virtual unsigned int CalcXORChecksum(int *buf, int nwords)
calc XOR checksum

◆ CheckBuffer() [1/4]

void CheckBuffer ( )
inline

set buffer

Definition at line 86 of file RawTrailer_latest.h.

87 {
88 if (m_buffer == NULL) {
89 B2FATAL("m_buffer is NULL. Exiting...");
90 }
91 }
int * m_buffer
do not record buffer ( RawCOPPER includes buffer of RawHeader and RawTrailer_latest )

◆ CheckBuffer() [2/4]

void CheckBuffer ( )
inline

Destructor.

Definition at line 83 of file RawTrailer_v0.h.

84 {
85 if (m_buffer == NULL) {
86 B2FATAL("m_buffer is NULL. Exiting...");
87 }
88 }
int * m_buffer
do not record buffer ( RawCOPPER includes buffer of RawHeader and RawTrailer_v0 )
Definition: RawTrailer_v0.h:75

◆ CheckBuffer() [3/4]

void CheckBuffer ( )
inline

set buffer

Definition at line 86 of file RawTrailer_v1.h.

87 {
88 if (m_buffer == NULL) {
89 B2FATAL("m_buffer is NULL. Exiting...");
90 }
91 }
int * m_buffer
do not record buffer ( RawCOPPER includes buffer of RawHeader and RawTrailer_v1 )
Definition: RawTrailer_v1.h:78

◆ CheckBuffer() [4/4]

void CheckBuffer ( )
inline

set buffer

Definition at line 84 of file RawTrailer_v2.h.

85 {
86 if (m_buffer == NULL) {
87 B2FATAL("m_buffer is NULL. Exiting...");
88 }
89 }
int * m_buffer
do not record buffer ( RawCOPPER includes buffer of RawHeader and RawTrailer_v2 )
Definition: RawTrailer_v2.h:76

◆ CheckCOPPERMagic()

bool CheckCOPPERMagic ( int  n)
inline

Check if COPPER Magic words are correct.

Definition at line 713 of file RawCOPPER.h.

714 {
716 return m_access->CheckCOPPERMagic(n);
717 }
virtual bool CheckCOPPERMagic(int n)=0
Check if COPPER Magic words are correct.

◆ CheckData()

void CheckData ( int  n,
unsigned int  prev_evenum,
unsigned int *  cur_evenum,
unsigned int  prev_copper_ctr,
unsigned int *  cur_copper_ctr,
unsigned int  prev_exprunsubrun_no,
unsigned int *  cur_exprunsubrun_no 
)
inline

check data contents

Definition at line 699 of file RawCOPPER.h.

703 {
704
707 prev_evenum, cur_evenum_rawcprhdr,
708 prev_copper_ctr, cur_copper_ctr,
709 prev_exprunsubrun_no, cur_exprunsubrun_no);
710 return;
711 }
virtual void CheckData(int n, unsigned int prev_evenum, unsigned int *cur_evenum, unsigned int prev_copper_ctr, unsigned int *cur_copper_ctr, unsigned int prev_exprunsubrun_no, unsigned int *cur_exprunsubrun_no)=0
check data contents

◆ CheckGetBuffer() [1/4]

void CheckGetBuffer ( )
inline

check if m_buffer exists

Definition at line 248 of file RawHeader_latest.h.

249 {
250 if (m_buffer == NULL) {
251 B2FATAL("m_buffer is NULL. Data is corrupted or header info has not yet filled. Exiting...");
252// } else if (m_buffer[ POS_TERM_HEADER ] != MAGIC_WORD_TERM_HEADER) {
253// B2FATAL("magic word is invalid(0x"<< std::hex() << m_buffer[ POS_TERM_HEADER ] <<"). Data is corrupted or header info has not yet filled. Exiting...");
254 }
255 }

◆ CheckGetBuffer() [2/4]

void CheckGetBuffer ( )
inline

check if m_buffer exists

Definition at line 237 of file RawHeader_v0.h.

238 {
239 if (m_buffer == NULL) {
240 B2FATAL("m_buffer is NULL. Data is corrupted or header info has not yet filled. Exiting...");
241 } else if (m_buffer[ POS_TERM_HEADER ] != MAGIC_WORD_TERM_HEADER) {
242 B2FATAL("magic word is invalid(0x" << std::hex << m_buffer[ POS_TERM_HEADER ] << "," << m_buffer << " pos " << std::dec <<
243 POS_TERM_HEADER
244 << "). Data is corrupted or header info has not yet filled. Exiting...");
245 }
246 }

◆ CheckGetBuffer() [3/4]

void CheckGetBuffer ( )
inline

check if m_buffer exists

Definition at line 234 of file RawHeader_v1.h.

235 {
236
237 if (m_buffer == NULL) {
238 B2FATAL("m_buffer is NULL. Data is corrupted or header info has not yet filled. Exiting...");
239// } else if (m_buffer[ POS_TERM_HEADER ] != MAGIC_WORD_TERM_HEADER) { */
240// B2FATAL("[DEBUG] magic word is invalid(0x" << hex() << m_buffer[ POS_TERM_HEADER ] << "). Data is corrupted or header info has not yet filled. Exiting...");
241 }
242
243
244
245 }

◆ CheckGetBuffer() [4/4]

void CheckGetBuffer ( )
inline

check if m_buffer exists

Definition at line 251 of file RawHeader_v2.h.

252 {
253 if (m_buffer == NULL) {
254 B2FATAL("m_buffer is NULL. Data is corrupted or header info has not yet filled. Exiting...");
255// } else if (m_buffer[ POS_TERM_HEADER ] != MAGIC_WORD_TERM_HEADER) {
256// B2FATAL("magic word is invalid(0x"<< std::hex() << m_buffer[ POS_TERM_HEADER ] <<"). Data is corrupted or header info has not yet filled. Exiting...");
257 }
258 }

◆ CheckOnlineRemovedDataBit() [1/3]

bool CheckOnlineRemovedDataBit ( int  n,
int  finesse_num 
)
inline

check if this channel's data has been removed on a readout PC for CDC online "masking"

Definition at line 756 of file RawCOPPER.h.

757 {
759 return m_access->CheckOnlineRemovedDataBit(n, finesse_num);
760 }
virtual bool CheckOnlineRemovedDataBit(int n, int finesse_num)
Check if COPPER Magic words are correct.

◆ CheckOnlineRemovedDataBit() [2/3]

bool CheckOnlineRemovedDataBit ( int  n,
int  finesse_num 
)
inlinevirtual

check if this channel's data has been removed on a readout PC for CDC online "masking" True : data contents was removed on a readout PC

Reimplemented from RawCOPPERFormat.

Definition at line 308 of file PostRawCOPPERFormat_latest.h.

309 {
310 if (GetFINESSENwords(n, finesse_num) <= 0) return false;
311 unsigned int* buf = (unsigned int*)GetFINESSEBuffer(n, finesse_num)
312 + (GetFINESSENwords(n, finesse_num) - SIZE_B2LHSLB_TRAILER + POS_B2LHSLB_MAGIC);
313 if (*buf & (1 << ONLINE_REMOVED_DATA)) { return true; }
314 return false;
315 }
int * GetFINESSEBuffer(int n, int finesse_num) OVERRIDE_CPP17
Get a pointer to a FINESSE buffer.
int GetFINESSENwords(int n, int finesse_num) OVERRIDE_CPP17
Get the size of a finesse buffer.

◆ CheckOnlineRemovedDataBit() [3/3]

bool CheckOnlineRemovedDataBit ( int  n,
int  finesse_num 
)
inlinevirtual

check if this channel's data has been removed on a readout PC for CDC online "masking" True : data contents was removed on a readout PC

Reimplemented from RawCOPPERFormat.

Definition at line 321 of file PreRawCOPPERFormat_latest.h.

322 {
323 if (GetFINESSENwords(n, finesse_num) <= 0) return false;
324 unsigned int* buf = (unsigned int*)GetFINESSEBuffer(n, finesse_num)
325 + (GetFINESSENwords(n, finesse_num) - SIZE_B2LHSLB_TRAILER + POS_MAGIC_B2LHSLB);
326 if (*buf & (1 << ONLINE_REMOVED_DATA)) { return true; }
327 return false;
328 }

◆ CheckSetBuffer() [1/4]

void CheckSetBuffer ( )
inline

initialize header

Definition at line 241 of file RawHeader_latest.h.

242 {
243 if (m_buffer == NULL) {
244 B2FATAL("m_buffer is NULL. Exiting...");
245 }
246 }

◆ CheckSetBuffer() [2/4]

void CheckSetBuffer ( )
inline

initialize header

Definition at line 230 of file RawHeader_v0.h.

231 {
232 if (m_buffer == NULL) {
233 B2FATAL("m_buffer is NULL. Exiting...");
234 }
235 }

◆ CheckSetBuffer() [3/4]

void CheckSetBuffer ( )
inline

initialize header

Definition at line 227 of file RawHeader_v1.h.

228 {
229 if (m_buffer == NULL) {
230 B2FATAL("m_buffer is NULL. Exiting...");
231 }
232 }

◆ CheckSetBuffer() [4/4]

void CheckSetBuffer ( )
inline

initialize header

Definition at line 244 of file RawHeader_v2.h.

245 {
246 if (m_buffer == NULL) {
247 B2FATAL("m_buffer is NULL. Exiting...");
248 }
249 }

◆ CheckUtimeCtimeTRGType()

void CheckUtimeCtimeTRGType ( int  n)
inline

check data contents

Definition at line 719 of file RawCOPPER.h.

720 {
723 }
virtual void CheckUtimeCtimeTRGType(int n)=0
check data contents

◆ CheckVersionSetBuffer() [1/2]

void CheckVersionSetBuffer ( )
inline

Check the version number of data format.

Definition at line 741 of file RawCOPPER.h.

742 {
743 if (((m_buffer[ POS_FORMAT_VERSION ] & FORMAT_MASK) >> 8) != m_version
744 || m_access == NULL) {
745 SetVersion();
746 }
748 }
void SetVersion()
read data, detect and set the version number of the data format
Definition: RawCOPPER.cc:34
int m_version
do not record
Definition: RawCOPPER.h:336
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 )
int m_num_events
number of events in this object
Definition: RawDataBlock.h:151
int m_num_nodes
number of nodes in this object
Definition: RawDataBlock.h:148
int * m_buffer
Buffer.
Definition: RawDataBlock.h:154
int m_nwords
do not record
Definition: RawDataBlock.h:145

◆ CheckVersionSetBuffer() [2/2]

void CheckVersionSetBuffer ( )
inline

Check the version number of data format.

Definition at line 247 of file RawFTSW.h.

248 {
249 if (m_version < 0 || m_access == NULL) {
250 // Since both ver.0, 1 and ver.2 will show m_buffer[ POS_NODE_ID ] & FORMAT_MASK == 0x0, I need to ignore the check for ver.0 and 1
251 SetVersion();
252 }
254 }
void SetVersion()
read data, detect and set the version number of the data format
Definition: RawFTSW.cc:25
RawFTSWFormat * m_access
class to access
Definition: RawFTSW.h:232
int m_version
do not record
Definition: RawFTSW.h:235

◆ FillTopBlockRawHeader()

unsigned int FillTopBlockRawHeader ( unsigned int  m_node_id,
unsigned int  prev_eve32,
unsigned int  prev_exprunsubrun_no,
unsigned int *  cur_exprunsubrun_no 
)
inline

should be called by DeSerializerCOPPER.cc and fill contents in RawHeader

Definition at line 725 of file RawCOPPER.h.

727 {
729 return m_access->FillTopBlockRawHeader(m_node_id, prev_eve32,
730 prev_exprunsubrun_no, cur_exprunsubrun_no);
731 }
virtual unsigned int FillTopBlockRawHeader(unsigned int m_node_id, unsigned int prev_eve32, unsigned int prev_exprunsubrun_no, unsigned int *cur_exprunsubrun_no)=0
should be called by DeSerializerCOPPER.cc and fill contents in RawHeader

◆ Get1stDetectorBuffer() [1/6]

int * Get1stDetectorBuffer ( int  n)
inline

get Detector buffer of slot A

Definition at line 548 of file RawCOPPER.h.

549 {
552 }
virtual int * Get1stDetectorBuffer(int n)=0
get Detector buffer of slot A

◆ Get1stDetectorBuffer() [2/6]

int * Get1stDetectorBuffer ( int  n)
inlinevirtual

get Detector buffer of slot A

Implements RawCOPPERFormat.

Definition at line 229 of file PostRawCOPPERFormat_v1.h.

230 {
231#ifdef USE_B2LFEE_FORMAT_BOTH_VER1_AND_2
232 CheckB2LFEEHeaderVersion(n);
233#endif
234 if (Get1stFINESSENwords(n) > 0) {
235 int pos_nwords = GetOffset1stFINESSE(n) + SIZE_B2LHSLB_HEADER + SIZE_B2LFEE_HEADER;
236 return &(m_buffer[ pos_nwords ]);
237 }
238 return NULL;
239 }
int GetOffset1stFINESSE(int n) OVERRIDE_CPP17
get # of offset words for FINESSE slot A buffer position
int Get1stFINESSENwords(int n) OVERRIDE_CPP17
get data size of FINESSE slot A buffer

◆ Get1stDetectorBuffer() [3/6]

int * Get1stDetectorBuffer ( int  n)
inlinevirtual

get Detector buffer of slot A

Implements RawCOPPERFormat.

Definition at line 238 of file PostRawCOPPERFormat_v2.h.

239 {
240#ifdef USE_B2LFEE_FORMAT_BOTH_VER1_AND_2
241 CheckB2LFEEHeaderVersion(n);
242#endif
243 if (Get1stFINESSENwords(n) > 0) {
244 int pos_nwords = GetOffset1stFINESSE(n) + SIZE_B2LHSLB_HEADER + SIZE_B2LFEE_HEADER;
245 return &(m_buffer[ pos_nwords ]);
246 }
247 return NULL;
248 }

◆ Get1stDetectorBuffer() [4/6]

int * Get1stDetectorBuffer ( int  n)
inlinevirtual

get Detector buffer of slot A

Implements RawCOPPERFormat.

Definition at line 304 of file PreRawCOPPERFormat_v1.h.

305 {
306#ifdef USE_B2LFEE_FORMAT_BOTH_VER1_AND_2
307 CheckB2LFEEHeaderVersion(n);
308#endif
309 if (Get1stFINESSENwords(n) > 0) {
310 int pos_nwords = GetOffset1stFINESSE(n) + SIZE_B2LHSLB_HEADER + SIZE_B2LFEE_HEADER;
311 return &(m_buffer[ pos_nwords ]);
312 }
313 return NULL;
314 }

◆ Get1stDetectorBuffer() [5/6]

int * Get1stDetectorBuffer ( int  n)
inlinevirtual

get Detector buffer of slot A

Implements RawCOPPERFormat.

Definition at line 304 of file PreRawCOPPERFormat_v2.h.

305 {
306#ifdef USE_B2LFEE_FORMAT_BOTH_VER1_AND_2
307 CheckB2LFEEHeaderVersion(n);
308#endif
309 if (Get1stFINESSENwords(n) > 0) {
310 int pos_nwords = GetOffset1stFINESSE(n) + SIZE_B2LHSLB_HEADER + SIZE_B2LFEE_HEADER;
311 return &(m_buffer[ pos_nwords ]);
312 }
313 return NULL;
314 }

◆ Get1stDetectorBuffer() [6/6]

int * Get1stDetectorBuffer ( int  n)
inlinevirtual

get Detector buffer of slot A

Implements RawCOPPERFormat.

Definition at line 559 of file RawCOPPERFormat_v0.h.

560 {
561#ifdef USE_B2LFEE_FORMAT_BOTH_VER1_AND_2
562 CheckB2LFEEHeaderVersion(n);
563#endif
564 if (Get1stFINESSENwords(n) > 0) {
565 int pos_nwords = GetOffset1stFINESSE(n) + SIZE_B2LHSLB_HEADER + SIZE_B2LFEE_HEADER;
566 return &(m_buffer[ pos_nwords ]);
567 }
568 return NULL;
569 }

◆ Get1stDetectorNwords() [1/4]

int Get1stDetectorNwords ( int  n)
inline

get Detector buffer length of slot A

Definition at line 452 of file RawCOPPER.h.

453 {
456 }
virtual int Get1stDetectorNwords(int n)=0
get Detector buffer length of slot A

◆ Get1stDetectorNwords() [2/4]

int Get1stDetectorNwords ( int  n)
inlinevirtual

get Detector buffer length of slot A

Implements RawCOPPERFormat.

Definition at line 473 of file RawCOPPERFormat_v0.h.

474 {
475#ifdef USE_B2LFEE_FORMAT_BOTH_VER1_AND_2
476 CheckB2LFEEHeaderVersion(n);
477#endif
478 int nwords = 0;
479 if (Get1stFINESSENwords(n) > 0) {
480 nwords = Get1stFINESSENwords(n) - SIZE_B2LHSLB_HEADER - SIZE_B2LFEE_HEADER
481 - SIZE_B2LFEE_TRAILER - SIZE_B2LHSLB_TRAILER;
482 }
483 return nwords;
484 }

◆ Get1stDetectorNwords() [3/4]

int Get1stDetectorNwords ( int  n)
inlinevirtual

get Detector buffer length of slot A

Implements RawCOPPERFormat.

Definition at line 272 of file RawCOPPERFormat_v1.h.

273 {
274 return GetDetectorNwords(n, 0);
275 }
virtual int GetDetectorNwords(int n, int finesse_num)=0
set buffer ( delete_flag : m_buffer is freeed( = 0 )/ not freeed( = 1 ) in Destructer )

◆ Get1stDetectorNwords() [4/4]

int Get1stDetectorNwords ( int  n)
inlinevirtual

get Detector buffer length of slot A

Implements RawCOPPERFormat.

Definition at line 296 of file RawCOPPERFormat_v2.h.

297 {
298 return GetDetectorNwords(n, 0);
299 }

◆ Get1stFINESSEBuffer() [1/2]

int * Get1stFINESSEBuffer ( int  n)
inline

get FINESSE buffer pointer for slot A

Definition at line 524 of file RawCOPPER.h.

525 {
527 return m_access->Get1stFINESSEBuffer(n);
528 }
virtual int * Get1stFINESSEBuffer(int n)
get FINESSE buffer pointer for slot A

◆ Get1stFINESSEBuffer() [2/2]

int * Get1stFINESSEBuffer ( int  n)
inlinevirtual

get FINESSE buffer pointer for slot A

Definition at line 397 of file RawCOPPERFormat.h.

398 {
399 int pos_nwords = GetOffset1stFINESSE(n);
400 if (pos_nwords >= m_nwords) {
401 printf("[DEBUG] Data size(0x%.8x) is smaller than data position info(0x%.8x). Exiting...\n", m_nwords, pos_nwords);
402 for (int i = 0; i < m_nwords; i++) {
403 printf("%.8x ", m_buffer[ i ]);
404 if ((i % 10) == 9) printf("\n");
405 }
406 B2FATAL("Data size is smaller than data position info. Exiting...");
407 }
408 return &(m_buffer[ pos_nwords]);
409 }
virtual int GetOffset1stFINESSE(int n)=0
get # of offset words for FINESSE slot A buffer position
int m_nwords
number of words of buffer

◆ Get1stFINESSENwords() [1/4]

int Get1stFINESSENwords ( int  n)
inline

get data size of FINESSE slot A buffer

Definition at line 476 of file RawCOPPER.h.

477 {
479 return m_access->Get1stFINESSENwords(n);
480 }
virtual int Get1stFINESSENwords(int n)=0
get data size of FINESSE slot A buffer

◆ Get1stFINESSENwords() [2/4]

int Get1stFINESSENwords ( int  n)
inlinevirtual

get data size of FINESSE slot A buffer

Implements RawCOPPERFormat.

Definition at line 527 of file RawCOPPERFormat_v0.h.

528 {
529 int pos_nwords = GetBufferPos(n) + tmp_header.RAWHEADER_NWORDS + POS_CH_A_DATA_LENGTH;
530 return m_buffer[ pos_nwords ];
531 }
virtual int GetBufferPos(int n)
get position of data block in word

◆ Get1stFINESSENwords() [3/4]

int Get1stFINESSENwords ( int  n)
inlinevirtual

get data size of FINESSE slot A buffer

Implements RawCOPPERFormat.

Definition at line 294 of file RawCOPPERFormat_v1.h.

295 {
296 return GetFINESSENwords(n, 0);
297 }
virtual int GetFINESSENwords(int n, int finesse)=0
get data size of FINESSE buffer

◆ Get1stFINESSENwords() [4/4]

int Get1stFINESSENwords ( int  n)
inlinevirtual

get data size of FINESSE slot A buffer

Implements RawCOPPERFormat.

Definition at line 318 of file RawCOPPERFormat_v2.h.

319 {
320 return GetFINESSENwords(n, 0);
321 }

◆ Get2ndDetectorBuffer() [1/6]

int * Get2ndDetectorBuffer ( int  n)
inline

get Detector Buffer of slot B

Definition at line 554 of file RawCOPPER.h.

555 {
558 }
virtual int * Get2ndDetectorBuffer(int n)=0
get Detector Buffer of slot B

◆ Get2ndDetectorBuffer() [2/6]

int * Get2ndDetectorBuffer ( int  n)
inlinevirtual

get Detector Buffer of slot B

Implements RawCOPPERFormat.

Definition at line 241 of file PostRawCOPPERFormat_v1.h.

242 {
243#ifdef USE_B2LFEE_FORMAT_BOTH_VER1_AND_2
244 CheckB2LFEEHeaderVersion(n);
245#endif
246 if (Get2ndFINESSENwords(n) > 0) {
247 int pos_nwords = GetOffset2ndFINESSE(n) + SIZE_B2LHSLB_HEADER + SIZE_B2LFEE_HEADER;
248 return &(m_buffer[ pos_nwords ]);
249 }
250 return NULL;
251 }
virtual int GetOffset2ndFINESSE(int n)
get # of offset words for FINESSE slot B buffer position
int Get2ndFINESSENwords(int n) OVERRIDE_CPP17
get data size of FINESSE slot B buffer

◆ Get2ndDetectorBuffer() [3/6]

int * Get2ndDetectorBuffer ( int  n)
inlinevirtual

get Detector Buffer of slot B

Implements RawCOPPERFormat.

Definition at line 250 of file PostRawCOPPERFormat_v2.h.

251 {
252#ifdef USE_B2LFEE_FORMAT_BOTH_VER1_AND_2
253 CheckB2LFEEHeaderVersion(n);
254#endif
255 if (Get2ndFINESSENwords(n) > 0) {
256 int pos_nwords = GetOffset2ndFINESSE(n) + SIZE_B2LHSLB_HEADER + SIZE_B2LFEE_HEADER;
257 return &(m_buffer[ pos_nwords ]);
258 }
259 return NULL;
260 }

◆ Get2ndDetectorBuffer() [4/6]

int * Get2ndDetectorBuffer ( int  n)
inlinevirtual

get Detector Buffer of slot B

Implements RawCOPPERFormat.

Definition at line 316 of file PreRawCOPPERFormat_v1.h.

317 {
318#ifdef USE_B2LFEE_FORMAT_BOTH_VER1_AND_2
319 CheckB2LFEEHeaderVersion(n);
320#endif
321 if (Get2ndFINESSENwords(n) > 0) {
322 int pos_nwords = GetOffset2ndFINESSE(n) + SIZE_B2LHSLB_HEADER + SIZE_B2LFEE_HEADER;
323 return &(m_buffer[ pos_nwords ]);
324 }
325 return NULL;
326 }

◆ Get2ndDetectorBuffer() [5/6]

int * Get2ndDetectorBuffer ( int  n)
inlinevirtual

get Detector Buffer of slot B

Implements RawCOPPERFormat.

Definition at line 316 of file PreRawCOPPERFormat_v2.h.

317 {
318#ifdef USE_B2LFEE_FORMAT_BOTH_VER1_AND_2
319 CheckB2LFEEHeaderVersion(n);
320#endif
321 if (Get2ndFINESSENwords(n) > 0) {
322 int pos_nwords = GetOffset2ndFINESSE(n) + SIZE_B2LHSLB_HEADER + SIZE_B2LFEE_HEADER;
323 return &(m_buffer[ pos_nwords ]);
324 }
325 return NULL;
326 }

◆ Get2ndDetectorBuffer() [6/6]

int * Get2ndDetectorBuffer ( int  n)
inlinevirtual

get Detector Buffer of slot B

Implements RawCOPPERFormat.

Definition at line 571 of file RawCOPPERFormat_v0.h.

572 {
573#ifdef USE_B2LFEE_FORMAT_BOTH_VER1_AND_2
574 CheckB2LFEEHeaderVersion(n);
575#endif
576 if (Get2ndFINESSENwords(n) > 0) {
577 int pos_nwords = GetOffset2ndFINESSE(n) + SIZE_B2LHSLB_HEADER + SIZE_B2LFEE_HEADER;
578 return &(m_buffer[ pos_nwords ]);
579 }
580 return NULL;
581 }

◆ Get2ndDetectorNwords() [1/4]

int Get2ndDetectorNwords ( int  n)
inline

get Detector buffer length of slot B

Definition at line 458 of file RawCOPPER.h.

459 {
462 }
virtual int Get2ndDetectorNwords(int n)=0
get Detector buffer length of slot B

◆ Get2ndDetectorNwords() [2/4]

int Get2ndDetectorNwords ( int  n)
inlinevirtual

get Detector buffer length of slot B

Implements RawCOPPERFormat.

Definition at line 486 of file RawCOPPERFormat_v0.h.

487 {
488#ifdef USE_B2LFEE_FORMAT_BOTH_VER1_AND_2
489 CheckB2LFEEHeaderVersion(n);
490#endif
491 int nwords = 0;
492 if (Get2ndFINESSENwords(n) > 0) {
493 nwords = Get2ndFINESSENwords(n) - SIZE_B2LHSLB_HEADER -
494 SIZE_B2LFEE_HEADER - SIZE_B2LFEE_TRAILER - SIZE_B2LHSLB_TRAILER;
495 }
496 return nwords;
497 }

◆ Get2ndDetectorNwords() [3/4]

int Get2ndDetectorNwords ( int  n)
inlinevirtual

get Detector buffer length of slot B

Implements RawCOPPERFormat.

Definition at line 277 of file RawCOPPERFormat_v1.h.

278 {
279 return GetDetectorNwords(n, 1);
280 }

◆ Get2ndDetectorNwords() [4/4]

int Get2ndDetectorNwords ( int  n)
inlinevirtual

get Detector buffer length of slot B

Implements RawCOPPERFormat.

Definition at line 301 of file RawCOPPERFormat_v2.h.

302 {
303 return GetDetectorNwords(n, 1);
304 }

◆ Get2ndFINESSEBuffer() [1/2]

int * Get2ndFINESSEBuffer ( int  n)
inline

get FINESSE buffer pointer for slot B

Definition at line 530 of file RawCOPPER.h.

531 {
533 return m_access->Get2ndFINESSEBuffer(n);
534 }
virtual int * Get2ndFINESSEBuffer(int n)
get FINESSE buffer pointer for slot B

◆ Get2ndFINESSEBuffer() [2/2]

int * Get2ndFINESSEBuffer ( int  n)
inlinevirtual

get FINESSE buffer pointer for slot B

Definition at line 411 of file RawCOPPERFormat.h.

412 {
413 int pos_nwords = GetOffset2ndFINESSE(n);
414 if (pos_nwords >= m_nwords) {
415 printf("[DEBUG] Data size(0x%.8x) is smaller than data position info(0x%.8x). Exiting...\n", m_nwords, pos_nwords);
416 for (int i = 0; i < m_nwords; i++) {
417 printf("%.8x ", m_buffer[ i ]);
418 if ((i % 10) == 9) printf("\n");
419 }
420 B2FATAL("Data size is smaller than data position info. Exiting...");
421 }
422 return &(m_buffer[ pos_nwords]);
423 }

◆ Get2ndFINESSENwords() [1/4]

int Get2ndFINESSENwords ( int  n)
inline

get data size of FINESSE slot B buffer

Definition at line 482 of file RawCOPPER.h.

483 {
485 return m_access->Get2ndFINESSENwords(n);
486 }
virtual int Get2ndFINESSENwords(int n)=0
get data size of FINESSE slot B buffer

◆ Get2ndFINESSENwords() [2/4]

int Get2ndFINESSENwords ( int  n)
inlinevirtual

get data size of FINESSE slot B buffer

Implements RawCOPPERFormat.

Definition at line 533 of file RawCOPPERFormat_v0.h.

534 {
535 int pos_nwords = GetBufferPos(n) + tmp_header.RAWHEADER_NWORDS + POS_CH_B_DATA_LENGTH;
536 return m_buffer[ pos_nwords ];
537 }

◆ Get2ndFINESSENwords() [3/4]

int Get2ndFINESSENwords ( int  n)
inlinevirtual

get data size of FINESSE slot B buffer

Implements RawCOPPERFormat.

Definition at line 299 of file RawCOPPERFormat_v1.h.

300 {
301 return GetFINESSENwords(n, 1);
302 }

◆ Get2ndFINESSENwords() [4/4]

int Get2ndFINESSENwords ( int  n)
inlinevirtual

get data size of FINESSE slot B buffer

Implements RawCOPPERFormat.

Definition at line 323 of file RawCOPPERFormat_v2.h.

324 {
325 return GetFINESSENwords(n, 1);
326 }

◆ Get3rdDetectorBuffer() [1/6]

int * Get3rdDetectorBuffer ( int  n)
inline

get Detector Buffer of slot C

Definition at line 560 of file RawCOPPER.h.

561 {
564 }
virtual int * Get3rdDetectorBuffer(int n)=0
get Detector Buffer of slot C

◆ Get3rdDetectorBuffer() [2/6]

int * Get3rdDetectorBuffer ( int  n)
inlinevirtual

get Detector Buffer of slot C

Implements RawCOPPERFormat.

Definition at line 253 of file PostRawCOPPERFormat_v1.h.

254 {
255#ifdef USE_B2LFEE_FORMAT_BOTH_VER1_AND_2
256 CheckB2LFEEHeaderVersion(n);
257#endif
258 if (Get3rdFINESSENwords(n) > 0) {
259 int pos_nwords = GetOffset3rdFINESSE(n) + SIZE_B2LHSLB_HEADER + SIZE_B2LFEE_HEADER;
260 return &(m_buffer[ pos_nwords ]);
261 }
262 return NULL;
263 }
int Get3rdFINESSENwords(int n) OVERRIDE_CPP17
get data size of FINESSE slot C buffer
virtual int GetOffset3rdFINESSE(int n)
get # of offset words for FINESSE slot C buffer position

◆ Get3rdDetectorBuffer() [3/6]

int * Get3rdDetectorBuffer ( int  n)
inlinevirtual

get Detector Buffer of slot C

Implements RawCOPPERFormat.

Definition at line 262 of file PostRawCOPPERFormat_v2.h.

263 {
264#ifdef USE_B2LFEE_FORMAT_BOTH_VER1_AND_2
265 CheckB2LFEEHeaderVersion(n);
266#endif
267 if (Get3rdFINESSENwords(n) > 0) {
268 int pos_nwords = GetOffset3rdFINESSE(n) + SIZE_B2LHSLB_HEADER + SIZE_B2LFEE_HEADER;
269 return &(m_buffer[ pos_nwords ]);
270 }
271 return NULL;
272 }

◆ Get3rdDetectorBuffer() [4/6]

int * Get3rdDetectorBuffer ( int  n)
inlinevirtual

get Detector Buffer of slot C

Implements RawCOPPERFormat.

Definition at line 328 of file PreRawCOPPERFormat_v1.h.

329 {
330#ifdef USE_B2LFEE_FORMAT_BOTH_VER1_AND_2
331 CheckB2LFEEHeaderVersion(n);
332#endif
333 if (Get3rdFINESSENwords(n) > 0) {
334 int pos_nwords = GetOffset3rdFINESSE(n) + SIZE_B2LHSLB_HEADER + SIZE_B2LFEE_HEADER;
335 return &(m_buffer[ pos_nwords ]);
336 }
337 return NULL;
338 }

◆ Get3rdDetectorBuffer() [5/6]

int * Get3rdDetectorBuffer ( int  n)
inlinevirtual

get Detector Buffer of slot C

Implements RawCOPPERFormat.

Definition at line 328 of file PreRawCOPPERFormat_v2.h.

329 {
330#ifdef USE_B2LFEE_FORMAT_BOTH_VER1_AND_2
331 CheckB2LFEEHeaderVersion(n);
332#endif
333 if (Get3rdFINESSENwords(n) > 0) {
334 int pos_nwords = GetOffset3rdFINESSE(n) + SIZE_B2LHSLB_HEADER + SIZE_B2LFEE_HEADER;
335 return &(m_buffer[ pos_nwords ]);
336 }
337 return NULL;
338 }

◆ Get3rdDetectorBuffer() [6/6]

int * Get3rdDetectorBuffer ( int  n)
inlinevirtual

get Detector Buffer of slot C

Implements RawCOPPERFormat.

Definition at line 583 of file RawCOPPERFormat_v0.h.

584 {
585#ifdef USE_B2LFEE_FORMAT_BOTH_VER1_AND_2
586 CheckB2LFEEHeaderVersion(n);
587#endif
588 if (Get3rdFINESSENwords(n) > 0) {
589 int pos_nwords = GetOffset3rdFINESSE(n) + SIZE_B2LHSLB_HEADER + SIZE_B2LFEE_HEADER;
590 return &(m_buffer[ pos_nwords ]);
591 }
592 return NULL;
593 }

◆ Get3rdDetectorNwords() [1/4]

int Get3rdDetectorNwords ( int  n)
inline

get Detector buffer length of slot C

Definition at line 464 of file RawCOPPER.h.

465 {
468 }
virtual int Get3rdDetectorNwords(int n)=0
get Detector buffer length of slot C

◆ Get3rdDetectorNwords() [2/4]

int Get3rdDetectorNwords ( int  n)
inlinevirtual

get Detector buffer length of slot C

Implements RawCOPPERFormat.

Definition at line 499 of file RawCOPPERFormat_v0.h.

500 {
501#ifdef USE_B2LFEE_FORMAT_BOTH_VER1_AND_2
502 CheckB2LFEEHeaderVersion(n);
503#endif
504 int nwords = 0;
505 if (Get3rdFINESSENwords(n) > 0) {
506 nwords = Get3rdFINESSENwords(n) - SIZE_B2LHSLB_HEADER -
507 SIZE_B2LFEE_HEADER - SIZE_B2LFEE_TRAILER - SIZE_B2LHSLB_TRAILER;
508 }
509 return nwords;
510 }

◆ Get3rdDetectorNwords() [3/4]

int Get3rdDetectorNwords ( int  n)
inlinevirtual

get Detector buffer length of slot C

Implements RawCOPPERFormat.

Definition at line 282 of file RawCOPPERFormat_v1.h.

283 {
284 return GetDetectorNwords(n, 2);
285 }

◆ Get3rdDetectorNwords() [4/4]

int Get3rdDetectorNwords ( int  n)
inlinevirtual

get Detector buffer length of slot C

Implements RawCOPPERFormat.

Definition at line 306 of file RawCOPPERFormat_v2.h.

307 {
308 return GetDetectorNwords(n, 2);
309 }

◆ Get3rdFINESSEBuffer() [1/2]

int * Get3rdFINESSEBuffer ( int  n)
inline

get FINESSE buffer pointer for slot C

Definition at line 536 of file RawCOPPER.h.

537 {
539 return m_access->Get3rdFINESSEBuffer(n);
540 }
virtual int * Get3rdFINESSEBuffer(int n)
get FINESSE buffer pointer for slot C

◆ Get3rdFINESSEBuffer() [2/2]

int * Get3rdFINESSEBuffer ( int  n)
inlinevirtual

get FINESSE buffer pointer for slot C

Definition at line 425 of file RawCOPPERFormat.h.

426 {
427 int pos_nwords = GetOffset3rdFINESSE(n);
428 if (pos_nwords >= m_nwords) {
429 printf("[DEBUG] Data size(0x%.8x) is smaller than data position info(0x%.8x). Exiting...\n", m_nwords, pos_nwords);
430 for (int i = 0; i < m_nwords; i++) {
431 printf("%.8x ", m_buffer[ i ]);
432 if ((i % 10) == 9) printf("\n");
433 }
434 B2FATAL("Data size is smaller than data position info. Exiting...");
435 }
436 return &(m_buffer[ pos_nwords]);
437 }

◆ Get3rdFINESSENwords() [1/4]

int Get3rdFINESSENwords ( int  n)
inline

get data size of FINESSE slot C buffer

Definition at line 488 of file RawCOPPER.h.

489 {
491 return m_access->Get3rdFINESSENwords(n);
492 }
virtual int Get3rdFINESSENwords(int n)=0
get data size of FINESSE slot C buffer

◆ Get3rdFINESSENwords() [2/4]

int Get3rdFINESSENwords ( int  n)
inlinevirtual

get data size of FINESSE slot C buffer

Implements RawCOPPERFormat.

Definition at line 539 of file RawCOPPERFormat_v0.h.

540 {
541 int pos_nwords = GetBufferPos(n) + tmp_header.RAWHEADER_NWORDS + POS_CH_C_DATA_LENGTH;
542 return m_buffer[ pos_nwords ];
543 }

◆ Get3rdFINESSENwords() [3/4]

int Get3rdFINESSENwords ( int  n)
inlinevirtual

get data size of FINESSE slot C buffer

Implements RawCOPPERFormat.

Definition at line 304 of file RawCOPPERFormat_v1.h.

305 {
306 return GetFINESSENwords(n, 2);
307 }

◆ Get3rdFINESSENwords() [4/4]

int Get3rdFINESSENwords ( int  n)
inlinevirtual

get data size of FINESSE slot C buffer

Implements RawCOPPERFormat.

Definition at line 328 of file RawCOPPERFormat_v2.h.

329 {
330 return GetFINESSENwords(n, 2);
331 }

◆ Get4thDetectorBuffer() [1/6]

int * Get4thDetectorBuffer ( int  n)
inline

get Detector Buffer of slot D

Definition at line 566 of file RawCOPPER.h.

567 {
570 }
virtual int * Get4thDetectorBuffer(int n)=0
get Detector Buffer of slot D

◆ Get4thDetectorBuffer() [2/6]

int * Get4thDetectorBuffer ( int  n)
inlinevirtual

get Detector Buffer of slot D

Implements RawCOPPERFormat.

Definition at line 265 of file PostRawCOPPERFormat_v1.h.

266 {
267#ifdef USE_B2LFEE_FORMAT_BOTH_VER1_AND_2
268 CheckB2LFEEHeaderVersion(n);
269#endif
270 if (Get4thFINESSENwords(n) > 0) {
271 int pos_nwords = GetOffset4thFINESSE(n) + SIZE_B2LHSLB_HEADER + SIZE_B2LFEE_HEADER;
272 return &(m_buffer[ pos_nwords ]);
273 }
274 return NULL;
275 }
int Get4thFINESSENwords(int n) OVERRIDE_CPP17
get data size of FINESSE slot D buffer
virtual int GetOffset4thFINESSE(int n)
get # of offset words for FINESSE slot D buffer position

◆ Get4thDetectorBuffer() [3/6]

int * Get4thDetectorBuffer ( int  n)
inlinevirtual

get Detector Buffer of slot D

Implements RawCOPPERFormat.

Definition at line 274 of file PostRawCOPPERFormat_v2.h.

275 {
276#ifdef USE_B2LFEE_FORMAT_BOTH_VER1_AND_2
277 CheckB2LFEEHeaderVersion(n);
278#endif
279 if (Get4thFINESSENwords(n) > 0) {
280 int pos_nwords = GetOffset4thFINESSE(n) + SIZE_B2LHSLB_HEADER + SIZE_B2LFEE_HEADER;
281 return &(m_buffer[ pos_nwords ]);
282 }
283 return NULL;
284 }

◆ Get4thDetectorBuffer() [4/6]

int * Get4thDetectorBuffer ( int  n)
inlinevirtual

get Detector Buffer of slot D

Implements RawCOPPERFormat.

Definition at line 340 of file PreRawCOPPERFormat_v1.h.

341 {
342#ifdef USE_B2LFEE_FORMAT_BOTH_VER1_AND_2
343 CheckB2LFEEHeaderVersion(n);
344#endif
345 if (Get4thFINESSENwords(n) > 0) {
346 int pos_nwords = GetOffset4thFINESSE(n) + SIZE_B2LHSLB_HEADER + SIZE_B2LFEE_HEADER;
347 return &(m_buffer[ pos_nwords ]);
348 }
349 return NULL;
350 }

◆ Get4thDetectorBuffer() [5/6]

int * Get4thDetectorBuffer ( int  n)
inlinevirtual

get Detector Buffer of slot D

Implements RawCOPPERFormat.

Definition at line 340 of file PreRawCOPPERFormat_v2.h.

341 {
342#ifdef USE_B2LFEE_FORMAT_BOTH_VER1_AND_2
343 CheckB2LFEEHeaderVersion(n);
344#endif
345 if (Get4thFINESSENwords(n) > 0) {
346 int pos_nwords = GetOffset4thFINESSE(n) + SIZE_B2LHSLB_HEADER + SIZE_B2LFEE_HEADER;
347 return &(m_buffer[ pos_nwords ]);
348 }
349 return NULL;
350 }

◆ Get4thDetectorBuffer() [6/6]

int * Get4thDetectorBuffer ( int  n)
inlinevirtual

get Detector Buffer of slot D

Implements RawCOPPERFormat.

Definition at line 595 of file RawCOPPERFormat_v0.h.

596 {
597#ifdef USE_B2LFEE_FORMAT_BOTH_VER1_AND_2
598 CheckB2LFEEHeaderVersion(n);
599#endif
600 if (Get4thFINESSENwords(n) > 0) {
601 int pos_nwords = GetOffset4thFINESSE(n) + SIZE_B2LHSLB_HEADER + SIZE_B2LFEE_HEADER;
602 return &(m_buffer[ pos_nwords ]);
603 }
604 return NULL;
605 }

◆ Get4thDetectorNwords() [1/4]

int Get4thDetectorNwords ( int  n)
inline

get Detector buffer length of slot D

Definition at line 470 of file RawCOPPER.h.

471 {
474 }
virtual int Get4thDetectorNwords(int n)=0
get Detector buffer length of slot D

◆ Get4thDetectorNwords() [2/4]

int Get4thDetectorNwords ( int  n)
inlinevirtual

get Detector buffer length of slot D

Implements RawCOPPERFormat.

Definition at line 512 of file RawCOPPERFormat_v0.h.

513 {
514#ifdef USE_B2LFEE_FORMAT_BOTH_VER1_AND_2
515 CheckB2LFEEHeaderVersion(n);
516#endif
517 int nwords = 0;
518 if (Get4thFINESSENwords(n) > 0) {
519 nwords = Get4thFINESSENwords(n) - SIZE_B2LHSLB_HEADER -
520 SIZE_B2LFEE_HEADER - SIZE_B2LFEE_TRAILER - SIZE_B2LHSLB_TRAILER;
521 }
522 return nwords;
523 }

◆ Get4thDetectorNwords() [3/4]

int Get4thDetectorNwords ( int  n)
inlinevirtual

get Detector buffer length of slot D

Implements RawCOPPERFormat.

Definition at line 287 of file RawCOPPERFormat_v1.h.

288 {
289 return GetDetectorNwords(n, 3);
290 }

◆ Get4thDetectorNwords() [4/4]

int Get4thDetectorNwords ( int  n)
inlinevirtual

get Detector buffer length of slot D

Implements RawCOPPERFormat.

Definition at line 311 of file RawCOPPERFormat_v2.h.

312 {
313 return GetDetectorNwords(n, 3);
314 }

◆ Get4thFINESSEBuffer() [1/2]

int * Get4thFINESSEBuffer ( int  n)
inline

get FINESSE buffer pointer for slot D

Definition at line 542 of file RawCOPPER.h.

543 {
545 return m_access->Get4thFINESSEBuffer(n);
546 }
virtual int * Get4thFINESSEBuffer(int n)
get FINESSE buffer pointer for slot D

◆ Get4thFINESSEBuffer() [2/2]

int * Get4thFINESSEBuffer ( int  n)
inlinevirtual

get FINESSE buffer pointer for slot D

Definition at line 439 of file RawCOPPERFormat.h.

440 {
441 int pos_nwords = GetOffset4thFINESSE(n);
442 if (pos_nwords >= m_nwords) {
443 printf("[DEBUG] Data size(0x%.8x) is smaller than data position info(0x%.8x). Exiting...\n", m_nwords, pos_nwords);
444 for (int i = 0; i < m_nwords; i++) {
445 printf("%.8x ", m_buffer[ i ]);
446 if ((i % 10) == 9) printf("\n");
447 }
448 B2FATAL("Data size is smaller than data position info. Exiting...");
449 }
450 return &(m_buffer[ pos_nwords]);
451 }

◆ Get4thFINESSENwords() [1/4]

int Get4thFINESSENwords ( int  n)
inline

get data size of FINESSE slot D buffer

Definition at line 494 of file RawCOPPER.h.

495 {
497 return m_access->Get4thFINESSENwords(n);
498 }
virtual int Get4thFINESSENwords(int n)=0
get data size of FINESSE slot D buffer

◆ Get4thFINESSENwords() [2/4]

int Get4thFINESSENwords ( int  n)
inlinevirtual

get data size of FINESSE slot D buffer

Implements RawCOPPERFormat.

Definition at line 545 of file RawCOPPERFormat_v0.h.

546 {
547 int pos_nwords = GetBufferPos(n) + tmp_header.RAWHEADER_NWORDS + POS_CH_D_DATA_LENGTH;
548 return m_buffer[ pos_nwords ];
549 }

◆ Get4thFINESSENwords() [3/4]

int Get4thFINESSENwords ( int  n)
inlinevirtual

get data size of FINESSE slot D buffer

Implements RawCOPPERFormat.

Definition at line 309 of file RawCOPPERFormat_v1.h.

310 {
311 return GetFINESSENwords(n, 3);
312 }

◆ Get4thFINESSENwords() [4/4]

int Get4thFINESSENwords ( int  n)
inlinevirtual

get data size of FINESSE slot D buffer

Implements RawCOPPERFormat.

Definition at line 333 of file RawCOPPERFormat_v2.h.

334 {
335 return GetFINESSENwords(n, 3);
336 }

◆ GetB2LFEE32bitEventNumber()

unsigned int GetB2LFEE32bitEventNumber ( int  n)
inlinevirtual

get b2l block from "FEE b2link header"

Definition at line 687 of file RawCOPPER.h.

688 {
691 }
virtual unsigned int GetB2LFEE32bitEventNumber(int n)=0
get b2l block from "FEE b2link header"

◆ GetBuffer() [1/4]

int * GetBuffer ( )
inline

set buffer

Definition at line 93 of file RawTrailer_latest.h.

94 {
95 return m_buffer;
96 }

◆ GetBuffer() [2/4]

int * GetBuffer ( )
inline

set buffer

Definition at line 90 of file RawTrailer_v0.h.

91 {
92 return m_buffer;
93 }

◆ GetBuffer() [3/4]

int * GetBuffer ( )
inline

set buffer

Definition at line 93 of file RawTrailer_v1.h.

94 {
95 return m_buffer;
96 }

◆ GetBuffer() [4/4]

int * GetBuffer ( )
inline

set buffer

Definition at line 91 of file RawTrailer_v2.h.

92 {
93 return m_buffer;
94 }

◆ GetBufferPos()

int GetBufferPos ( int  n)
inlinevirtual

get posistion of COPPER block in unit of word

Reimplemented from RawDataBlock.

Definition at line 638 of file RawCOPPER.h.

639 {
641 return m_access->GetBufferPos(n);
642 }

◆ GetChksum() [1/4]

unsigned int GetChksum ( )
inline

Set # of trailer words.

Definition at line 126 of file RawTrailer_latest.h.

127 {
128 CheckBuffer();
129 return (unsigned int)(m_buffer[ POS_CHKSUM ]);
130 }
void CheckBuffer()
set buffer

◆ GetChksum() [2/4]

unsigned int GetChksum ( )
inline

Set # of trailer words.

Definition at line 123 of file RawTrailer_v0.h.

124 {
125 CheckBuffer();
126 return (unsigned int)(m_buffer[ POS_CHKSUM ]);
127 }

◆ GetChksum() [3/4]

unsigned int GetChksum ( )
inline

Set # of trailer words.

Definition at line 126 of file RawTrailer_v1.h.

127 {
128 CheckBuffer();
129 return (unsigned int)(m_buffer[ POS_CHKSUM ]);
130 }

◆ GetChksum() [4/4]

unsigned int GetChksum ( )
inline

Set # of trailer words.

Definition at line 124 of file RawTrailer_v2.h.

125 {
126 CheckBuffer();
127 return (unsigned int)(m_buffer[ POS_CHKSUM ]);
128 }

◆ GetCOPPERCounter() [1/8]

unsigned int GetCOPPERCounter ( int  n)
inlinevirtual

get COPPER counter(not event number)

Definition at line 446 of file RawCOPPER.h.

447 {
449 return m_access->GetCOPPERCounter(n);
450 }
virtual unsigned int GetCOPPERCounter(int n)=0
get COPPER counter(not event number)

◆ GetCOPPERCounter() [2/8]

unsigned int GetCOPPERCounter ( int  n)
inlinevirtual

get posistion of COPPER block in unit of word

get COPPER counter(not event number)

Implements RawCOPPERFormat.

Definition at line 225 of file PostRawCOPPERFormat_latest.h.

226 {
227 char err_buf[500];
228 sprintf(err_buf, "[FATAL] This data format does not have COPPER counter.(block %d) Exiting...\n %s %s %d\n",
229 n, __FILE__, __PRETTY_FUNCTION__, __LINE__);
230 printf("%s", err_buf);
231 std::string err_str = err_buf; throw (err_str);
232 return 0;
233 }

◆ GetCOPPERCounter() [3/8]

unsigned int GetCOPPERCounter ( int  n)
inlinevirtual

get posistion of COPPER block in unit of word

get COPPER counter(not event number)

Implements RawCOPPERFormat.

Definition at line 296 of file PostRawCOPPERFormat_v1.h.

297 {
298 char err_buf[500];
299 sprintf(err_buf, "This data format does not have COPPER counter.(block %d) Exiting...\n %s %s %d\n",
300 n, __FILE__, __PRETTY_FUNCTION__, __LINE__);
301 std::string err_str = err_buf; throw (err_str);
302 return 0;
303 }

◆ GetCOPPERCounter() [4/8]

unsigned int GetCOPPERCounter ( int  n)
inlinevirtual

get posistion of COPPER block in unit of word

get COPPER counter(not event number)

Implements RawCOPPERFormat.

Definition at line 305 of file PostRawCOPPERFormat_v2.h.

306 {
307 char err_buf[500];
308 sprintf(err_buf, "[FATAL] This data format does not have COPPER counter.(block %d) Exiting...\n %s %s %d\n",
309 n, __FILE__, __PRETTY_FUNCTION__, __LINE__);
310 printf("%s", err_buf);
311 std::string err_str = err_buf; throw (err_str);
312 return 0;
313 }

◆ GetCOPPERCounter() [5/8]

unsigned int GetCOPPERCounter ( int  n)
inlinevirtual

get posistion of COPPER block in unit of word

get COPPER counter(not event number)

Implements RawCOPPERFormat.

Definition at line 287 of file PreRawCOPPERFormat_latest.h.

288 {
289 char err_buf[500];
290 sprintf(err_buf, "[FATAL] This function is not supported. Exiting...: \n%s %s %d\n",
291 __FILE__, __PRETTY_FUNCTION__, __LINE__);
292 printf("[DEBUG] %s\n", err_buf);
293 B2FATAL(err_buf);
294 return 0;
295 }

◆ GetCOPPERCounter() [6/8]

unsigned int GetCOPPERCounter ( int  n)
inlinevirtual

get posistion of COPPER block in unit of word

get COPPER counter(not event number)

Implements RawCOPPERFormat.

Definition at line 399 of file PreRawCOPPERFormat_v1.h.

400 {
401 int pos_nwords = GetBufferPos(n) + POS_EVE_NUM_COPPER + tmp_header.RAWHEADER_NWORDS;
402 return (unsigned int)(m_buffer[ pos_nwords ]);
403 }

◆ GetCOPPERCounter() [7/8]

unsigned int GetCOPPERCounter ( int  n)
inlinevirtual

get posistion of COPPER block in unit of word

get COPPER counter(not event number)

Implements RawCOPPERFormat.

Definition at line 399 of file PreRawCOPPERFormat_v2.h.

400 {
401 int pos_nwords = GetBufferPos(n) + POS_EVE_NUM_COPPER + tmp_header.RAWHEADER_NWORDS;
402 return (unsigned int)(m_buffer[ pos_nwords ]);
403 }

◆ GetCOPPERCounter() [8/8]

unsigned int GetCOPPERCounter ( int  n)
inlinevirtual

get COPPER counter(not event number)

Implements RawCOPPERFormat.

Definition at line 464 of file RawCOPPERFormat_v0.h.

465 {
466 int pos_nwords = GetBufferPos(n) + POS_EVE_NUM_COPPER + tmp_header.RAWHEADER_NWORDS;
467 return (unsigned int)(m_buffer[ pos_nwords ]);
468 }

◆ GetDataType() [1/9]

int GetDataType ( )
inline

get contents of header

Definition at line 367 of file RawHeader_latest.h.

368 {
370 return (m_buffer[ POS_TRUNC_MASK_DATATYPE ] & 0x7FFFFFFF);
371 }

◆ GetDataType() [2/9]

int GetDataType ( )
inline

get contents of header

Definition at line 414 of file RawHeader_v0.h.

415 {
417 return (m_buffer[ POS_TRUNC_MASK_DATATYPE ] & 0x7FFFFFFF);
418 }

◆ GetDataType() [3/9]

int GetDataType ( )
inline

get contents of header

Definition at line 393 of file RawHeader_v1.h.

394 {
396 return (m_buffer[ POS_TRUNC_MASK_DATATYPE ] & 0x7FFFFFFF);
397 }

◆ GetDataType() [4/9]

int GetDataType ( )
inline

get contents of header

Definition at line 408 of file RawHeader_v2.h.

409 {
411 return (m_buffer[ POS_TRUNC_MASK_DATATYPE ] & 0x7FFFFFFF);
412 }

◆ GetDataType() [5/9]

int GetDataType ( int  n)
inline

get contents of header

Definition at line 404 of file RawCOPPER.h.

405 {
407 return m_access->GetDataType(n);
408 }
virtual int GetDataType(int n)=0
get contents of header

◆ GetDataType() [6/9]

int GetDataType ( int  n)
inlinevirtual

get contents of header

Implements RawCOPPERFormat.

Definition at line 326 of file RawCOPPERFormat_latest.h.

327 {
329 return tmp_header.GetDataType();
330 }
int GetDataType()
get contents of header

◆ GetDataType() [7/9]

int GetDataType ( int  n)
inlinevirtual

get contents of header

Implements RawCOPPERFormat.

Definition at line 439 of file RawCOPPERFormat_v0.h.

440 {
442 return tmp_header.GetDataType();
443 }

◆ GetDataType() [8/9]

int GetDataType ( int  n)
inlinevirtual

get contents of header

Implements RawCOPPERFormat.

Definition at line 247 of file RawCOPPERFormat_v1.h.

248 {
250 return tmp_header.GetDataType();
251 }

◆ GetDataType() [9/9]

int GetDataType ( int  n)
inlinevirtual

get contents of header

Implements RawCOPPERFormat.

Definition at line 258 of file RawCOPPERFormat_v2.h.

259 {
261 return tmp_header.GetDataType();
262 }

◆ GetDetectorBuffer() [1/3]

int * GetDetectorBuffer ( int  n,
int  finesse_num 
)
inline

get Detector buffer

Definition at line 681 of file RawCOPPER.h.

682 {
684 return m_access->GetDetectorBuffer(n, finesse_num);
685 }
virtual int * GetDetectorBuffer(int n, int finesse_num)
get Detector buffer

◆ GetDetectorBuffer() [2/3]

int * GetDetectorBuffer ( int  n,
int  finesse_num 
)
inlinevirtual

Get a pointer to detector buffer.

Reimplemented from RawCOPPERFormat.

Definition at line 289 of file PostRawCOPPERFormat_latest.h.

290 {
291 if (GetFINESSENwords(n, finesse_num) > 0) {
292 return (GetFINESSEBuffer(n, finesse_num) + SIZE_B2LHSLB_HEADER + SIZE_B2LFEE_HEADER);
293 }
294 return NULL;
295 }

◆ GetDetectorBuffer() [3/3]

int * GetDetectorBuffer ( int  n,
int  finesse_num 
)
inlinevirtual

Get a pointer to detector buffer.

Reimplemented from RawCOPPERFormat.

Definition at line 303 of file PreRawCOPPERFormat_latest.h.

304 {
305 if (GetFINESSENwords(n, finesse_num) > 0) {
306 return (GetFINESSEBuffer(n, finesse_num) + SIZE_B2LHSLB_HEADER + SIZE_B2LFEE_HEADER);
307 }
308 return NULL;
309 }

◆ GetDetectorNwords() [1/3]

int GetDetectorNwords ( int  n,
int  finesse_num 
)
inline

get Detector buffer length

Definition at line 657 of file RawCOPPER.h.

658 {
660 return m_access->GetDetectorNwords(n, finesse_num);
661 }

◆ GetDetectorNwords() [2/3]

int GetDetectorNwords ( int  n,
int  finesse_num 
)
inlinevirtual

get Detector buffer length

Implements RawCOPPERFormat.

Definition at line 298 of file PostRawCOPPERFormat_latest.h.

299 {
300 int nwords = 0;
301 if (GetFINESSENwords(n, finesse_num) > 0) {
302 nwords = GetFINESSENwords(n, finesse_num)
303 - (static_cast<int>(SIZE_B2LHSLB_HEADER) + SIZE_B2LHSLB_TRAILER + SIZE_B2LFEE_HEADER + SIZE_B2LFEE_TRAILER);
304 }
305 return nwords;
306 }

◆ GetDetectorNwords() [3/3]

int GetDetectorNwords ( int  n,
int  finesse_num 
)
inlinevirtual

get Detector buffer length

Implements RawCOPPERFormat.

Definition at line 311 of file PreRawCOPPERFormat_latest.h.

312 {
313 int nwords = 0;
314 if (GetFINESSENwords(n, finesse_num) > 0) {
315 nwords = GetFINESSENwords(n, finesse_num)
316 - (static_cast<int>(SIZE_B2LHSLB_HEADER) + SIZE_B2LHSLB_TRAILER + SIZE_B2LFEE_HEADER + SIZE_B2LFEE_TRAILER);
317 }
318 return nwords;
319 }

◆ GetDriverChkSum() [1/8]

unsigned int GetDriverChkSum ( int  n)
inline

read COPPER driver's checksum value

Definition at line 359 of file RawCOPPER.h.

360 {
362 return m_access->GetDriverChkSum(n);
363 }
virtual unsigned int GetDriverChkSum(int n)=0
read COPPER driver's checksum value

◆ GetDriverChkSum() [2/8]

unsigned int GetDriverChkSum ( int  n)
inlinevirtual

read COPPER driver's checksum value

Implements RawCOPPERFormat.

Definition at line 217 of file PostRawCOPPERFormat_latest.h.

218 {
219 int pos_nwords = GetBufferPos(n) + GetBlockNwords(n)
220 - tmp_trailer.RAWTRAILER_NWORDS - SIZE_COPPER_DRIVER_TRAILER;
221 return m_buffer[ pos_nwords ];
222 }
RawTrailer_latest tmp_trailer
trailer ( not recorded )
virtual int GetBlockNwords(int n)
get size of a data block

◆ GetDriverChkSum() [3/8]

unsigned int GetDriverChkSum ( int  n)
inlinevirtual

read COPPER driver's checksum value

Implements RawCOPPERFormat.

Definition at line 288 of file PostRawCOPPERFormat_v1.h.

289 {
290 int pos_nwords = GetBufferPos(n) + GetBlockNwords(n)
291 - tmp_trailer.RAWTRAILER_NWORDS - SIZE_COPPER_DRIVER_TRAILER;
292 return m_buffer[ pos_nwords ];
293 }
RawTrailer_v1 tmp_trailer
trailer ( not recorded )

◆ GetDriverChkSum() [4/8]

unsigned int GetDriverChkSum ( int  n)
inlinevirtual

read COPPER driver's checksum value

Implements RawCOPPERFormat.

Definition at line 297 of file PostRawCOPPERFormat_v2.h.

298 {
299 int pos_nwords = GetBufferPos(n) + GetBlockNwords(n)
300 - tmp_trailer.RAWTRAILER_NWORDS - SIZE_COPPER_DRIVER_TRAILER;
301 return m_buffer[ pos_nwords ];
302 }
RawTrailer_v2 tmp_trailer
trailer ( not recorded )

◆ GetDriverChkSum() [5/8]

unsigned int GetDriverChkSum ( int  n)
inlinevirtual

read COPPER driver's checksum value

Implements RawCOPPERFormat.

Definition at line 279 of file PreRawCOPPERFormat_latest.h.

280 {
281 int pos_nwords = GetBufferPos(n) + GetBlockNwords(n)
282 - tmp_trailer.RAWTRAILER_NWORDS - SIZE_COPPER_DRIVER_TRAILER;
283 return m_buffer[ pos_nwords ];
284 }

◆ GetDriverChkSum() [6/8]

unsigned int GetDriverChkSum ( int  n)
inlinevirtual

read COPPER driver's checksum value

Implements RawCOPPERFormat.

Definition at line 391 of file PreRawCOPPERFormat_v1.h.

392 {
393 int pos_nwords = GetBufferPos(n) + GetBlockNwords(n)
394 - tmp_trailer.RAWTRAILER_NWORDS - SIZE_COPPER_DRIVER_TRAILER;
395 return m_buffer[ pos_nwords ];
396 }

◆ GetDriverChkSum() [7/8]

unsigned int GetDriverChkSum ( int  n)
inlinevirtual

read COPPER driver's checksum value

Implements RawCOPPERFormat.

Definition at line 391 of file PreRawCOPPERFormat_v2.h.

392 {
393 int pos_nwords = GetBufferPos(n) + GetBlockNwords(n)
394 - tmp_trailer.RAWTRAILER_NWORDS - SIZE_COPPER_DRIVER_TRAILER;
395 return m_buffer[ pos_nwords ];
396 }

◆ GetDriverChkSum() [8/8]

unsigned int GetDriverChkSum ( int  n)
inlinevirtual

read COPPER driver's checksum value

Implements RawCOPPERFormat.

Definition at line 393 of file RawCOPPERFormat_v0.h.

394 {
395 int pos_nwords = GetBufferPos(n) + GetBlockNwords(n)
396 - tmp_trailer.RAWTRAILER_NWORDS - SIZE_COPPER_DRIVER_TRAILER;
397 return m_buffer[ pos_nwords ];
398 }
RawTrailer_v0 tmp_trailer
trailer ( not recorded )

◆ GetErrorBitFlag() [1/9]

unsigned int GetErrorBitFlag ( )
inline

get contents of header

Get Detected Error bitflag

Definition at line 379 of file RawHeader_latest.h.

380 {
382 return (unsigned int)(m_buffer[ POS_TRUNC_MASK_DATATYPE ]);
383 }

◆ GetErrorBitFlag() [2/9]

unsigned int GetErrorBitFlag ( )
inline

get contents of header

Get Detected Error bitflag

Definition at line 426 of file RawHeader_v0.h.

427 {
429 return (unsigned int)(m_buffer[ POS_TRUNC_MASK_DATATYPE ]);
430 }

◆ GetErrorBitFlag() [3/9]

unsigned int GetErrorBitFlag ( )
inline

get contents of header

Get Detected Error bitflag

Definition at line 405 of file RawHeader_v1.h.

406 {
408 return (unsigned int)(m_buffer[ POS_TRUNC_MASK_DATATYPE ]);
409 }

◆ GetErrorBitFlag() [4/9]

unsigned int GetErrorBitFlag ( )
inline

get contents of header

Get Detected Error bitflag

Definition at line 420 of file RawHeader_v2.h.

421 {
423 return (unsigned int)(m_buffer[ POS_TRUNC_MASK_DATATYPE ]);
424 }

◆ GetErrorBitFlag() [5/9]

unsigned int GetErrorBitFlag ( int  n)
inline

get contents of header

Get Detected Error bitflag

Definition at line 416 of file RawCOPPER.h.

417 {
419 return m_access->GetErrorBitFlag(n);
420 }
virtual unsigned int GetErrorBitFlag(int n)=0
get contents of header

◆ GetErrorBitFlag() [6/9]

unsigned int GetErrorBitFlag ( int  n)
inlinevirtual

get contents of header

Get Detected Error bitflag

Implements RawCOPPERFormat.

Definition at line 338 of file RawCOPPERFormat_latest.h.

339 {
342 }
unsigned int GetErrorBitFlag()
get contents of header

◆ GetErrorBitFlag() [7/9]

unsigned int GetErrorBitFlag ( int  n)
inlinevirtual

get contents of header

Get Detected Error bitflag

Implements RawCOPPERFormat.

Definition at line 451 of file RawCOPPERFormat_v0.h.

452 {
455 }

◆ GetErrorBitFlag() [8/9]

unsigned int GetErrorBitFlag ( int  n)
inlinevirtual

get contents of header

Get Detected Error bitflag

Implements RawCOPPERFormat.

Definition at line 259 of file RawCOPPERFormat_v1.h.

260 {
263 }

◆ GetErrorBitFlag() [9/9]

unsigned int GetErrorBitFlag ( int  n)
inlinevirtual

get contents of header

Get Detected Error bitflag

Implements RawCOPPERFormat.

Definition at line 270 of file RawCOPPERFormat_v2.h.

271 {
274 }

◆ GetEveNo() [1/9]

unsigned int GetEveNo ( )
inline

get restart #(8bit)

Definition at line 355 of file RawHeader_latest.h.

356 {
358 return m_buffer[ POS_EVE_NO ];
359 }

◆ GetEveNo() [2/9]

unsigned int GetEveNo ( )
inline

get restart #(8bit)

Definition at line 402 of file RawHeader_v0.h.

403 {
405 return m_buffer[ POS_EVE_NO ];
406 }

◆ GetEveNo() [3/9]

unsigned int GetEveNo ( )
inline

get restart #(8bit)

Definition at line 381 of file RawHeader_v1.h.

382 {
384 return m_buffer[ POS_EVE_NO ];
385 }

◆ GetEveNo() [4/9]

unsigned int GetEveNo ( )
inline

get restart #(8bit)

Definition at line 396 of file RawHeader_v2.h.

397 {
399 return m_buffer[ POS_EVE_NO ];
400 }

◆ GetEveNo() [5/9]

unsigned int GetEveNo ( int  n)
inline

get subrun #(8bit)

Definition at line 390 of file RawCOPPER.h.

391 {
393 return m_access->GetEveNo(n);
394 }
virtual unsigned int GetEveNo(int n)=0
get subrun #(8bit)

◆ GetEveNo() [6/9]

unsigned int GetEveNo ( int  n)
inlinevirtual

get subrun #(8bit)

Implements RawCOPPERFormat.

Definition at line 312 of file RawCOPPERFormat_latest.h.

313 {
315 return tmp_header.GetEveNo();
316 }
unsigned int GetEveNo()
get restart #(8bit)

◆ GetEveNo() [7/9]

unsigned int GetEveNo ( int  n)
inlinevirtual

get subrun #(8bit)

Implements RawCOPPERFormat.

Definition at line 425 of file RawCOPPERFormat_v0.h.

426 {
428 return tmp_header.GetEveNo();
429 }

◆ GetEveNo() [8/9]

unsigned int GetEveNo ( int  n)
inlinevirtual

get subrun #(8bit)

Implements RawCOPPERFormat.

Definition at line 233 of file RawCOPPERFormat_v1.h.

234 {
236 return tmp_header.GetEveNo();
237 }

◆ GetEveNo() [9/9]

unsigned int GetEveNo ( int  n)
inlinevirtual

get subrun #(8bit)

Implements RawCOPPERFormat.

Definition at line 244 of file RawCOPPERFormat_v2.h.

245 {
247 return tmp_header.GetEveNo();
248 }

◆ GetEventCRC16Value() [1/3]

int GetEventCRC16Value ( int  n,
int  finesse_num 
)
inline

Get Event CRC16 value.

Definition at line 440 of file RawCOPPER.h.

441 {
443 return m_access->GetEventCRC16Value(n, finesse_num);
444 }
virtual int GetEventCRC16Value(int n, int finesse_num)
Get Event CRC16 value.

◆ GetEventCRC16Value() [2/3]

int GetEventCRC16Value ( int  n,
int  finesse_num 
)
inlinevirtual

Get CRC16 value for an event.

Reimplemented from RawCOPPERFormat.

Definition at line 278 of file PostRawCOPPERFormat_latest.h.

279 {
280 int fin_nwords = GetFINESSENwords(n, finesse_num);
281 if (fin_nwords > 0) {
282 int* buf = GetFINESSEBuffer(n, finesse_num) + fin_nwords
283 - ((SIZE_B2LFEE_TRAILER - POS_B2LFEE_ERRCNT_CRC16) + SIZE_B2LHSLB_TRAILER) ;
284 return (int)(*buf & 0xffff);
285 }
286 return -1;
287 }

◆ GetEventCRC16Value() [3/3]

int GetEventCRC16Value ( int  n,
int  finesse_num 
)
inlinevirtual

Get CRC16 value for an event.

Reimplemented from RawCOPPERFormat.

Definition at line 358 of file PostRawCOPPERFormat_v2.h.

359 {
360 int fin_nwords = GetFINESSENwords(n, finesse_num);
361 if (fin_nwords > 0) {
362 int* buf = GetFINESSEBuffer(n, finesse_num) + fin_nwords
363 - ((SIZE_B2LFEE_TRAILER - POS_B2LFEE_ERRCNT_CRC16) + SIZE_B2LHSLB_TRAILER) ;
364 return (int)(*buf & 0xffff);
365 }
366 return -1;
367 }
int GetFINESSENwords(int n, int finesse) OVERRIDE_CPP17
get data size of FINESSE buffer
virtual int * GetFINESSEBuffer(int n, int finesse_num)
get FINESSE buffer pointer

◆ GetEventCRCError() [1/5]

int GetEventCRCError ( )
inline

Get Detected Error bitflag.

Definition at line 402 of file RawHeader_latest.h.

403 {
405 unsigned int temp_err_flag = GetErrorBitFlag();
406 if ((temp_err_flag & B2LINK_EVENT_CRC_ERROR) == 0) {
407 return 0;
408 }
409 return 1;
410 }

◆ GetEventCRCError() [2/5]

int GetEventCRCError ( )
inline

Get Detected Error bitflag.

Definition at line 443 of file RawHeader_v2.h.

444 {
446 unsigned int temp_err_flag = GetErrorBitFlag();
447 if ((temp_err_flag & B2LINK_EVENT_CRC_ERROR) == 0) {
448 return 0;
449 }
450 return 1;
451 }

◆ GetEventCRCError() [3/5]

int GetEventCRCError ( int  n)
inline

check CRC event Error

Definition at line 434 of file RawCOPPER.h.

435 {
437 return m_access->GetEventCRCError(n);
438 }
virtual int GetEventCRCError(int n)
check CRC event Error

◆ GetEventCRCError() [4/5]

int GetEventCRCError ( int  n)
inlinevirtual

check CRC event Error

Reimplemented from RawCOPPERFormat.

Definition at line 357 of file RawCOPPERFormat_latest.h.

358 {
361 }
int GetEventCRCError()
Get Detected Error bitflag.

◆ GetEventCRCError() [5/5]

int GetEventCRCError ( int  n)
inlinevirtual

check CRC event Error

Reimplemented from RawCOPPERFormat.

Definition at line 289 of file RawCOPPERFormat_v2.h.

290 {
293 }

◆ GetExpNo() [1/12]

int GetExpNo ( )
inline

get a run/exp number combined word

Definition at line 327 of file RawHeader_latest.h.

328 {
330 return (((unsigned int)(m_buffer[ POS_EXP_RUN_NO ]) & EXP_MASK)
331 >> EXP_SHIFT);
332 }

◆ GetExpNo() [2/12]

int GetExpNo ( )
inline

get a run/exp number combined word

Definition at line 374 of file RawHeader_v0.h.

375 {
377 return (((unsigned int)(m_buffer[ POS_EXP_RUN_NO ]) & EXP_MASK)
378 >> EXP_SHIFT);
379 }

◆ GetExpNo() [3/12]

int GetExpNo ( )
inline

get a run/exp number combined word

Definition at line 354 of file RawHeader_v1.h.

355 {
357 return (((unsigned int)(m_buffer[ POS_EXP_RUN_NO ]) & EXP_MASK)
358 >> EXP_SHIFT);
359 }

◆ GetExpNo() [4/12]

int GetExpNo ( )
inline

get a run/exp number combined word

Definition at line 368 of file RawHeader_v2.h.

369 {
371 return (((unsigned int)(m_buffer[ POS_EXP_RUN_NO ]) & EXP_MASK)
372 >> EXP_SHIFT);
373 }

◆ GetExpNo() [5/12]

int GetExpNo ( int  n)
inline

get Experimental # from header

Definition at line 365 of file RawCOPPER.h.

366 {
368 return m_access->GetExpNo(n);
369 }
virtual int GetExpNo(int n)=0
get Experimental # from header

◆ GetExpNo() [6/12]

int GetExpNo ( int  n)
inlinevirtual

get Experimental # from header

Implements RawCOPPERFormat.

Definition at line 285 of file RawCOPPERFormat_latest.h.

286 {
288 return tmp_header.GetExpNo();
289 }
int GetExpNo()
get a run/exp number combined word

◆ GetExpNo() [7/12]

int GetExpNo ( int  n)
inlinevirtual

get Experimental # from header

Implements RawCOPPERFormat.

Definition at line 400 of file RawCOPPERFormat_v0.h.

401 {
403 return tmp_header.GetExpNo();
404 }

◆ GetExpNo() [8/12]

int GetExpNo ( int  n)
inlinevirtual

get Experimental # from header

Implements RawCOPPERFormat.

Definition at line 208 of file RawCOPPERFormat_v1.h.

209 {
211 return tmp_header.GetExpNo();
212 }

◆ GetExpNo() [9/12]

int GetExpNo ( int  n)
inlinevirtual

get Experimental # from header

Implements RawCOPPERFormat.

Definition at line 217 of file RawCOPPERFormat_v2.h.

218 {
220 return tmp_header.GetExpNo();
221 }

◆ GetExpNo() [10/12]

int GetExpNo ( int  n)
inlinevirtual

Get Exp #.

Implements RawFTSWFormat.

Definition at line 217 of file RawFTSWFormat_latest.h.

218 {
219 return (((unsigned int)(m_buffer[ GetBufferPos(n) + POS_EXP_RUN_NO ]) & EXP_MASK)
220 >> EXP_SHIFT);
221 }

◆ GetExpNo() [11/12]

int GetExpNo ( int  n)
inlinevirtual

Get Exp #.

Implements RawFTSWFormat.

Definition at line 177 of file RawFTSWFormat_v1.h.

178 {
179 return (((unsigned int)(m_buffer[ GetBufferPos(n) + POS_EXP_RUN_NO ]) & EXP_MASK)
180 >> EXP_SHIFT);
181 }

◆ GetExpNo() [12/12]

int GetExpNo ( int  n)
inlinevirtual

Get Exp #.

Implements RawFTSWFormat.

Definition at line 214 of file RawFTSWFormat_v2.h.

215 {
216 return (((unsigned int)(m_buffer[ GetBufferPos(n) + POS_EXP_RUN_NO ]) & EXP_MASK)
217 >> EXP_SHIFT);
218 }

◆ GetExpRunSubrun() [1/12]

unsigned int GetExpRunSubrun ( )
inline

get contents of header

Definition at line 348 of file RawHeader_latest.h.

349 {
351 return ((unsigned int)(m_buffer[ POS_EXP_RUN_NO ]));
352 }

◆ GetExpRunSubrun() [2/12]

unsigned int GetExpRunSubrun ( )
inline

get contents of header

Definition at line 395 of file RawHeader_v0.h.

396 {
398 return ((unsigned int)(m_buffer[ POS_EXP_RUN_NO ]));
399 }

◆ GetExpRunSubrun() [3/12]

unsigned int GetExpRunSubrun ( )
inline

get contents of header

Definition at line 374 of file RawHeader_v1.h.

375 {
377 return ((unsigned int)(m_buffer[ POS_EXP_RUN_NO ]));
378 }

◆ GetExpRunSubrun() [4/12]

unsigned int GetExpRunSubrun ( )
inline

get contents of header

Definition at line 389 of file RawHeader_v2.h.

390 {
392 return ((unsigned int)(m_buffer[ POS_EXP_RUN_NO ]));
393 }

◆ GetExpRunSubrun() [5/12]

unsigned int GetExpRunSubrun ( int  n)
inline

get Experimental # from header

Definition at line 371 of file RawCOPPER.h.

372 {
374 return m_access->GetExpRunSubrun(n);
375 }
virtual unsigned int GetExpRunSubrun(int n)=0
get Experimental # from header

◆ GetExpRunSubrun() [6/12]

unsigned int GetExpRunSubrun ( int  n)
inlinevirtual

get Experimental # from header

Implements RawCOPPERFormat.

Definition at line 292 of file RawCOPPERFormat_latest.h.

293 {
296 }
unsigned int GetExpRunSubrun()
get contents of header

◆ GetExpRunSubrun() [7/12]

unsigned int GetExpRunSubrun ( int  n)
inlinevirtual

get Experimental # from header

Implements RawCOPPERFormat.

Definition at line 406 of file RawCOPPERFormat_v0.h.

407 {
410 }

◆ GetExpRunSubrun() [8/12]

unsigned int GetExpRunSubrun ( int  n)
inlinevirtual

get Experimental # from header

Implements RawCOPPERFormat.

Definition at line 214 of file RawCOPPERFormat_v1.h.

215 {
218 }

◆ GetExpRunSubrun() [9/12]

unsigned int GetExpRunSubrun ( int  n)
inlinevirtual

get Experimental # from header

Implements RawCOPPERFormat.

Definition at line 224 of file RawCOPPERFormat_v2.h.

225 {
228 }

◆ GetExpRunSubrun() [10/12]

unsigned int GetExpRunSubrun ( int  n)
inlinevirtual

Exp# (10bit) run# (14bit) restart # (8bit)

Implements RawFTSWFormat.

Definition at line 193 of file RawFTSWFormat_latest.h.

194 {
195 return (unsigned int)(m_buffer[ GetBufferPos(n) + POS_EXP_RUN_NO ]);
196
197 }

◆ GetExpRunSubrun() [11/12]

unsigned int GetExpRunSubrun ( int  n)
inlinevirtual

Exp# (10bit) run# (14bit) restart # (8bit)

Implements RawFTSWFormat.

Definition at line 153 of file RawFTSWFormat_v1.h.

154 {
155 return (unsigned int)(m_buffer[ GetBufferPos(n) + POS_EXP_RUN_NO ]);
156
157 }

◆ GetExpRunSubrun() [12/12]

unsigned int GetExpRunSubrun ( int  n)
inlinevirtual

Exp# (10bit) run# (14bit) restart # (8bit)

Implements RawFTSWFormat.

Definition at line 190 of file RawFTSWFormat_v2.h.

191 {
192 return (unsigned int)(m_buffer[ GetBufferPos(n) + POS_EXP_RUN_NO ]);
193
194 }

◆ GetExpRunSubrunBuf() [1/8]

int * GetExpRunSubrunBuf ( int  n)
inlinevirtual

get b2l block from "FEE b2link header"

get b2l block from "FEE b2link header"

Definition at line 572 of file RawCOPPER.h.

573 {
575 return m_access->GetExpRunSubrunBuf(n);
576 }
virtual int * GetExpRunSubrunBuf(int n)=0
get b2l block from "FEE b2link header"

◆ GetExpRunSubrunBuf() [2/8]

int * GetExpRunSubrunBuf ( int  n)
inlinevirtual

get b2l block from "FEE b2link header"

get b2l block from "FEE b2link header"

Implements RawCOPPERFormat.

Definition at line 206 of file PostRawCOPPERFormat_latest.h.

207 {
208 int pos_nwords = GetBufferPos(n) + tmp_header.POS_EXP_RUN_NO;
209 return &(m_buffer[ pos_nwords ]);
210 /* #ifdef USE_B2LFEE_FORMAT_BOTH_VER1_AND_2 */
211 /* CheckB2LFEEHeaderVersion(n); */
212 /* #endif */
213 /* int pos_nwords = GetOffset1stFINESSE(n) + SIZE_B2LHSLB_HEADER + POS_EXP_RUN; */
214 /* return &(m_buffer[ pos_nwords ]); */
215 }

◆ GetExpRunSubrunBuf() [3/8]

int * GetExpRunSubrunBuf ( int  n)
inlinevirtual

get b2l block from "FEE b2link header"

get b2l block from "FEE b2link header"

Implements RawCOPPERFormat.

Definition at line 277 of file PostRawCOPPERFormat_v1.h.

278 {
279 int pos_nwords = GetBufferPos(n) + tmp_header.POS_EXP_RUN_NO;
280 return &(m_buffer[ pos_nwords ]);
281 /* #ifdef USE_B2LFEE_FORMAT_BOTH_VER1_AND_2 */
282 /* CheckB2LFEEHeaderVersion(n); */
283 /* #endif */
284 /* int pos_nwords = GetOffset1stFINESSE(n) + SIZE_B2LHSLB_HEADER + POS_EXP_RUN; */
285 /* return &(m_buffer[ pos_nwords ]); */
286 }

◆ GetExpRunSubrunBuf() [4/8]

int * GetExpRunSubrunBuf ( int  n)
inlinevirtual

get b2l block from "FEE b2link header"

get b2l block from "FEE b2link header"

Implements RawCOPPERFormat.

Definition at line 286 of file PostRawCOPPERFormat_v2.h.

287 {
288 int pos_nwords = GetBufferPos(n) + tmp_header.POS_EXP_RUN_NO;
289 return &(m_buffer[ pos_nwords ]);
290 /* #ifdef USE_B2LFEE_FORMAT_BOTH_VER1_AND_2 */
291 /* CheckB2LFEEHeaderVersion(n); */
292 /* #endif */
293 /* int pos_nwords = GetOffset1stFINESSE(n) + SIZE_B2LHSLB_HEADER + POS_EXP_RUN; */
294 /* return &(m_buffer[ pos_nwords ]); */
295 }

◆ GetExpRunSubrunBuf() [5/8]

int * GetExpRunSubrunBuf ( int  n)
inlinevirtual

get b2l block from "FEE b2link header"

get b2l block from "FEE b2link header"

Implements RawCOPPERFormat.

Definition at line 232 of file PreRawCOPPERFormat_latest.h.

233 {
234#ifdef USE_B2LFEE_FORMAT_BOTH_VER1_AND_2
235 CheckB2LFEEHeaderVersion(n);
236#endif
237 int pos_nwords = GetOffset1stFINESSE(n) + SIZE_B2LHSLB_HEADER + POS_EXP_RUN;
238 return &(m_buffer[ pos_nwords ]);
239 }
int GetOffset1stFINESSE(int n) OVERRIDE_CPP17 FINAL_CPP17
get # of offset words for FINESSE slot A buffer position

◆ GetExpRunSubrunBuf() [6/8]

int * GetExpRunSubrunBuf ( int  n)
inlinevirtual

get b2l block from "FEE b2link header"

get b2l block from "FEE b2link header"

Implements RawCOPPERFormat.

Definition at line 352 of file PreRawCOPPERFormat_v1.h.

353 {
354#ifdef USE_B2LFEE_FORMAT_BOTH_VER1_AND_2
355 CheckB2LFEEHeaderVersion(n);
356#endif
357 int pos_nwords = GetOffset1stFINESSE(n) + SIZE_B2LHSLB_HEADER + POS_EXP_RUN;
358 return &(m_buffer[ pos_nwords ]);
359 }

◆ GetExpRunSubrunBuf() [7/8]

int * GetExpRunSubrunBuf ( int  n)
inlinevirtual

get b2l block from "FEE b2link header"

get b2l block from "FEE b2link header"

Implements RawCOPPERFormat.

Definition at line 352 of file PreRawCOPPERFormat_v2.h.

353 {
354#ifdef USE_B2LFEE_FORMAT_BOTH_VER1_AND_2
355 CheckB2LFEEHeaderVersion(n);
356#endif
357 int pos_nwords = GetOffset1stFINESSE(n) + SIZE_B2LHSLB_HEADER + POS_EXP_RUN;
358 return &(m_buffer[ pos_nwords ]);
359 }

◆ GetExpRunSubrunBuf() [8/8]

int * GetExpRunSubrunBuf ( int  n)
inlinevirtual

get b2l block from "FEE b2link header"

get b2l block from "FEE b2link header"

Implements RawCOPPERFormat.

Definition at line 607 of file RawCOPPERFormat_v0.h.

608 {
609#ifdef USE_B2LFEE_FORMAT_BOTH_VER1_AND_2
610 CheckB2LFEEHeaderVersion(n);
611#endif
612 int pos_nwords = GetOffset1stFINESSE(n) + SIZE_B2LHSLB_HEADER + POS_EXP_RUN;
613 return &(m_buffer[ pos_nwords ]);
614 }

◆ GetFINESSEBuffer() [1/2]

int * GetFINESSEBuffer ( int  n,
int  finesse_num 
)
inline

get FINESSE buffer pointer

Definition at line 675 of file RawCOPPER.h.

676 {
678 return m_access->GetFINESSEBuffer(n, finesse_num);
679 }

◆ GetFINESSEBuffer() [2/2]

int * GetFINESSEBuffer ( int  n,
int  finesse_num 
)
inlinevirtual

Get a pointer to a FINESSE buffer.

Reimplemented from RawCOPPERFormat.

Definition at line 433 of file RawCOPPERFormat_latest.h.

434 {
435 if (finesse_num >= MAX_PCIE40_CH || finesse_num < 0) {
436 char err_buf[500];
437 sprintf(err_buf, "[FATAL] Invalid finesse # : %s %s %d\n",
438 __FILE__, __PRETTY_FUNCTION__, __LINE__);
439 printf("[DEBUG] %s\n", err_buf);
440 B2FATAL(err_buf);
441 return NULL;
442 }
443
444 if (GetFINESSENwords(n, finesse_num) > 0) {
445 int cur_pos = GetBufferPos(n)
446 + m_buffer[ GetBufferPos(n) + (tmp_header.POS_CH_POS_TABLE + finesse_num) ];
447
448 if (m_nwords <= 0 || cur_pos >= m_nwords) {
449 char err_buf[500];
450 sprintf(err_buf, "[FATAL] The position of the buffer( block %d, ch %d) is out of bounds (m_nwords = %d) : %s %s %d\n",
451 n, finesse_num, m_nwords,
452 __FILE__, __PRETTY_FUNCTION__, __LINE__);
453 printf("[DEBUG] %s\n", err_buf);
454 B2FATAL(err_buf);
455 return NULL;
456 }
457 return (m_buffer + cur_pos);
458 }
459 return NULL;
460 }

◆ GetFINESSENwords() [1/2]

int GetFINESSENwords ( int  n,
int  finesse 
)
inline

get data size of FINESSE buffer

Definition at line 663 of file RawCOPPER.h.

664 {
666 return m_access->GetFINESSENwords(n, finesse_num);
667 }

◆ GetFINESSENwords() [2/2]

int GetFINESSENwords ( int  n,
int  finesse_num 
)
inlinevirtual

Get the size of a finesse buffer.

Implements RawCOPPERFormat.

Definition at line 399 of file RawCOPPERFormat_latest.h.

400 {
401
402 // check if finesse_num is in a range
403 if (finesse_num < 0 || finesse_num >= MAX_PCIE40_CH) {
404 char err_buf[500];
405 sprintf(err_buf, "[FATAL] Invalid finesse # (=%d): %s %s %d\n", finesse_num,
406 __FILE__, __PRETTY_FUNCTION__, __LINE__);
407 printf("[DEBUG] %s\n", err_buf);
408 B2FATAL(err_buf);
409 return 0;
410 }
411
412 int pos_nwords = GetBufferPos(n) + (tmp_header.POS_CH_POS_TABLE + finesse_num);
413 int nwords = 0;
414
415 if (finesse_num == (MAX_PCIE40_CH - 1)) {
416 nwords = GetBlockNwords(n) - tmp_trailer.GetTrlNwords() - m_buffer[ pos_nwords ];
417 } else {
418 nwords = m_buffer[ pos_nwords + 1 ] - m_buffer[ pos_nwords ];
419 }
420
421 if (nwords < 0 || nwords > 1e6) {
422 char err_buf[500];
423 sprintf(err_buf, "[FATAL] ERROR_EVENT : # of words is strange. %d (ch=%d) : eve 0x%x exp %d run %d sub %d\n %s %s %d\n",
424 nwords, finesse_num,
425 GetEveNo(n), GetExpNo(n), GetRunNo(n), GetSubRunNo(n),
426 __FILE__, __PRETTY_FUNCTION__, __LINE__);
427 printf("[DEBUG] %s\n", err_buf);
428 B2FATAL(err_buf);
429 }
430 return nwords;
431 }
unsigned int GetEveNo(int n) OVERRIDE_CPP17
get subrun #(8bit)
int GetTrlNwords()
Set magic word.
int GetExpNo(int n) OVERRIDE_CPP17
get Experimental # from header
int GetRunNo(int n) OVERRIDE_CPP17
Exp# (10bit) run# (14bit) restart # (8bit)
int GetSubRunNo(int n) OVERRIDE_CPP17
get run # (14bit)

◆ GetHdrNwords() [1/4]

int GetHdrNwords ( )
inline

get contents of header

Definition at line 319 of file RawHeader_latest.h.

320 {
321
322 // CheckGetBuffer();
323 // return m_buffer[ POS_HDR_NWORDS ];
324 return RAWHEADER_NWORDS;
325 }

◆ GetHdrNwords() [2/4]

int GetHdrNwords ( )
inline

get contents of header

Definition at line 366 of file RawHeader_v0.h.

367 {
368
370
371 return m_buffer[ POS_HDR_NWORDS ];
372 }

◆ GetHdrNwords() [3/4]

int GetHdrNwords ( )
inline

get contents of header

Definition at line 346 of file RawHeader_v1.h.

347 {
348
349 // CheckGetBuffer();
350 // return m_buffer[ POS_HDR_NWORDS ];
351 return RAWHEADER_NWORDS;
352 }

◆ GetHdrNwords() [4/4]

int GetHdrNwords ( )
inline

get contents of header

Definition at line 360 of file RawHeader_v2.h.

361 {
362
363 // CheckGetBuffer();
364 // return m_buffer[ POS_HDR_NWORDS ];
365 return RAWHEADER_NWORDS;
366 }

◆ GetMagicDriverHeader() [1/8]

unsigned int GetMagicDriverHeader ( int  n)
inline

get magic word of COPPER driver header

Definition at line 578 of file RawCOPPER.h.

579 {
582 }
virtual unsigned int GetMagicDriverHeader(int n)=0
get magic word of COPPER driver header

◆ GetMagicDriverHeader() [2/8]

unsigned int GetMagicDriverHeader ( int  n)
inlinevirtual

get magic word of COPPER driver header

Implements RawCOPPERFormat.

Definition at line 235 of file PostRawCOPPERFormat_latest.h.

236 {
237 char err_buf[500];
238 sprintf(err_buf, "[FATAL] This function is not supported. (block %d) Exiting...\n %s %s %d\n",
239 n, __FILE__, __PRETTY_FUNCTION__, __LINE__);
240 printf("%s", err_buf);
241 std::string err_str = err_buf; throw (err_str);
242 return 0;
243 }

◆ GetMagicDriverHeader() [3/8]

unsigned int GetMagicDriverHeader ( int  n)
inlinevirtual

get magic word of COPPER driver header

Implements RawCOPPERFormat.

Definition at line 305 of file PostRawCOPPERFormat_v1.h.

306 {
307 char err_buf[500];
308 sprintf(err_buf, "This function is not supported. (block %d) Exiting...\n %s %s %d\n",
309 n, __FILE__, __PRETTY_FUNCTION__, __LINE__);
310 std::string err_str = err_buf; throw (err_str);
311 return 0;
312 }

◆ GetMagicDriverHeader() [4/8]

unsigned int GetMagicDriverHeader ( int  n)
inlinevirtual

get magic word of COPPER driver header

Implements RawCOPPERFormat.

Definition at line 315 of file PostRawCOPPERFormat_v2.h.

316 {
317 char err_buf[500];
318 sprintf(err_buf, "[FATAL] This function is not supported. (block %d) Exiting...\n %s %s %d\n",
319 n, __FILE__, __PRETTY_FUNCTION__, __LINE__);
320 printf("%s", err_buf);
321 std::string err_str = err_buf; throw (err_str);
322 return 0;
323 }

◆ GetMagicDriverHeader() [5/8]

unsigned int GetMagicDriverHeader ( int  n)
inlinevirtual

get magic word of COPPER driver header

Implements RawCOPPERFormat.

Definition at line 243 of file PreRawCOPPERFormat_latest.h.

244 {
245 char err_buf[500];
246 sprintf(err_buf, "[FATAL] This function is not supported. Exiting...: \n%s %s %d\n",
247 __FILE__, __PRETTY_FUNCTION__, __LINE__);
248 printf("[DEBUG] %s\n", err_buf);
249 B2FATAL(err_buf);
250 return 0;
251 }

◆ GetMagicDriverHeader() [6/8]

unsigned int GetMagicDriverHeader ( int  n)
inlinevirtual

get magic word of COPPER driver header

Implements RawCOPPERFormat.

Definition at line 363 of file PreRawCOPPERFormat_v1.h.

364 {
365 int pos_nwords = GetBufferPos(n) + tmp_header.RAWHEADER_NWORDS + POS_MAGIC_COPPER_1;
366 return (unsigned int)(m_buffer[ pos_nwords ]);
367 }

◆ GetMagicDriverHeader() [7/8]

unsigned int GetMagicDriverHeader ( int  n)
inlinevirtual

get magic word of COPPER driver header

Implements RawCOPPERFormat.

Definition at line 363 of file PreRawCOPPERFormat_v2.h.

364 {
365 int pos_nwords = GetBufferPos(n) + tmp_header.RAWHEADER_NWORDS + POS_MAGIC_COPPER_1;
366 return (unsigned int)(m_buffer[ pos_nwords ]);
367 }

◆ GetMagicDriverHeader() [8/8]

unsigned int GetMagicDriverHeader ( int  n)
inlinevirtual

get magic word of COPPER driver header

Implements RawCOPPERFormat.

Definition at line 618 of file RawCOPPERFormat_v0.h.

619 {
620 int pos_nwords = GetBufferPos(n) + tmp_header.RAWHEADER_NWORDS + POS_MAGIC_COPPER_1;
621 return (unsigned int)(m_buffer[ pos_nwords ]);
622 }

◆ GetMagicDriverTrailer() [1/8]

unsigned int GetMagicDriverTrailer ( int  n)
inline

get magic word of COPPER driver trailer

Definition at line 596 of file RawCOPPER.h.

597 {
600 }
virtual unsigned int GetMagicDriverTrailer(int n)=0
get magic word of COPPER driver trailer

◆ GetMagicDriverTrailer() [2/8]

unsigned int GetMagicDriverTrailer ( int  n)
inlinevirtual

get magic word of COPPER driver trailer

Implements RawCOPPERFormat.

Definition at line 265 of file PostRawCOPPERFormat_latest.h.

266 {
267 int pos_nwords = GetBufferPos(n) + GetBlockNwords(n) - tmp_trailer.GetTrlNwords() - 1;
268 return (unsigned int)(m_buffer[ pos_nwords ]);
269 }

◆ GetMagicDriverTrailer() [3/8]

unsigned int GetMagicDriverTrailer ( int  n)
inlinevirtual

get magic word of COPPER driver trailer

Implements RawCOPPERFormat.

Definition at line 333 of file PostRawCOPPERFormat_v1.h.

334 {
335 int pos_nwords = GetBufferPos(n) + GetBlockNwords(n) - tmp_trailer.GetTrlNwords() - 1;
336 return (unsigned int)(m_buffer[ pos_nwords ]);
337 }

◆ GetMagicDriverTrailer() [4/8]

unsigned int GetMagicDriverTrailer ( int  n)
inlinevirtual

get magic word of COPPER driver trailer

Implements RawCOPPERFormat.

Definition at line 345 of file PostRawCOPPERFormat_v2.h.

346 {
347 int pos_nwords = GetBufferPos(n) + GetBlockNwords(n) - tmp_trailer.GetTrlNwords() - 1;
348 return (unsigned int)(m_buffer[ pos_nwords ]);
349 }

◆ GetMagicDriverTrailer() [5/8]

unsigned int GetMagicDriverTrailer ( int  n)
inlinevirtual

get magic word of COPPER driver trailer

Implements RawCOPPERFormat.

Definition at line 272 of file PreRawCOPPERFormat_latest.h.

273 {
274 int pos_nwords = GetBufferPos(n) + GetBlockNwords(n) - tmp_trailer.GetTrlNwords() - 1;
275 return (unsigned int)(m_buffer[ pos_nwords ]);
276 }

◆ GetMagicDriverTrailer() [6/8]

unsigned int GetMagicDriverTrailer ( int  n)
inlinevirtual

get magic word of COPPER driver trailer

Implements RawCOPPERFormat.

Definition at line 384 of file PreRawCOPPERFormat_v1.h.

385 {
386 int pos_nwords = GetBufferPos(n) + GetBlockNwords(n) - tmp_trailer.GetTrlNwords() - 1;
387 return (unsigned int)(m_buffer[ pos_nwords ]);
388 }

◆ GetMagicDriverTrailer() [7/8]

unsigned int GetMagicDriverTrailer ( int  n)
inlinevirtual

get magic word of COPPER driver trailer

Implements RawCOPPERFormat.

Definition at line 384 of file PreRawCOPPERFormat_v2.h.

385 {
386 int pos_nwords = GetBufferPos(n) + GetBlockNwords(n) - tmp_trailer.GetTrlNwords() - 1;
387 return (unsigned int)(m_buffer[ pos_nwords ]);
388 }

◆ GetMagicDriverTrailer() [8/8]

unsigned int GetMagicDriverTrailer ( int  n)
inlinevirtual

get magic word of COPPER driver trailer

Implements RawCOPPERFormat.

Definition at line 639 of file RawCOPPERFormat_v0.h.

640 {
641 int pos_nwords = GetBufferPos(n) + GetBlockNwords(n) - tmp_trailer.GetTrlNwords() - 1;
642 return (unsigned int)(m_buffer[ pos_nwords ]);
643 }

◆ GetMagicFPGAHeader() [1/8]

unsigned int GetMagicFPGAHeader ( int  n)
inline

get magic word of COPPER FPGA header

Definition at line 584 of file RawCOPPER.h.

585 {
587 return m_access->GetMagicFPGAHeader(n);
588 }
virtual unsigned int GetMagicFPGAHeader(int n)=0
get magic word of COPPER FPGA header

◆ GetMagicFPGAHeader() [2/8]

unsigned int GetMagicFPGAHeader ( int  n)
inlinevirtual

get magic word of COPPER FPGA header

Implements RawCOPPERFormat.

Definition at line 245 of file PostRawCOPPERFormat_latest.h.

246 {
247 char err_buf[500];
248 sprintf(err_buf, "[FATAL] This function is not supported. (block %d) Exiting...\n %s %s %d\n",
249 n, __FILE__, __PRETTY_FUNCTION__, __LINE__);
250 printf("%s", err_buf);
251 std::string err_str = err_buf; throw (err_str);
252 return 0;
253 }

◆ GetMagicFPGAHeader() [3/8]

unsigned int GetMagicFPGAHeader ( int  n)
inlinevirtual

get magic word of COPPER FPGA header

Implements RawCOPPERFormat.

Definition at line 314 of file PostRawCOPPERFormat_v1.h.

315 {
316 char err_buf[500];
317 sprintf(err_buf, "This function is not supported. (block %d) Exiting...\n %s %s %d\n",
318 n, __FILE__, __PRETTY_FUNCTION__, __LINE__);
319 std::string err_str = err_buf; throw (err_str);
320 return 0;
321 }

◆ GetMagicFPGAHeader() [4/8]

unsigned int GetMagicFPGAHeader ( int  n)
inlinevirtual

get magic word of COPPER FPGA header

Implements RawCOPPERFormat.

Definition at line 325 of file PostRawCOPPERFormat_v2.h.

326 {
327 char err_buf[500];
328 sprintf(err_buf, "[FATAL] This function is not supported. (block %d) Exiting...\n %s %s %d\n",
329 n, __FILE__, __PRETTY_FUNCTION__, __LINE__);
330 printf("%s", err_buf);
331 std::string err_str = err_buf; throw (err_str);
332 return 0;
333 }

◆ GetMagicFPGAHeader() [5/8]

unsigned int GetMagicFPGAHeader ( int  n)
inlinevirtual

get magic word of COPPER FPGA header

Implements RawCOPPERFormat.

Definition at line 253 of file PreRawCOPPERFormat_latest.h.

254 {
255 char err_buf[500];
256 sprintf(err_buf, "[FATAL] This function is not supported. Exiting...: \n%s %s %d\n",
257 __FILE__, __PRETTY_FUNCTION__, __LINE__);
258 printf("[DEBUG] %s\n", err_buf);
259 B2FATAL(err_buf);
260 return 0;
261 }

◆ GetMagicFPGAHeader() [6/8]

unsigned int GetMagicFPGAHeader ( int  n)
inlinevirtual

get magic word of COPPER FPGA header

Implements RawCOPPERFormat.

Definition at line 369 of file PreRawCOPPERFormat_v1.h.

370 {
371 int pos_nwords = GetBufferPos(n) + tmp_header.RAWHEADER_NWORDS + POS_MAGIC_COPPER_2;
372 return (unsigned int)(m_buffer[ pos_nwords ]);
373 }

◆ GetMagicFPGAHeader() [7/8]

unsigned int GetMagicFPGAHeader ( int  n)
inlinevirtual

get magic word of COPPER FPGA header

Implements RawCOPPERFormat.

Definition at line 369 of file PreRawCOPPERFormat_v2.h.

370 {
371 int pos_nwords = GetBufferPos(n) + tmp_header.RAWHEADER_NWORDS + POS_MAGIC_COPPER_2;
372 return (unsigned int)(m_buffer[ pos_nwords ]);
373 }

◆ GetMagicFPGAHeader() [8/8]

unsigned int GetMagicFPGAHeader ( int  n)
inlinevirtual

get magic word of COPPER FPGA header

Implements RawCOPPERFormat.

Definition at line 624 of file RawCOPPERFormat_v0.h.

625 {
626 int pos_nwords = GetBufferPos(n) + tmp_header.RAWHEADER_NWORDS + POS_MAGIC_COPPER_2;
627 return (unsigned int)(m_buffer[ pos_nwords ]);
628 }

◆ GetMagicFPGATrailer() [1/8]

unsigned int GetMagicFPGATrailer ( int  n)
inline

get magic word of COPPER FPGA trailer

Definition at line 590 of file RawCOPPER.h.

591 {
593 return m_access->GetMagicFPGATrailer(n);
594 }
virtual unsigned int GetMagicFPGATrailer(int n)=0
get magic word of COPPER FPGA trailer

◆ GetMagicFPGATrailer() [2/8]

unsigned int GetMagicFPGATrailer ( int  n)
inlinevirtual

get magic word of COPPER FPGA trailer

Implements RawCOPPERFormat.

Definition at line 256 of file PostRawCOPPERFormat_latest.h.

257 {
258 int pos_nwords = GetBufferPos(n) + GetBlockNwords(n) - tmp_trailer.GetTrlNwords() - 3;
259
260 // printf( "[DEBUG] 1 %d 2 %d 3 %d\n", GetBufferPos(n), GetBlockNwords(n), tmp_trailer.GetTrlNwords());
261
262 return (unsigned int)(m_buffer[ pos_nwords ]);
263 }

◆ GetMagicFPGATrailer() [3/8]

unsigned int GetMagicFPGATrailer ( int  n)
inlinevirtual

get magic word of COPPER FPGA trailer

Implements RawCOPPERFormat.

Definition at line 324 of file PostRawCOPPERFormat_v1.h.

325 {
326 int pos_nwords = GetBufferPos(n) + GetBlockNwords(n) - tmp_trailer.GetTrlNwords() - 3;
327
328 // printf( "[DEBUG] 1 %d 2 %d 3 %d\n", GetBufferPos(n), GetBlockNwords(n), tmp_trailer.GetTrlNwords());
329
330 return (unsigned int)(m_buffer[ pos_nwords ]);
331 }

◆ GetMagicFPGATrailer() [4/8]

unsigned int GetMagicFPGATrailer ( int  n)
inlinevirtual

get magic word of COPPER FPGA trailer

Implements RawCOPPERFormat.

Definition at line 336 of file PostRawCOPPERFormat_v2.h.

337 {
338 int pos_nwords = GetBufferPos(n) + GetBlockNwords(n) - tmp_trailer.GetTrlNwords() - 3;
339
340 // printf( "[DEBUG] 1 %d 2 %d 3 %d\n", GetBufferPos(n), GetBlockNwords(n), tmp_trailer.GetTrlNwords());
341
342 return (unsigned int)(m_buffer[ pos_nwords ]);
343 }

◆ GetMagicFPGATrailer() [5/8]

unsigned int GetMagicFPGATrailer ( int  n)
inlinevirtual

get magic word of COPPER FPGA trailer

Implements RawCOPPERFormat.

Definition at line 263 of file PreRawCOPPERFormat_latest.h.

264 {
265 int pos_nwords = GetBufferPos(n) + GetBlockNwords(n) - tmp_trailer.GetTrlNwords() - 3;
266
267 // printf( "[DEBUG] 1 %d 2 %d 3 %d\n", GetBufferPos(n), GetBlockNwords(n), trl.GetTrlNwords());
268
269 return (unsigned int)(m_buffer[ pos_nwords ]);
270 }

◆ GetMagicFPGATrailer() [6/8]

unsigned int GetMagicFPGATrailer ( int  n)
inlinevirtual

get magic word of COPPER FPGA trailer

Implements RawCOPPERFormat.

Definition at line 375 of file PreRawCOPPERFormat_v1.h.

376 {
377 int pos_nwords = GetBufferPos(n) + GetBlockNwords(n) - tmp_trailer.GetTrlNwords() - 3;
378
379 // printf( "[DEBUG] 1 %d 2 %d 3 %d\n", GetBufferPos(n), GetBlockNwords(n), trl.GetTrlNwords());
380
381 return (unsigned int)(m_buffer[ pos_nwords ]);
382 }

◆ GetMagicFPGATrailer() [7/8]

unsigned int GetMagicFPGATrailer ( int  n)
inlinevirtual

get magic word of COPPER FPGA trailer

Implements RawCOPPERFormat.

Definition at line 375 of file PreRawCOPPERFormat_v2.h.

376 {
377 int pos_nwords = GetBufferPos(n) + GetBlockNwords(n) - tmp_trailer.GetTrlNwords() - 3;
378
379 // printf( "[DEBUG] 1 %d 2 %d 3 %d\n", GetBufferPos(n), GetBlockNwords(n), trl.GetTrlNwords());
380
381 return (unsigned int)(m_buffer[ pos_nwords ]);
382 }

◆ GetMagicFPGATrailer() [8/8]

unsigned int GetMagicFPGATrailer ( int  n)
inlinevirtual

get magic word of COPPER FPGA trailer

Implements RawCOPPERFormat.

Definition at line 630 of file RawCOPPERFormat_v0.h.

631 {
632 int pos_nwords = GetBufferPos(n) + GetBlockNwords(n) - tmp_trailer.GetTrlNwords() - 3;
633
634 // printf( "[DEBUG] 1 %d 2 %d 3 %d\n", GetBufferPos(n), GetBlockNwords(n), tmp_trailer.GetTrlNwords());
635
636 return (unsigned int)(m_buffer[ pos_nwords ]);
637 }

◆ GetMagicWord() [1/4]

int GetMagicWord ( )
inline

initialize header

Definition at line 120 of file RawTrailer_latest.h.

121 {
122 CheckBuffer();
123 return m_buffer[ POS_TERM_WORD ];
124 }

◆ GetMagicWord() [2/4]

int GetMagicWord ( )
inline

initialize header

Definition at line 117 of file RawTrailer_v0.h.

118 {
119 CheckBuffer();
120 return m_buffer[ POS_TERM_WORD ];
121 }

◆ GetMagicWord() [3/4]

int GetMagicWord ( )
inline

initialize header

Definition at line 120 of file RawTrailer_v1.h.

121 {
122 CheckBuffer();
123 return m_buffer[ POS_TERM_WORD ];
124 }

◆ GetMagicWord() [4/4]

int GetMagicWord ( )
inline

initialize header

Definition at line 118 of file RawTrailer_v2.h.

119 {
120 CheckBuffer();
121 return m_buffer[ POS_TERM_WORD ];
122 }

◆ GetMagicWordEntireHeader()

unsigned int GetMagicWordEntireHeader ( )
inline

Get magic word to check the data corruption.

Definition at line 502 of file RawHeader_v0.h.

503 {
505 return m_buffer[ POS_TERM_HEADER ];
506 }

◆ GetMaxNumOfCh() [1/5]

int GetMaxNumOfCh ( int  n)
inline

Get the max number of channels in a readout board.

Definition at line 750 of file RawCOPPER.h.

751 {
753 return m_access->GetMaxNumOfCh(n);
754 }
virtual int GetMaxNumOfCh(int n)=0
Get the max number of channels in a readout board.

◆ GetMaxNumOfCh() [2/5]

int GetMaxNumOfCh ( int  n)
inlinevirtual

Get the max number of channels in a readout board.

Implements RawCOPPERFormat.

Definition at line 394 of file RawCOPPERFormat_latest.h.

395 {
396 return MAX_PCIE40_CH;
397 }

◆ GetMaxNumOfCh() [3/5]

int GetMaxNumOfCh ( int  n)
inlinevirtual

Get the max number of channels in a readout board.

Implements RawCOPPERFormat.

Definition at line 685 of file RawCOPPERFormat_v0.h.

686 {
687 return MAX_COPPER_CH;
688 }

◆ GetMaxNumOfCh() [4/5]

int GetMaxNumOfCh ( int  n)
inlinevirtual

Get the max number of channels in a readout board.

Implements RawCOPPERFormat.

Definition at line 347 of file RawCOPPERFormat_v1.h.

348 {
349 return MAX_COPPER_CH;
350 }

◆ GetMaxNumOfCh() [5/5]

int GetMaxNumOfCh ( int  n)
inlinevirtual

Get the max number of channels in a readout board.

Implements RawCOPPERFormat.

Definition at line 371 of file RawCOPPERFormat_v2.h.

372 {
373 return MAX_COPPER_CH;
374 }

◆ GetNodeID() [1/9]

unsigned int GetNodeID ( )
inline

get contents of header

Definition at line 361 of file RawHeader_latest.h.

362 {
364 return (unsigned int)m_buffer[ POS_NODE_ID ];
365 }

◆ GetNodeID() [2/9]

unsigned int GetNodeID ( )
inline

get contents of header

Definition at line 408 of file RawHeader_v0.h.

409 {
411 return (unsigned int)(m_buffer[ POS_NODE_ID ]);
412 }

◆ GetNodeID() [3/9]

unsigned int GetNodeID ( )
inline

get contents of header

Definition at line 387 of file RawHeader_v1.h.

388 {
390 return (unsigned int)m_buffer[ POS_NODE_ID ];
391 }

◆ GetNodeID() [4/9]

unsigned int GetNodeID ( )
inline

get contents of header

Definition at line 402 of file RawHeader_v2.h.

403 {
405 return (unsigned int)m_buffer[ POS_NODE_ID ];
406 }

◆ GetNodeID() [5/9]

unsigned int GetNodeID ( int  n)
inline

get node-ID from data

Definition at line 397 of file RawCOPPER.h.

398 {
400 return m_access->GetNodeID(n);
401 }
virtual unsigned int GetNodeID(int n)=0
get node-ID from data

◆ GetNodeID() [6/9]

unsigned int GetNodeID ( int  n)
inlinevirtual

get node-ID from data

Implements RawCOPPERFormat.

Definition at line 319 of file RawCOPPERFormat_latest.h.

320 {
322 return tmp_header.GetNodeID();
323 }
unsigned int GetNodeID()
get contents of header

◆ GetNodeID() [7/9]

unsigned int GetNodeID ( int  n)
inlinevirtual

get node-ID from data

Implements RawCOPPERFormat.

Definition at line 432 of file RawCOPPERFormat_v0.h.

433 {
435 return tmp_header.GetNodeID();
436 }

◆ GetNodeID() [8/9]

unsigned int GetNodeID ( int  n)
inlinevirtual

get node-ID from data

Implements RawCOPPERFormat.

Definition at line 240 of file RawCOPPERFormat_v1.h.

241 {
243 return tmp_header.GetNodeID();
244 }

◆ GetNodeID() [9/9]

unsigned int GetNodeID ( int  n)
inlinevirtual

get node-ID from data

Implements RawCOPPERFormat.

Definition at line 251 of file RawCOPPERFormat_v2.h.

252 {
254 return tmp_header.GetNodeID();
255 }

◆ GetNumFINESSEBlock()

int GetNumFINESSEBlock ( int  n)
inlinevirtual

get # of FINNESEs which contains data

Definition at line 651 of file RawCOPPER.h.

652 {
654 return m_access->GetNumFINESSEBlock(n);
655 }
virtual int GetNumFINESSEBlock(int n)=0
get # of FINNESEs which contains data

◆ GetNumNodes()

int GetNumNodes ( )
inline

get contents of header

Definition at line 463 of file RawHeader_v0.h.

464 {
466 return m_buffer[ POS_NUM_NODES ];
467 }

◆ GetNwords() [1/4]

int GetNwords ( )
inline

set contents of header

Add nodeinfo in trace area

Definition at line 313 of file RawHeader_latest.h.

314 {
316 return m_buffer[ POS_NWORDS ];
317 }

◆ GetNwords() [2/4]

int GetNwords ( )
inline

get contents of header

Definition at line 360 of file RawHeader_v0.h.

361 {
363 return m_buffer[ POS_NWORDS ];
364 }

◆ GetNwords() [3/4]

int GetNwords ( )
inline

set contents of header

Add nodeinfo in trace area

Definition at line 340 of file RawHeader_v1.h.

341 {
343 return m_buffer[ POS_NWORDS ];
344 }

◆ GetNwords() [4/4]

int GetNwords ( )
inline

set contents of header

Add nodeinfo in trace area

Definition at line 354 of file RawHeader_v2.h.

355 {
357 return m_buffer[ POS_NWORDS ];
358 }

◆ GetOffset1stFINESSE() [1/9]

int GetOffset1stFINESSE ( )
inline

get contents of header

Definition at line 439 of file RawHeader_v0.h.

440 {
442 return m_buffer[ POS_OFFSET_1ST_FINESSE ];
443 }

◆ GetOffset1stFINESSE() [2/9]

int GetOffset1stFINESSE ( )
inline

get contents of header

Definition at line 418 of file RawHeader_v1.h.

419 {
421 return m_buffer[ POS_OFFSET_1ST_FINESSE ];
422 }

◆ GetOffset1stFINESSE() [3/9]

int GetOffset1stFINESSE ( )
inline

get contents of header

Definition at line 453 of file RawHeader_v2.h.

454 {
456 return m_buffer[ POS_OFFSET_1ST_FINESSE ];
457 }

◆ GetOffset1stFINESSE() [4/9]

int GetOffset1stFINESSE ( int  n)
inline

get # of offset words for FINESSE slot A buffer position

Definition at line 500 of file RawCOPPER.h.

501 {
503 return m_access->GetOffset1stFINESSE(n);
504 }

◆ GetOffset1stFINESSE() [5/9]

int GetOffset1stFINESSE ( int  n)
inlinevirtual

get # of offset words for FINESSE slot A buffer position

Implements RawCOPPERFormat.

Definition at line 223 of file PostRawCOPPERFormat_v1.h.

224 {
225 int pos_nwords = GetBufferPos(n) + tmp_header.RAWHEADER_NWORDS + SIZE_COPPER_HEADER;
226 return pos_nwords;
227 }

◆ GetOffset1stFINESSE() [6/9]

int GetOffset1stFINESSE ( int  n)
inlinevirtual

get # of offset words for FINESSE slot A buffer position

Implements RawCOPPERFormat.

Definition at line 232 of file PostRawCOPPERFormat_v2.h.

233 {
234 int pos_nwords = GetBufferPos(n) + tmp_header.RAWHEADER_NWORDS + SIZE_COPPER_HEADER;
235 return pos_nwords;
236 }

◆ GetOffset1stFINESSE() [7/9]

int GetOffset1stFINESSE ( int  n)
inlinevirtual

get # of offset words for FINESSE slot A buffer position

Implements RawCOPPERFormat.

Definition at line 296 of file PreRawCOPPERFormat_v1.h.

297 {
298 int pos_nwords = GetBufferPos(n) + tmp_header.RAWHEADER_NWORDS + SIZE_COPPER_HEADER;
299 return pos_nwords;
300 }

◆ GetOffset1stFINESSE() [8/9]

int GetOffset1stFINESSE ( int  n)
inlinevirtual

get # of offset words for FINESSE slot A buffer position

Implements RawCOPPERFormat.

Definition at line 296 of file PreRawCOPPERFormat_v2.h.

297 {
298 int pos_nwords = GetBufferPos(n) + tmp_header.RAWHEADER_NWORDS + SIZE_COPPER_HEADER;
299 return pos_nwords;
300 }

◆ GetOffset1stFINESSE() [9/9]

int GetOffset1stFINESSE ( int  n)
inlinevirtual

get # of offset words for FINESSE slot A buffer position

Implements RawCOPPERFormat.

Definition at line 552 of file RawCOPPERFormat_v0.h.

553 {
554 int pos_nwords = GetBufferPos(n) + tmp_header.RAWHEADER_NWORDS + SIZE_COPPER_HEADER;
555 return pos_nwords;
556 }

◆ GetOffset2ndFINESSE() [1/5]

int GetOffset2ndFINESSE ( )
inline

get contents of header

Definition at line 445 of file RawHeader_v0.h.

446 {
448 return m_buffer[ POS_OFFSET_2ND_FINESSE ];
449 }

◆ GetOffset2ndFINESSE() [2/5]

int GetOffset2ndFINESSE ( )
inline

get contents of header

Definition at line 424 of file RawHeader_v1.h.

425 {
427 return m_buffer[ POS_OFFSET_2ND_FINESSE ];
428 }

◆ GetOffset2ndFINESSE() [3/5]

int GetOffset2ndFINESSE ( )
inline

get contents of header

Definition at line 459 of file RawHeader_v2.h.

460 {
462 return m_buffer[ POS_OFFSET_2ND_FINESSE ];
463 }

◆ GetOffset2ndFINESSE() [4/5]

int GetOffset2ndFINESSE ( int  n)
inline

get # of offset words for FINESSE slot B buffer position

Definition at line 506 of file RawCOPPER.h.

507 {
509 return m_access->GetOffset2ndFINESSE(n);
510 }

◆ GetOffset2ndFINESSE() [5/5]

int GetOffset2ndFINESSE ( int  n)
inlinevirtual

get # of offset words for FINESSE slot B buffer position

Reimplemented in RawCOPPERFormat_latest.

Definition at line 380 of file RawCOPPERFormat.h.

381 {
383 }

◆ GetOffset3rdFINESSE() [1/5]

int GetOffset3rdFINESSE ( )
inline

get contents of header

Definition at line 451 of file RawHeader_v0.h.

452 {
454 return m_buffer[ POS_OFFSET_3RD_FINESSE ];
455 }

◆ GetOffset3rdFINESSE() [2/5]

int GetOffset3rdFINESSE ( )
inline

get contents of header

Definition at line 430 of file RawHeader_v1.h.

431 {
433 return m_buffer[ POS_OFFSET_3RD_FINESSE ];
434 }

◆ GetOffset3rdFINESSE() [3/5]

int GetOffset3rdFINESSE ( )
inline

get contents of header

Definition at line 465 of file RawHeader_v2.h.

466 {
468 return m_buffer[ POS_OFFSET_3RD_FINESSE ];
469 }

◆ GetOffset3rdFINESSE() [4/5]

int GetOffset3rdFINESSE ( int  n)
inline

get # of offset words for FINESSE slot C buffer position

Definition at line 512 of file RawCOPPER.h.

513 {
515 return m_access->GetOffset3rdFINESSE(n);
516 }

◆ GetOffset3rdFINESSE() [5/5]

int GetOffset3rdFINESSE ( int  n)
inlinevirtual

get # of offset words for FINESSE slot C buffer position

Reimplemented in RawCOPPERFormat_latest.

Definition at line 385 of file RawCOPPERFormat.h.

386 {
388 }

◆ GetOffset4thFINESSE() [1/5]

int GetOffset4thFINESSE ( )
inline

get contents of header

Definition at line 457 of file RawHeader_v0.h.

458 {
460 return m_buffer[ POS_OFFSET_4TH_FINESSE ];
461 }

◆ GetOffset4thFINESSE() [2/5]

int GetOffset4thFINESSE ( )
inline

get contents of header

Definition at line 436 of file RawHeader_v1.h.

437 {
439 return m_buffer[ POS_OFFSET_4TH_FINESSE ];
440 }

◆ GetOffset4thFINESSE() [3/5]

int GetOffset4thFINESSE ( )
inline

get contents of header

Definition at line 471 of file RawHeader_v2.h.

472 {
474 return m_buffer[ POS_OFFSET_4TH_FINESSE ];
475 }

◆ GetOffset4thFINESSE() [4/5]

int GetOffset4thFINESSE ( int  n)
inline

get # of offset words for FINESSE slot D buffer position

Definition at line 518 of file RawCOPPER.h.

519 {
521 return m_access->GetOffset4thFINESSE(n);
522 }

◆ GetOffset4thFINESSE() [5/5]

int GetOffset4thFINESSE ( int  n)
inlinevirtual

get # of offset words for FINESSE slot D buffer position

Reimplemented in RawCOPPERFormat_latest.

Definition at line 390 of file RawCOPPERFormat.h.

391 {
393 }

◆ GetOffsetFINESSE()

int GetOffsetFINESSE ( int  n,
int  finesse 
)
inline

get # of offset words

Definition at line 669 of file RawCOPPER.h.

670 {
672 return m_access->GetOffsetFINESSE(n, finesse_num);
673 }
virtual int GetOffsetFINESSE(int n, int finesse)
get # of offset words

◆ GetPacketCRCError() [1/5]

int GetPacketCRCError ( )
inline

Get Packet CRC error flag.

Definition at line 392 of file RawHeader_latest.h.

393 {
395 unsigned int temp_err_flag = GetErrorBitFlag();
396 if ((temp_err_flag & B2LINK_PACKET_CRC_ERROR) == 0) {
397 return 0;
398 }
399 return 1;
400 }

◆ GetPacketCRCError() [2/5]

int GetPacketCRCError ( )
inline

Get Packet CRC error flag.

Definition at line 433 of file RawHeader_v2.h.

434 {
436 unsigned int temp_err_flag = GetErrorBitFlag();
437 if ((temp_err_flag & B2LINK_PACKET_CRC_ERROR) == 0) {
438 return 0;
439 }
440 return 1;
441 }

◆ GetPacketCRCError() [3/5]

int GetPacketCRCError ( int  n)
inline

check CRC packet Error

Definition at line 428 of file RawCOPPER.h.

429 {
431 return m_access->GetPacketCRCError(n);
432 }
virtual int GetPacketCRCError(int n)
check CRC packet Error

◆ GetPacketCRCError() [4/5]

int GetPacketCRCError ( int  n)
inlinevirtual

check CRC packet Error

Reimplemented from RawCOPPERFormat.

Definition at line 351 of file RawCOPPERFormat_latest.h.

352 {
355 }
int GetPacketCRCError()
Get Packet CRC error flag.

◆ GetPacketCRCError() [5/5]

int GetPacketCRCError ( int  n)
inlinevirtual

check CRC packet Error

Reimplemented from RawCOPPERFormat.

Definition at line 283 of file RawCOPPERFormat_v2.h.

284 {
287 }

◆ GetRawHdrBufPtr() [1/2]

int * GetRawHdrBufPtr ( int  n)
inlinevirtual

get buffer pointer of rawcopper header(Currently same as GetBufferPos)

Definition at line 347 of file RawCOPPER.h.

348 {
350 return m_access->GetRawHdrBufPtr(n);
351 }
virtual int * GetRawHdrBufPtr(int n)
get buffer pointer of rawcopper header(Currently same as GetBufferPos)

◆ GetRawHdrBufPtr() [2/2]

int * GetRawHdrBufPtr ( int  n)
inlinevirtual

get buffer pointer of rawcopper header(Currently same as GetBufferPos)

Definition at line 373 of file RawCOPPERFormat.h.

374 {
375 int pos_nwords = GetBufferPos(n);
376 return &(m_buffer[ pos_nwords ]);
377 }

◆ GetRawTrlBufPtr() [1/5]

int * GetRawTrlBufPtr ( int  n)
inlinevirtual

get buffer pointer of rawcopper trailer

Definition at line 353 of file RawCOPPER.h.

354 {
356 return m_access->GetRawTrlBufPtr(n);
357 }
virtual int * GetRawTrlBufPtr(int n)=0
get buffer pointer of rawcopper trailer

◆ GetRawTrlBufPtr() [2/5]

int * GetRawTrlBufPtr ( int  n)
inlinevirtual

get buffer pointer of rawcopper trailer

Implements RawCOPPERFormat.

Definition at line 274 of file RawCOPPERFormat_latest.h.

275 {
276 int pos_nwords;
277 if (n == (m_num_events * m_num_nodes) - 1) {
278 pos_nwords = m_nwords - tmp_trailer.GetTrlNwords();
279 } else {
280 pos_nwords = GetBufferPos(n + 1) - tmp_trailer.GetTrlNwords();
281 }
282 return &(m_buffer[ pos_nwords ]);
283 }
int m_num_events
number of events in this object
int m_num_nodes
number of nodes in this object

◆ GetRawTrlBufPtr() [3/5]

int * GetRawTrlBufPtr ( int  n)
inlinevirtual

get buffer pointer of rawcopper trailer

Implements RawCOPPERFormat.

Definition at line 382 of file RawCOPPERFormat_v0.h.

383 {
384 int pos_nwords;
385 if (n == (m_num_events * m_num_nodes) - 1) {
386 pos_nwords = m_nwords - tmp_trailer.GetTrlNwords();
387 } else {
388 pos_nwords = GetBufferPos(n + 1) - tmp_trailer.GetTrlNwords();
389 }
390 return &(m_buffer[ pos_nwords ]);
391 }

◆ GetRawTrlBufPtr() [4/5]

int * GetRawTrlBufPtr ( int  n)
inlinevirtual

get buffer pointer of rawcopper trailer

Implements RawCOPPERFormat.

Definition at line 197 of file RawCOPPERFormat_v1.h.

198 {
199 int pos_nwords;
200 if (n == (m_num_events * m_num_nodes) - 1) {
201 pos_nwords = m_nwords - tmp_trailer.GetTrlNwords();
202 } else {
203 pos_nwords = GetBufferPos(n + 1) - tmp_trailer.GetTrlNwords();
204 }
205 return &(m_buffer[ pos_nwords ]);
206 }

◆ GetRawTrlBufPtr() [5/5]

int * GetRawTrlBufPtr ( int  n)
inlinevirtual

get buffer pointer of rawcopper trailer

Implements RawCOPPERFormat.

Definition at line 206 of file RawCOPPERFormat_v2.h.

207 {
208 int pos_nwords;
209 if (n == (m_num_events * m_num_nodes) - 1) {
210 pos_nwords = m_nwords - tmp_trailer.GetTrlNwords();
211 } else {
212 pos_nwords = GetBufferPos(n + 1) - tmp_trailer.GetTrlNwords();
213 }
214 return &(m_buffer[ pos_nwords ]);
215 }

◆ GetRunNo() [1/12]

int GetRunNo ( )
inline

get contents of header

Definition at line 335 of file RawHeader_latest.h.

336 {
338 return (((unsigned int)(m_buffer[ POS_EXP_RUN_NO ]) & RUNNO_MASK)
339 >> RUNNO_SHIFT);
340 }

◆ GetRunNo() [2/12]

int GetRunNo ( )
inline

get contents of header

Definition at line 382 of file RawHeader_v0.h.

383 {
385 return (((unsigned int)(m_buffer[ POS_EXP_RUN_NO ]) & RUNNO_MASK)
386 >> RUNNO_SHIFT);
387 }

◆ GetRunNo() [3/12]

int GetRunNo ( )
inline

get contents of header

Definition at line 361 of file RawHeader_v1.h.

362 {
364 return (((unsigned int)(m_buffer[ POS_EXP_RUN_NO ]) & RUNNO_MASK)
365 >> RUNNO_SHIFT);
366 }

◆ GetRunNo() [4/12]

int GetRunNo ( )
inline

get contents of header

Definition at line 376 of file RawHeader_v2.h.

377 {
379 return (((unsigned int)(m_buffer[ POS_EXP_RUN_NO ]) & RUNNO_MASK)
380 >> RUNNO_SHIFT);
381 }

◆ GetRunNo() [5/12]

int GetRunNo ( int  n)
inline

Exp# (10bit) run# (14bit) restart # (8bit)

Definition at line 377 of file RawCOPPER.h.

378 {
380 return m_access->GetRunNo(n);
381 }
virtual int GetRunNo(int n)=0
Exp# (10bit) run# (14bit) restart # (8bit)

◆ GetRunNo() [6/12]

int GetRunNo ( int  n)
inlinevirtual

Exp# (10bit) run# (14bit) restart # (8bit)

Implements RawCOPPERFormat.

Definition at line 299 of file RawCOPPERFormat_latest.h.

300 {
302 return tmp_header.GetRunNo();
303 }
int GetRunNo()
get contents of header

◆ GetRunNo() [7/12]

int GetRunNo ( int  n)
inlinevirtual

Exp# (10bit) run# (14bit) restart # (8bit)

Implements RawCOPPERFormat.

Definition at line 412 of file RawCOPPERFormat_v0.h.

413 {
415 return tmp_header.GetRunNo();
416 }

◆ GetRunNo() [8/12]

int GetRunNo ( int  n)
inlinevirtual

Exp# (10bit) run# (14bit) restart # (8bit)

Implements RawCOPPERFormat.

Definition at line 220 of file RawCOPPERFormat_v1.h.

221 {
223 return tmp_header.GetRunNo();
224 }

◆ GetRunNo() [9/12]

int GetRunNo ( int  n)
inlinevirtual

Exp# (10bit) run# (14bit) restart # (8bit)

Implements RawCOPPERFormat.

Definition at line 231 of file RawCOPPERFormat_v2.h.

232 {
234 return tmp_header.GetRunNo();
235 }

◆ GetRunNo() [10/12]

int GetRunNo ( int  n)
inlinevirtual

Get run #.

Implements RawFTSWFormat.

Definition at line 200 of file RawFTSWFormat_latest.h.

201 {
202 return (((unsigned int)(m_buffer[ GetBufferPos(n) + POS_EXP_RUN_NO ]) & RUNNO_MASK)
203 >> RUNNO_SHIFT);
204 }

◆ GetRunNo() [11/12]

int GetRunNo ( int  n)
inlinevirtual

Get run #.

Implements RawFTSWFormat.

Definition at line 160 of file RawFTSWFormat_v1.h.

161 {
162 return (((unsigned int)(m_buffer[ GetBufferPos(n) + POS_EXP_RUN_NO ]) & RUNNO_MASK)
163 >> RUNNO_SHIFT);
164 }

◆ GetRunNo() [12/12]

int GetRunNo ( int  n)
inlinevirtual

Get run #.

Implements RawFTSWFormat.

Definition at line 197 of file RawFTSWFormat_v2.h.

198 {
199 return (((unsigned int)(m_buffer[ GetBufferPos(n) + POS_EXP_RUN_NO ]) & RUNNO_MASK)
200 >> RUNNO_SHIFT);
201 }

◆ GetRunNoSubRunNo() [1/3]

int GetRunNoSubRunNo ( int  n)
inlinevirtual

get a word cotaining run # and subrun #

Implements RawFTSWFormat.

Definition at line 211 of file RawFTSWFormat_latest.h.

212 {
213 return ((unsigned int)(m_buffer[ GetBufferPos(n) + POS_EXP_RUN_NO ]) &
214 (RUNNO_MASK | SUBRUNNO_MASK));
215 }

◆ GetRunNoSubRunNo() [2/3]

int GetRunNoSubRunNo ( int  n)
inlinevirtual

get a word cotaining run # and subrun #

Implements RawFTSWFormat.

Definition at line 171 of file RawFTSWFormat_v1.h.

172 {
173 return ((unsigned int)(m_buffer[ GetBufferPos(n) + POS_EXP_RUN_NO ]) &
174 (RUNNO_MASK | SUBRUNNO_MASK));
175 }

◆ GetRunNoSubRunNo() [3/3]

int GetRunNoSubRunNo ( int  n)
inlinevirtual

get a word cotaining run # and subrun #

Implements RawFTSWFormat.

Definition at line 208 of file RawFTSWFormat_v2.h.

209 {
210 return ((unsigned int)(m_buffer[ GetBufferPos(n) + POS_EXP_RUN_NO ]) &
211 (RUNNO_MASK | SUBRUNNO_MASK));
212 }

◆ GetSubRunNo() [1/12]

int GetSubRunNo ( )
inline

get run # (14bit)

Definition at line 342 of file RawHeader_latest.h.

343 {
345 return (m_buffer[ POS_EXP_RUN_NO ] & SUBRUNNO_MASK);
346 }

◆ GetSubRunNo() [2/12]

int GetSubRunNo ( )
inline

get run # (14bit)

Definition at line 389 of file RawHeader_v0.h.

390 {
392 return (m_buffer[ POS_EXP_RUN_NO ] & SUBRUNNO_MASK);
393 }

◆ GetSubRunNo() [3/12]

int GetSubRunNo ( )
inline

get run # (14bit)

Definition at line 368 of file RawHeader_v1.h.

369 {
371 return (m_buffer[ POS_EXP_RUN_NO ] & SUBRUNNO_MASK);
372 }

◆ GetSubRunNo() [4/12]

int GetSubRunNo ( )
inline

get run # (14bit)

Definition at line 383 of file RawHeader_v2.h.

384 {
386 return (m_buffer[ POS_EXP_RUN_NO ] & SUBRUNNO_MASK);
387 }

◆ GetSubRunNo() [5/12]

int GetSubRunNo ( int  n)
inline

get run # (14bit)

Definition at line 384 of file RawCOPPER.h.

385 {
387 return m_access->GetSubRunNo(n);
388 }
virtual int GetSubRunNo(int n)=0
get run # (14bit)

◆ GetSubRunNo() [6/12]

int GetSubRunNo ( int  n)
inlinevirtual

get run # (14bit)

Implements RawCOPPERFormat.

Definition at line 306 of file RawCOPPERFormat_latest.h.

307 {
309 return tmp_header.GetSubRunNo();
310 }
int GetSubRunNo()
get run # (14bit)

◆ GetSubRunNo() [7/12]

int GetSubRunNo ( int  n)
inlinevirtual

get run # (14bit)

Implements RawCOPPERFormat.

Definition at line 419 of file RawCOPPERFormat_v0.h.

420 {
422 return tmp_header.GetSubRunNo();
423 }

◆ GetSubRunNo() [8/12]

int GetSubRunNo ( int  n)
inlinevirtual

get run # (14bit)

Implements RawCOPPERFormat.

Definition at line 227 of file RawCOPPERFormat_v1.h.

228 {
230 return tmp_header.GetSubRunNo();
231 }

◆ GetSubRunNo() [9/12]

int GetSubRunNo ( int  n)
inlinevirtual

get run # (14bit)

Implements RawCOPPERFormat.

Definition at line 238 of file RawCOPPERFormat_v2.h.

239 {
241 return tmp_header.GetSubRunNo();
242 }

◆ GetSubRunNo() [10/12]

int GetSubRunNo ( int  n)
inlinevirtual

Get subrun #.

Implements RawFTSWFormat.

Definition at line 206 of file RawFTSWFormat_latest.h.

207 {
208 return (m_buffer[ GetBufferPos(n) + POS_EXP_RUN_NO ] & SUBRUNNO_MASK);
209 }

◆ GetSubRunNo() [11/12]

int GetSubRunNo ( int  n)
inlinevirtual

Get subrun #.

Implements RawFTSWFormat.

Definition at line 166 of file RawFTSWFormat_v1.h.

167 {
168 return (m_buffer[ GetBufferPos(n) + POS_EXP_RUN_NO ] & SUBRUNNO_MASK);
169 }

◆ GetSubRunNo() [12/12]

int GetSubRunNo ( int  n)
inlinevirtual

Get subrun #.

Implements RawFTSWFormat.

Definition at line 203 of file RawFTSWFormat_v2.h.

204 {
205 return (m_buffer[ GetBufferPos(n) + POS_EXP_RUN_NO ] & SUBRUNNO_MASK);
206 }

◆ GetTrailerChksum() [1/8]

unsigned int GetTrailerChksum ( int  n)
inline

Get checksum in RawTrailer.

Definition at line 602 of file RawCOPPER.h.

603 {
605 return m_access->GetTrailerChksum(n);
606 }
virtual unsigned int GetTrailerChksum(int n)=0
Get checksum in RawTrailer.

◆ GetTrailerChksum() [2/8]

unsigned int GetTrailerChksum ( int  n)
inlinevirtual

Get checksum in RawTrailer.

Implements RawCOPPERFormat.

Definition at line 272 of file PostRawCOPPERFormat_latest.h.

273 {
274 int pos_nwords = GetBufferPos(n) + GetBlockNwords(n) - tmp_trailer.GetTrlNwords() + tmp_trailer.POS_CHKSUM;
275 return (unsigned int)(m_buffer[ pos_nwords ]);
276 }

◆ GetTrailerChksum() [3/8]

unsigned int GetTrailerChksum ( int  n)
inlinevirtual

Get checksum in RawTrailer.

Implements RawCOPPERFormat.

Definition at line 340 of file PostRawCOPPERFormat_v1.h.

341 {
342 int pos_nwords = GetBufferPos(n) + GetBlockNwords(n) - tmp_trailer.GetTrlNwords() + tmp_trailer.POS_CHKSUM;
343 return (unsigned int)(m_buffer[ pos_nwords ]);
344 }

◆ GetTrailerChksum() [4/8]

unsigned int GetTrailerChksum ( int  n)
inlinevirtual

Get checksum in RawTrailer.

Implements RawCOPPERFormat.

Definition at line 352 of file PostRawCOPPERFormat_v2.h.

353 {
354 int pos_nwords = GetBufferPos(n) + GetBlockNwords(n) - tmp_trailer.GetTrlNwords() + tmp_trailer.POS_CHKSUM;
355 return (unsigned int)(m_buffer[ pos_nwords ]);
356 }

◆ GetTrailerChksum() [5/8]

unsigned int GetTrailerChksum ( int  n)
inlinevirtual

get a checksum on trailer

Implements RawCOPPERFormat.

Definition at line 297 of file PreRawCOPPERFormat_latest.h.

298 {
299 int pos_nwords = GetBufferPos(n) + GetBlockNwords(n) - tmp_trailer.GetTrlNwords() + tmp_trailer.POS_CHKSUM;
300 return (unsigned int)(m_buffer[ pos_nwords ]);
301 }

◆ GetTrailerChksum() [6/8]

unsigned int GetTrailerChksum ( int  n)
inlinevirtual

get a checksum on trailer

Implements RawCOPPERFormat.

Definition at line 408 of file PreRawCOPPERFormat_v1.h.

409 {
410 int pos_nwords = GetBufferPos(n) + GetBlockNwords(n) - tmp_trailer.GetTrlNwords() + tmp_trailer.POS_CHKSUM;
411 return (unsigned int)(m_buffer[ pos_nwords ]);
412 }

◆ GetTrailerChksum() [7/8]

unsigned int GetTrailerChksum ( int  n)
inlinevirtual

get a checksum on trailer

Implements RawCOPPERFormat.

Definition at line 408 of file PreRawCOPPERFormat_v2.h.

409 {
410 int pos_nwords = GetBufferPos(n) + GetBlockNwords(n) - tmp_trailer.GetTrlNwords() + tmp_trailer.POS_CHKSUM;
411 return (unsigned int)(m_buffer[ pos_nwords ]);
412 }

◆ GetTrailerChksum() [8/8]

unsigned int GetTrailerChksum ( int  n)
inlinevirtual

Get checksum in RawTrailer.

Implements RawCOPPERFormat.

Definition at line 646 of file RawCOPPERFormat_v0.h.

647 {
648 int pos_nwords = GetBufferPos(n) + GetBlockNwords(n) - tmp_trailer.GetTrlNwords() + tmp_trailer.POS_CHKSUM;
649 return (unsigned int)(m_buffer[ pos_nwords ]);
650 }

◆ GetTRGType() [1/9]

int GetTRGType ( )
inline

get TRGType

Definition at line 431 of file RawHeader_latest.h.

432 {
434 return (int)(GetTTCtimeTRGType() & TRGTYPE_MASK);
435 }
unsigned int GetTTCtimeTRGType()
get contents of header

◆ GetTRGType() [2/9]

int GetTRGType ( )
inline

get TRGType

Definition at line 481 of file RawHeader_v0.h.

482 {
484 return (int)(GetTTCtimeTRGType() & TRGTYPE_MASK);
485 }

◆ GetTRGType() [3/9]

int GetTRGType ( )
inline

get TRGType

Definition at line 460 of file RawHeader_v1.h.

461 {
463 return (int)(GetTTCtimeTRGType() & TRGTYPE_MASK);
464 }

◆ GetTRGType() [4/9]

int GetTRGType ( )
inline

get TRGType

Definition at line 495 of file RawHeader_v2.h.

496 {
498 return (int)(GetTTCtimeTRGType() & TRGTYPE_MASK);
499 }

◆ GetTRGType() [5/9]

int GetTRGType ( int  n)
inline

Get trgtype.

Definition at line 626 of file RawCOPPER.h.

627 {
629 return m_access->GetTRGType(n);
630 }
virtual int GetTRGType(int n)=0
Get trgtype.

◆ GetTRGType() [6/9]

int GetTRGType ( int  n)
inlinevirtual

Get trgtype.

Implements RawCOPPERFormat.

Definition at line 381 of file RawCOPPERFormat_latest.h.

382 {
384 return tmp_header.GetTRGType();
385 }
int GetTRGType()
get TRGType

◆ GetTRGType() [7/9]

int GetTRGType ( int  n)
inlinevirtual

Get trgtype.

Implements RawCOPPERFormat.

Definition at line 672 of file RawCOPPERFormat_v0.h.

673 {
675 return tmp_header.GetTRGType();
676 }

◆ GetTRGType() [8/9]

int GetTRGType ( int  n)
inlinevirtual

Get trgtype.

Implements RawCOPPERFormat.

Definition at line 334 of file RawCOPPERFormat_v1.h.

335 {
337 return tmp_header.GetTRGType();
338 }

◆ GetTRGType() [9/9]

int GetTRGType ( int  n)
inlinevirtual

Get trgtype.

Implements RawCOPPERFormat.

Definition at line 358 of file RawCOPPERFormat_v2.h.

359 {
361 return tmp_header.GetTRGType();
362 }

◆ GetTrlNwords() [1/4]

int GetTrlNwords ( )
inline

Set magic word.

Definition at line 132 of file RawTrailer_latest.h.

133 {
134 return RAWTRAILER_NWORDS;
135 }

◆ GetTrlNwords() [2/4]

int GetTrlNwords ( )
inline

Set magic word.

Definition at line 129 of file RawTrailer_v0.h.

130 {
131 return RAWTRAILER_NWORDS;
132 }

◆ GetTrlNwords() [3/4]

int GetTrlNwords ( )
inline

Set magic word.

Definition at line 132 of file RawTrailer_v1.h.

133 {
134 return RAWTRAILER_NWORDS;
135 }

◆ GetTrlNwords() [4/4]

int GetTrlNwords ( )
inline

Set magic word.

Definition at line 130 of file RawTrailer_v2.h.

131 {
132 return RAWTRAILER_NWORDS;
133 }

◆ GetTruncMask() [1/9]

int GetTruncMask ( )
inline

get contents of header

Definition at line 373 of file RawHeader_latest.h.

374 {
376 return (m_buffer[ POS_TRUNC_MASK_DATATYPE ] >> 23) & 0x1;
377 }

◆ GetTruncMask() [2/9]

int GetTruncMask ( )
inline

get contents of header

Definition at line 420 of file RawHeader_v0.h.

421 {
423 return (m_buffer[ POS_TRUNC_MASK_DATATYPE ] >> 23) & 0x1;
424 }

◆ GetTruncMask() [3/9]

int GetTruncMask ( )
inline

get contents of header

Definition at line 399 of file RawHeader_v1.h.

400 {
402 return (m_buffer[ POS_TRUNC_MASK_DATATYPE ] >> 23) & 0x1;
403 }

◆ GetTruncMask() [4/9]

int GetTruncMask ( )
inline

get contents of header

Definition at line 414 of file RawHeader_v2.h.

415 {
417 return (m_buffer[ POS_TRUNC_MASK_DATATYPE ] >> 23) & 0x1;
418 }

◆ GetTruncMask() [5/9]

int GetTruncMask ( int  n)
inline

get contents of header

Definition at line 410 of file RawCOPPER.h.

411 {
413 return m_access->GetTruncMask(n);
414 }
virtual int GetTruncMask(int n)=0
get contents of header

◆ GetTruncMask() [6/9]

int GetTruncMask ( int  n)
inlinevirtual

get contents of header

Implements RawCOPPERFormat.

Definition at line 332 of file RawCOPPERFormat_latest.h.

333 {
335 return tmp_header.GetTruncMask();
336 }
int GetTruncMask()
get contents of header

◆ GetTruncMask() [7/9]

int GetTruncMask ( int  n)
inlinevirtual

get contents of header

Implements RawCOPPERFormat.

Definition at line 445 of file RawCOPPERFormat_v0.h.

446 {
448 return tmp_header.GetTruncMask();
449 }

◆ GetTruncMask() [8/9]

int GetTruncMask ( int  n)
inlinevirtual

get contents of header

Implements RawCOPPERFormat.

Definition at line 253 of file RawCOPPERFormat_v1.h.

254 {
256 return tmp_header.GetTruncMask();
257 }

◆ GetTruncMask() [9/9]

int GetTruncMask ( int  n)
inlinevirtual

get contents of header

Implements RawCOPPERFormat.

Definition at line 264 of file RawCOPPERFormat_v2.h.

265 {
267 return tmp_header.GetTruncMask();
268 }

◆ GetTTCtime() [1/9]

int GetTTCtime ( )
inline

get contents of header

Definition at line 425 of file RawHeader_latest.h.

426 {
428 return (int)((GetTTCtimeTRGType() & TTCTIME_MASK) >> TTCTIME_SHIFT);
429 }

◆ GetTTCtime() [2/9]

int GetTTCtime ( )
inline

get contents of header

Definition at line 475 of file RawHeader_v0.h.

476 {
478 return (int)((GetTTCtimeTRGType() & TTCTIME_MASK) >> TTCTIME_SHIFT);
479 }

◆ GetTTCtime() [3/9]

int GetTTCtime ( )
inline

get contents of header

Definition at line 454 of file RawHeader_v1.h.

455 {
457 return (int)((GetTTCtimeTRGType() & TTCTIME_MASK) >> TTCTIME_SHIFT);
458 }

◆ GetTTCtime() [4/9]

int GetTTCtime ( )
inline

get contents of header

Definition at line 489 of file RawHeader_v2.h.

490 {
492 return (int)((GetTTCtimeTRGType() & TTCTIME_MASK) >> TTCTIME_SHIFT);
493 }

◆ GetTTCtime() [5/9]

int GetTTCtime ( int  n)
inline

Get ctime.

Definition at line 620 of file RawCOPPER.h.

621 {
623 return m_access->GetTTCtime(n);
624 }
virtual int GetTTCtime(int n)=0
Get ctime.

◆ GetTTCtime() [6/9]

int GetTTCtime ( int  n)
inlinevirtual

Get ctime.

Implements RawCOPPERFormat.

Definition at line 375 of file RawCOPPERFormat_latest.h.

376 {
378 return tmp_header.GetTTCtime();
379 }
int GetTTCtime()
get contents of header

◆ GetTTCtime() [7/9]

int GetTTCtime ( int  n)
inlinevirtual

Get ctime.

Implements RawCOPPERFormat.

Definition at line 666 of file RawCOPPERFormat_v0.h.

667 {
669 return tmp_header.GetTTCtime();
670 }

◆ GetTTCtime() [8/9]

int GetTTCtime ( int  n)
inlinevirtual

Get ctime.

Implements RawCOPPERFormat.

Definition at line 328 of file RawCOPPERFormat_v1.h.

329 {
331 return tmp_header.GetTTCtime();
332 }

◆ GetTTCtime() [9/9]

int GetTTCtime ( int  n)
inlinevirtual

Get ctime.

Implements RawCOPPERFormat.

Definition at line 352 of file RawCOPPERFormat_v2.h.

353 {
355 return tmp_header.GetTTCtime();
356 }

◆ GetTTCtimeTRGType() [1/9]

unsigned int GetTTCtimeTRGType ( )
inline

get contents of header

Definition at line 419 of file RawHeader_latest.h.

420 {
422 return (unsigned int)(m_buffer[ POS_TTCTIME_TRGTYPE ]);
423 }

◆ GetTTCtimeTRGType() [2/9]

unsigned int GetTTCtimeTRGType ( )
inline

get contents of header

Definition at line 469 of file RawHeader_v0.h.

470 {
472 return (unsigned int)(m_buffer[ POS_TTCTIME_TRGTYPE ]);
473 }

◆ GetTTCtimeTRGType() [3/9]

unsigned int GetTTCtimeTRGType ( )
inline

get contents of header

Definition at line 448 of file RawHeader_v1.h.

449 {
451 return (unsigned int)(m_buffer[ POS_TTCTIME_TRGTYPE ]);
452 }

◆ GetTTCtimeTRGType() [4/9]

unsigned int GetTTCtimeTRGType ( )
inline

get contents of header

Definition at line 483 of file RawHeader_v2.h.

484 {
486 return (unsigned int)(m_buffer[ POS_TTCTIME_TRGTYPE ]);
487 }

◆ GetTTCtimeTRGType() [5/9]

unsigned int GetTTCtimeTRGType ( int  n)
inline

Check if COPPER Magic words are correct.

Definition at line 608 of file RawCOPPER.h.

609 {
611 return m_access->GetTTCtimeTRGType(n);
612 }
virtual unsigned int GetTTCtimeTRGType(int n)=0
Check if COPPER Magic words are correct.

◆ GetTTCtimeTRGType() [6/9]

unsigned int GetTTCtimeTRGType ( int  n)
inlinevirtual

get b2l block from "FEE b2link header"

Check if COPPER Magic words are correct

Implements RawCOPPERFormat.

Definition at line 363 of file RawCOPPERFormat_latest.h.

364 {
367 }

◆ GetTTCtimeTRGType() [7/9]

unsigned int GetTTCtimeTRGType ( int  n)
inlinevirtual

Check if COPPER Magic words are correct.

Implements RawCOPPERFormat.

Definition at line 653 of file RawCOPPERFormat_v0.h.

654 {
657 }

◆ GetTTCtimeTRGType() [8/9]

unsigned int GetTTCtimeTRGType ( int  n)
inlinevirtual

get b2l block from "FEE b2link header"

Check if COPPER Magic words are correct

Implements RawCOPPERFormat.

Definition at line 316 of file RawCOPPERFormat_v1.h.

317 {
320 }

◆ GetTTCtimeTRGType() [9/9]

unsigned int GetTTCtimeTRGType ( int  n)
inlinevirtual

get b2l block from "FEE b2link header"

Check if COPPER Magic words are correct

Implements RawCOPPERFormat.

Definition at line 340 of file RawCOPPERFormat_v2.h.

341 {
344 }

◆ GetTTTimeVal() [1/9]

void GetTTTimeVal ( int  n,
struct timeval *  tv 
)
inline

Get timeval.

Definition at line 632 of file RawCOPPER.h.

633 {
635 return m_access->GetTTTimeVal(n, tv);
636 }
virtual void GetTTTimeVal(int n, struct timeval *tv)=0
Get timeval.

◆ GetTTTimeVal() [2/9]

void GetTTTimeVal ( int  n,
struct timeval *  tv 
)
inlinevirtual

Get timeval.

Implements RawCOPPERFormat.

Definition at line 387 of file RawCOPPERFormat_latest.h.

388 {
391 return ;
392 }
void GetTTTimeVal(struct timeval *tv)
get contents of header

◆ GetTTTimeVal() [3/9]

void GetTTTimeVal ( int  n,
struct timeval *  tv 
)
inlinevirtual

Get timeval.

Implements RawCOPPERFormat.

Definition at line 678 of file RawCOPPERFormat_v0.h.

679 {
682 return ;
683 }

◆ GetTTTimeVal() [4/9]

void GetTTTimeVal ( int  n,
struct timeval *  tv 
)
inlinevirtual

Get timeval.

Implements RawCOPPERFormat.

Definition at line 340 of file RawCOPPERFormat_v1.h.

341 {
344 return ;
345 }

◆ GetTTTimeVal() [5/9]

void GetTTTimeVal ( int  n,
struct timeval *  tv 
)
inlinevirtual

Get timeval.

Implements RawCOPPERFormat.

Definition at line 364 of file RawCOPPERFormat_v2.h.

365 {
368 return ;
369 }

◆ GetTTTimeVal() [6/9]

void GetTTTimeVal ( struct timeval *  tv)
inline

get contents of header

Definition at line 443 of file RawHeader_latest.h.

444 {
445 tv->tv_sec = GetTTUtime();
446 tv->tv_usec = (int)(((double)GetTTCtime()) / 127.216);
447 return ;
448 }
unsigned int GetTTUtime()
get contents of header

◆ GetTTTimeVal() [7/9]

void GetTTTimeVal ( struct timeval *  tv)
inline

get contents of header

Definition at line 494 of file RawHeader_v0.h.

495 {
496 tv->tv_sec = GetTTUtime();
497 tv->tv_usec = (int)(((double)GetTTCtime()) / 127.216);
498 return ;
499 }

◆ GetTTTimeVal() [8/9]

void GetTTTimeVal ( struct timeval *  tv)
inline

get contents of header

Definition at line 472 of file RawHeader_v1.h.

473 {
474 tv->tv_sec = GetTTUtime();
475 tv->tv_usec = (int)(((double)GetTTCtime()) / 127.216);
476 return ;
477 }

◆ GetTTTimeVal() [9/9]

void GetTTTimeVal ( struct timeval *  tv)
inline

get contents of header

Definition at line 507 of file RawHeader_v2.h.

508 {
509 tv->tv_sec = GetTTUtime();
510 tv->tv_usec = (int)(((double)GetTTCtime()) / 127.216);
511 return ;
512 }

◆ GetTTUtime() [1/9]

unsigned int GetTTUtime ( )
inline

get contents of header

Definition at line 437 of file RawHeader_latest.h.

438 {
440 return (unsigned int)(m_buffer[ POS_TTUTIME ]);
441 }

◆ GetTTUtime() [2/9]

unsigned int GetTTUtime ( )
inline

get contents of header

Definition at line 488 of file RawHeader_v0.h.

489 {
491 return (unsigned int)(m_buffer[ POS_TTUTIME ]);
492 }

◆ GetTTUtime() [3/9]

unsigned int GetTTUtime ( )
inline

get contents of header

Definition at line 466 of file RawHeader_v1.h.

467 {
469 return (unsigned int)(m_buffer[ POS_TTUTIME ]);
470 }

◆ GetTTUtime() [4/9]

unsigned int GetTTUtime ( )
inline

get contents of header

Definition at line 501 of file RawHeader_v2.h.

502 {
504 return (unsigned int)(m_buffer[ POS_TTUTIME ]);
505 }

◆ GetTTUtime() [5/9]

unsigned int GetTTUtime ( int  n)
inline

Check if COPPER Magic words are correct.

Definition at line 614 of file RawCOPPER.h.

615 {
617 return m_access->GetTTUtime(n);
618 }
virtual unsigned int GetTTUtime(int n)=0
Check if COPPER Magic words are correct.

◆ GetTTUtime() [6/9]

unsigned int GetTTUtime ( int  n)
inlinevirtual

Check if COPPER Magic words are correct.

Implements RawCOPPERFormat.

Definition at line 369 of file RawCOPPERFormat_latest.h.

370 {
372 return tmp_header.GetTTUtime();
373 }

◆ GetTTUtime() [7/9]

unsigned int GetTTUtime ( int  n)
inlinevirtual

Check if COPPER Magic words are correct.

Implements RawCOPPERFormat.

Definition at line 659 of file RawCOPPERFormat_v0.h.

660 {
662 return tmp_header.GetTTUtime();
663 }

◆ GetTTUtime() [8/9]

unsigned int GetTTUtime ( int  n)
inlinevirtual

Check if COPPER Magic words are correct.

Implements RawCOPPERFormat.

Definition at line 322 of file RawCOPPERFormat_v1.h.

323 {
325 return tmp_header.GetTTUtime();
326 }

◆ GetTTUtime() [9/9]

unsigned int GetTTUtime ( int  n)
inlinevirtual

Check if COPPER Magic words are correct.

Implements RawCOPPERFormat.

Definition at line 346 of file RawCOPPERFormat_v2.h.

347 {
349 return tmp_header.GetTTUtime();
350 }

◆ Initialize() [1/5]

void Initialize ( )
inline

initialize header

Definition at line 253 of file RawHeader_v0.h.

254 {
256 memset(m_buffer, 0, sizeof(int)*RAWHEADER_NWORDS);
257 m_buffer[ POS_HDR_NWORDS ] = RAWHEADER_NWORDS;
258 m_buffer[ POS_NUM_NODES ] = 0;
259
260 }
void CheckSetBuffer()
initialize header
Definition: RawHeader_v0.h:230

◆ Initialize() [2/5]

void Initialize ( )
inline

set buffer

Definition at line 103 of file RawTrailer_latest.h.

104 {
105 SetMagicWord();
106 }
void SetMagicWord()
initialize header

◆ Initialize() [3/5]

void Initialize ( )
inline

set buffer

Definition at line 100 of file RawTrailer_v0.h.

101 {
102 SetMagicWord();
103 }

◆ Initialize() [4/5]

void Initialize ( )
inline

set buffer

Definition at line 103 of file RawTrailer_v1.h.

104 {
105 SetMagicWord();
106 }

◆ Initialize() [5/5]

void Initialize ( )
inline

set buffer

Definition at line 101 of file RawTrailer_v2.h.

102 {
103 SetMagicWord();
104 }

◆ SetBuffer() [1/4]

void SetBuffer ( int *  bufin)
inline

return buffer

Definition at line 98 of file RawTrailer_latest.h.

99 {
100 m_buffer = bufin;
101 }

◆ SetBuffer() [2/4]

void SetBuffer ( int *  bufin)
inline

return buffer

Definition at line 95 of file RawTrailer_v0.h.

96 {
97 m_buffer = bufin;
98 }

◆ SetBuffer() [3/4]

void SetBuffer ( int *  bufin)
inline

return buffer

Definition at line 98 of file RawTrailer_v1.h.

99 {
100 m_buffer = bufin;
101 }

◆ SetBuffer() [4/4]

void SetBuffer ( int *  bufin)
inline

return buffer

Definition at line 96 of file RawTrailer_v2.h.

97 {
98 m_buffer = bufin;
99 }

◆ SetChksum() [1/4]

void SetChksum ( int  chksum)
inline

set buffer

Definition at line 108 of file RawTrailer_latest.h.

109 {
110 CheckBuffer();
111 m_buffer[ POS_CHKSUM ] = chksum;
112 }

◆ SetChksum() [2/4]

void SetChksum ( int  chksum)
inline

set buffer

Definition at line 105 of file RawTrailer_v0.h.

106 {
107 CheckBuffer();
108 m_buffer[ POS_CHKSUM ] = chksum;
109 }

◆ SetChksum() [3/4]

void SetChksum ( int  chksum)
inline

set buffer

Definition at line 108 of file RawTrailer_v1.h.

109 {
110 CheckBuffer();
111 m_buffer[ POS_CHKSUM ] = chksum;
112 }

◆ SetChksum() [4/4]

void SetChksum ( int  chksum)
inline

set buffer

Definition at line 106 of file RawTrailer_v2.h.

107 {
108 CheckBuffer();
109 m_buffer[ POS_CHKSUM ] = chksum;
110 }

◆ SetDataType() [1/4]

void SetDataType ( int  data_type)
inline

set contents of header

Definition at line 277 of file RawHeader_latest.h.

278 {
280 m_buffer[ POS_TRUNC_MASK_DATATYPE ] =
281 (data_type & 0x7FFFFFFF) | (m_buffer[ POS_TRUNC_MASK_DATATYPE ] & 0x80000000);
282 }

◆ SetDataType() [2/4]

void SetDataType ( int  data_type)
inline

set contents of header

Definition at line 286 of file RawHeader_v0.h.

287 {
289 m_buffer[ POS_TRUNC_MASK_DATATYPE ] =
290 (data_type & 0x7FFFFFFF) | (m_buffer[ POS_TRUNC_MASK_DATATYPE ] & 0x80000000);
291 }

◆ SetDataType() [3/4]

void SetDataType ( int  data_type)
inline

set contents of header

Definition at line 266 of file RawHeader_v1.h.

267 {
269 m_buffer[ POS_TRUNC_MASK_DATATYPE ] =
270 (data_type & 0x7FFFFFFF) | (m_buffer[ POS_TRUNC_MASK_DATATYPE ] & 0x80000000);
271 }

◆ SetDataType() [4/4]

void SetDataType ( int  data_type)
inline

set contents of header

Definition at line 280 of file RawHeader_v2.h.

281 {
283 m_buffer[ POS_TRUNC_MASK_DATATYPE ] =
284 (data_type & 0x7FFFFFFF) | (m_buffer[ POS_TRUNC_MASK_DATATYPE ] & 0x80000000);
285 }

◆ SetEveNo() [1/4]

void SetEveNo ( unsigned int  eve_no)
inline

set contents of header

Definition at line 265 of file RawHeader_latest.h.

266 {
268 m_buffer[ POS_EVE_NO ] = eve_no;
269 }

◆ SetEveNo() [2/4]

void SetEveNo ( unsigned int  eve_no)
inline

set contents of header

Definition at line 274 of file RawHeader_v0.h.

275 {
277 m_buffer[ POS_EVE_NO ] = eve_no;
278 }

◆ SetEveNo() [3/4]

void SetEveNo ( unsigned int  eve_no)
inline

set contents of header

Definition at line 254 of file RawHeader_v1.h.

255 {
257 m_buffer[ POS_EVE_NO ] = eve_no;
258 }

◆ SetEveNo() [4/4]

void SetEveNo ( unsigned int  eve_no)
inline

set contents of header

Definition at line 268 of file RawHeader_v2.h.

269 {
271 m_buffer[ POS_EVE_NO ] = eve_no;
272 }

◆ SetExpRunNumber() [1/4]

void SetExpRunNumber ( int *  exprun_buf)
inline

Set a word consists of exp #, run # and subrun #.

Definition at line 301 of file RawHeader_latest.h.

302 {
304 memcpy(&(m_buffer[ POS_EXP_RUN_NO ]), (char*)exprun_buf, sizeof(int) * 1);
305 return;
306 }

◆ SetExpRunNumber() [2/4]

void SetExpRunNumber ( int *  exprun_buf)
inline

Set a word consists of exp #, run # and subrun #.

Definition at line 348 of file RawHeader_v0.h.

349 {
351 memcpy(&(m_buffer[ POS_EXP_RUN_NO ]), (char*)exprun_buf, sizeof(int) * 1);
352 return;
353 }

◆ SetExpRunNumber() [3/4]

void SetExpRunNumber ( int *  exprun_buf)
inline

Set a word consists of exp #, run # and subrun #.

Definition at line 328 of file RawHeader_v1.h.

329 {
331 memcpy(&(m_buffer[ POS_EXP_RUN_NO ]), (char*)exprun_buf, sizeof(int) * 1);
332 return;
333 }

◆ SetExpRunNumber() [4/4]

void SetExpRunNumber ( int *  exprun_buf)
inline

Set a word consists of exp #, run # and subrun #.

Definition at line 342 of file RawHeader_v2.h.

343 {
345 memcpy(&(m_buffer[ POS_EXP_RUN_NO ]), (char*)exprun_buf, sizeof(int) * 1);
346 return;
347 }

◆ SetFTSW2Words() [1/4]

void SetFTSW2Words ( unsigned int  word1,
unsigned int  word2 
)
inline

Set values of FTSW info( trigger timing)

Definition at line 291 of file RawHeader_latest.h.

293 {
295 m_buffer[ POS_TTCTIME_TRGTYPE ] = word1;
296 m_buffer[ POS_TTUTIME ] = word2;
297 return;
298 }

◆ SetFTSW2Words() [2/4]

void SetFTSW2Words ( unsigned int  word1,
unsigned int  word2 
)
inline

set contents of header

Set values of FTSW info( trigger timing)

Definition at line 338 of file RawHeader_v0.h.

340 {
342 m_buffer[ POS_TTCTIME_TRGTYPE ] = word1;
343 m_buffer[ POS_TTUTIME ] = word2;
344 return;
345 }

◆ SetFTSW2Words() [3/4]

void SetFTSW2Words ( unsigned int  word1,
unsigned int  word2 
)
inline

Set values of FTSW info( trigger timing)

Definition at line 318 of file RawHeader_v1.h.

320 {
322 m_buffer[ POS_TTCTIME_TRGTYPE ] = word1;
323 m_buffer[ POS_TTUTIME ] = word2;
324 return;
325 }

◆ SetFTSW2Words() [4/4]

void SetFTSW2Words ( unsigned int  word1,
unsigned int  word2 
)
inline

Set values of FTSW info( trigger timing)

Definition at line 332 of file RawHeader_v2.h.

334 {
336 m_buffer[ POS_TTCTIME_TRGTYPE ] = word1;
337 m_buffer[ POS_TTUTIME ] = word2;
338 return;
339 }

◆ SetMagicWord() [1/4]

void SetMagicWord ( )
inline

initialize header

Definition at line 114 of file RawTrailer_latest.h.

115 {
116 CheckBuffer();
117 m_buffer[ POS_TERM_WORD ] = MAGIC_WORD_TERM_TRAILER;
118 }

◆ SetMagicWord() [2/4]

void SetMagicWord ( )
inline

initialize header

Definition at line 111 of file RawTrailer_v0.h.

112 {
113 CheckBuffer();
114 m_buffer[ POS_TERM_WORD ] = MAGIC_WORD_TERM_TRAILER;
115 }

◆ SetMagicWord() [3/4]

void SetMagicWord ( )
inline

initialize header

Definition at line 114 of file RawTrailer_v1.h.

115 {
116 CheckBuffer();
117 m_buffer[ POS_TERM_WORD ] = MAGIC_WORD_TERM_TRAILER;
118 }

◆ SetMagicWord() [4/4]

void SetMagicWord ( )
inline

initialize header

Definition at line 112 of file RawTrailer_v2.h.

113 {
114 CheckBuffer();
115 m_buffer[ POS_TERM_WORD ] = MAGIC_WORD_TERM_TRAILER;
116 }

◆ SetMagicWordEntireHeader()

void SetMagicWordEntireHeader ( )
inline

set contents of header

Definition at line 262 of file RawHeader_v0.h.

263 {
264 m_buffer[ POS_TERM_HEADER ] = MAGIC_WORD_TERM_HEADER;
265 }

◆ SetNodeID() [1/4]

void SetNodeID ( unsigned int  node_id)
inline

set contents of header

Definition at line 271 of file RawHeader_latest.h.

272 {
274 m_buffer[ POS_NODE_ID ] = (int)node_id;
275 }

◆ SetNodeID() [2/4]

void SetNodeID ( unsigned int  node_id)
inline

set contents of header

Definition at line 280 of file RawHeader_v0.h.

281 {
283 m_buffer[ POS_NODE_ID ] = node_id;
284 }

◆ SetNodeID() [3/4]

void SetNodeID ( unsigned int  node_id)
inline

set contents of header

Definition at line 260 of file RawHeader_v1.h.

261 {
263 m_buffer[ POS_NODE_ID ] = (int)node_id;
264 }

◆ SetNodeID() [4/4]

void SetNodeID ( unsigned int  node_id)
inline

set contents of header

Definition at line 274 of file RawHeader_v2.h.

275 {
277 m_buffer[ POS_NODE_ID ] = (int)node_id;
278 }

◆ SetNwords() [1/4]

void SetNwords ( int  nwords)
inline

set contents of header

Definition at line 258 of file RawHeader_latest.h.

259 {
261 m_buffer[ POS_NWORDS ] = nwords;
262
263 }

◆ SetNwords() [2/4]

void SetNwords ( int  nwords)
inline

set contents of header

Definition at line 267 of file RawHeader_v0.h.

268 {
270 m_buffer[ POS_NWORDS ] = nwords;
271
272 }

◆ SetNwords() [3/4]

void SetNwords ( int  nwords)
inline

set contents of header

Definition at line 247 of file RawHeader_v1.h.

248 {
250 m_buffer[ POS_NWORDS ] = nwords;
251
252 }

◆ SetNwords() [4/4]

void SetNwords ( int  nwords)
inline

set contents of header

Definition at line 261 of file RawHeader_v2.h.

262 {
264 m_buffer[ POS_NWORDS ] = nwords;
265
266 }

◆ SetOffset1stFINESSE() [1/3]

void SetOffset1stFINESSE ( int  offset_1st_FINESSE)
inline

set contents of header

Definition at line 307 of file RawHeader_v0.h.

308 {
310 m_buffer[ POS_OFFSET_1ST_FINESSE ] = offset_1st_FINESSE;
311 }

◆ SetOffset1stFINESSE() [2/3]

void SetOffset1stFINESSE ( int  offset_1st_FINESSE)
inline

set contents of header

Definition at line 287 of file RawHeader_v1.h.

288 {
290 m_buffer[ POS_OFFSET_1ST_FINESSE ] = offset_1st_FINESSE;
291 }

◆ SetOffset1stFINESSE() [3/3]

void SetOffset1stFINESSE ( int  offset_1st_FINESSE)
inline

set contents of header

Definition at line 301 of file RawHeader_v2.h.

302 {
304 m_buffer[ POS_OFFSET_1ST_FINESSE ] = offset_1st_FINESSE;
305 }

◆ SetOffset2ndFINESSE() [1/3]

void SetOffset2ndFINESSE ( int  offset_2nd_FINESSE)
inline

set contents of header

Definition at line 313 of file RawHeader_v0.h.

314 {
316 m_buffer[ POS_OFFSET_2ND_FINESSE ] = offset_2nd_FINESSE;
317 }

◆ SetOffset2ndFINESSE() [2/3]

void SetOffset2ndFINESSE ( int  offset_2nd_FINESSE)
inline

set contents of header

Definition at line 293 of file RawHeader_v1.h.

294 {
296 m_buffer[ POS_OFFSET_2ND_FINESSE ] = offset_2nd_FINESSE;
297 }

◆ SetOffset2ndFINESSE() [3/3]

void SetOffset2ndFINESSE ( int  offset_2nd_FINESSE)
inline

set contents of header

Definition at line 307 of file RawHeader_v2.h.

308 {
310 m_buffer[ POS_OFFSET_2ND_FINESSE ] = offset_2nd_FINESSE;
311 }

◆ SetOffset3rdFINESSE() [1/3]

void SetOffset3rdFINESSE ( int  offset_3rd_FINESSE)
inline

set contents of header

Definition at line 319 of file RawHeader_v0.h.

320 {
322 m_buffer[ POS_OFFSET_3RD_FINESSE ] = offset_3rd_FINESSE;
323 }

◆ SetOffset3rdFINESSE() [2/3]

void SetOffset3rdFINESSE ( int  offset_3rd_FINESSE)
inline

set contents of header

Definition at line 299 of file RawHeader_v1.h.

300 {
302 m_buffer[ POS_OFFSET_3RD_FINESSE ] = offset_3rd_FINESSE;
303 }

◆ SetOffset3rdFINESSE() [3/3]

void SetOffset3rdFINESSE ( int  offset_3rd_FINESSE)
inline

set contents of header

Definition at line 313 of file RawHeader_v2.h.

314 {
316 m_buffer[ POS_OFFSET_3RD_FINESSE ] = offset_3rd_FINESSE;
317 }

◆ SetOffset4thFINESSE() [1/3]

void SetOffset4thFINESSE ( int  offset_4th_FINESSE)
inline

set contents of header

Definition at line 325 of file RawHeader_v0.h.

326 {
328 m_buffer[ POS_OFFSET_4TH_FINESSE ] = offset_4th_FINESSE;
329 }

◆ SetOffset4thFINESSE() [2/3]

void SetOffset4thFINESSE ( int  offset_4th_FINESSE)
inline

set contents of header

Definition at line 305 of file RawHeader_v1.h.

306 {
308 m_buffer[ POS_OFFSET_4TH_FINESSE ] = offset_4th_FINESSE;
309 }

◆ SetOffset4thFINESSE() [3/3]

void SetOffset4thFINESSE ( int  offset_4th_FINESSE)
inline

set contents of header

Definition at line 319 of file RawHeader_v2.h.

320 {
322 m_buffer[ POS_OFFSET_4TH_FINESSE ] = offset_4th_FINESSE;
323 }

◆ SetTruncMask() [1/4]

void SetTruncMask ( int  trunc_mask)
inline

set contents of header

Definition at line 284 of file RawHeader_latest.h.

285 {
287 /* cppcheck-suppress shiftTooManyBitsSigned */
288 m_buffer[ POS_TRUNC_MASK_DATATYPE ] = (trunc_mask << 31) | (m_buffer[ POS_TRUNC_MASK_DATATYPE ] & 0x7FFFFFFF);
289 }

◆ SetTruncMask() [2/4]

void SetTruncMask ( int  trunc_mask)
inline

set contents of header

Definition at line 293 of file RawHeader_v0.h.

294 {
296 /* cppcheck-suppress shiftTooManyBitsSigned */
297 m_buffer[ POS_TRUNC_MASK_DATATYPE ] = (trunc_mask << 31) | (m_buffer[ POS_TRUNC_MASK_DATATYPE ] & 0x7FFFFFFF);
298 }

◆ SetTruncMask() [3/4]

void SetTruncMask ( int  trunc_mask)
inline

set contents of header

Definition at line 273 of file RawHeader_v1.h.

274 {
276 /* cppcheck-suppress shiftTooManyBitsSigned */
277 m_buffer[ POS_TRUNC_MASK_DATATYPE ] = (trunc_mask << 31) | (m_buffer[ POS_TRUNC_MASK_DATATYPE ] & 0x7FFFFFFF);
278 }

◆ SetTruncMask() [4/4]

void SetTruncMask ( int  trunc_mask)
inline

set contents of header

Definition at line 287 of file RawHeader_v2.h.

288 {
290 /* cppcheck-suppress shiftTooManyBitsSigned */
291 m_buffer[ POS_TRUNC_MASK_DATATYPE ] = (trunc_mask << 31) | (m_buffer[ POS_TRUNC_MASK_DATATYPE ] & 0x7FFFFFFF);
292 }