Public Member Functions | |
RawDataBlock (const uint32_t buffersize=DEFAULT_DATABLOCK_SIZE, const uint32_t tlvl=0, const version_t version=datablockheader::RAWDATABLOCKHEADER_LATEST_VERSION) | |
RawDataBlock (const RawDataBlock ©_in) | |
The default constructor. More... | |
RawDataBlock (const void *datablock_buffer, const version_t version=rawdaqdataformat::DAQDATAFORMAT_UNKNOWN_VERSION, const uint32_t buffersize=DEFAULT_DATABLOCK_SIZE) | |
Deep copy constructor. More... | |
~RawDataBlock () | |
Destructor. More... | |
bool | addMicroBlock (const void *microblock_buffer, const bool check_mc_flag=true) |
bool | addMicroBlock (const void *microblock_buffer, const uint32_t microblock_size, const bool check_mc_flag=true) |
bool | addMicroBlock (const void *millislice_buffer, const void *microslice_buffer, const version_t microblock_version=microblock::RAWMICROBLOCK_LATEST_VERSION, const bool check_mc_flag=true) |
bool | addMicroBlock (const void *millislice_buffer, const void *microslice_buffer, const uint32_t microslice_size, const version_t microblock_version=microblock::RAWMICROBLOCK_LATEST_VERSION, const bool check_mc_flag=true) |
bool | addDCMData (const void *dcmdata_buffer) |
bool | addDCMData (const void *dcmdata_buffer, const uint32_t dcmdata_size) |
bool | close (bool produce_crc=false) |
IMPLEMENT_MAIN_STANDARD IMPLEMENT_MAIN_setBufferSource readDataStatus | readData (const int fd) |
IMPLEMENT_GET_MAIN (Version, uint32_t) | |
IMPLEMENT_GET_MAIN (Marker, uint32_t) | |
IMPLEMENT_GET_MAIN (DataSize, uint32_t) | |
Protected Member Functions | |
bool | setFunctionPointers () |
bool | addMicroBlock1 (const void *, const bool) |
These functions are not allowed to be executed as public. More... | |
bool | addMicroBlock2 (const void *, const uint32_t, const bool) |
bool | addMicroBlock3 (const void *, const void *, const version_t, const bool) |
bool | addMicroBlock4 (const void *, const void *, const uint32_t, const version_t, const bool) |
bool | addDCMData1 (const void *) |
bool | addDCMData2 (const void *, const uint32_t) |
Definition at line 27 of file RawDataBlock.h.
daqdataformats::RawDataBlock::RawDataBlock | ( | const uint32_t | buffersize = DEFAULT_DATABLOCK_SIZE , |
const uint32_t | tlvl = 0 , |
||
const version_t | version = datablockheader::RAWDATABLOCKHEADER_LATEST_VERSION |
||
) |
Constructors I had to put version at the end, so that it would be compatible with the old BufferNodeEVB and DataLogger codes
Definition at line 22 of file RawDataBlock.cpp.
References PRINT_ON_DEBUG.
daqdataformats::RawDataBlock::RawDataBlock | ( | const RawDataBlock & | copy_in | ) |
daqdataformats::RawDataBlock::RawDataBlock | ( | const void * | datablock_buffer, |
const version_t | version = rawdaqdataformat::DAQDATAFORMAT_UNKNOWN_VERSION , |
||
const uint32_t | buffersize = DEFAULT_DATABLOCK_SIZE |
||
) |
daqdataformats::RawDataBlock::~RawDataBlock | ( | ) |
|
inline |
Definition at line 77 of file RawDataBlock.h.
References addDCMData1(), and RETURN_FUNCTION.
|
inline |
Definition at line 78 of file RawDataBlock.h.
References addDCMData2(), and RETURN_FUNCTION.
|
inlineprotected |
Definition at line 130 of file RawDataBlock.h.
Referenced by addDCMData().
|
inlineprotected |
Definition at line 131 of file RawDataBlock.h.
Referenced by addDCMData().
|
inline |
Add the MicroBlock to _Buffer. If check_mc_flag = true, the method checks whether the microslice in the microblock is MC generatedand adds an appropriate flag to the DataBlock Header.
Definition at line 42 of file RawDataBlock.h.
References addMicroBlock1(), and RETURN_FUNCTION.
Referenced by mcdatadaq::BufferNodeSimulator::addMilliSlice(), and daqdataformats::DataBlockConstructor::fillDataFormat().
|
inline |
Add the MicroBlock of a known size to _Buffer. If check_mc_flag = true, the method checks whether the microslice in the microblock is MC generatedand adds an appropriate flag to the DataBlock Header.
Definition at line 49 of file RawDataBlock.h.
References addMicroBlock2(), and RETURN_FUNCTION.
|
inline |
Add the MicroBlock to _Buffer by passing the references of the MilliSlice and the MicroSlice. MilliSlice is the one that contains the MicroSlice. If check_mc_flag = true, the method checks whether the microslice in the microblock is MC generatedand adds an appropriate flag to the DataBlock Header.
Definition at line 58 of file RawDataBlock.h.
References addMicroBlock3(), and RETURN_FUNCTION.
|
inline |
Add the MicroBlock to _Buffer by passing the references of the MilliSlice and the MicroSlice of a known size. MilliSlice is the one that contains the MicroSlice. If check_mc_flag = true, the method checks whether the microslice in the microblock is MC generatedand adds an appropriate flag to the DataBlock Header.
Definition at line 69 of file RawDataBlock.h.
References addMicroBlock4(), and RETURN_FUNCTION.
|
inlineprotected |
These functions are not allowed to be executed as public.
Definition at line 111 of file RawDataBlock.h.
Referenced by addMicroBlock().
|
inlineprotected |
Definition at line 114 of file RawDataBlock.h.
Referenced by addMicroBlock().
|
inlineprotected |
Definition at line 118 of file RawDataBlock.h.
Referenced by addMicroBlock().
|
inlineprotected |
Definition at line 123 of file RawDataBlock.h.
Referenced by addMicroBlock().
|
inline |
Add CRC at the very end of _Buffer
Must be the last operation
Definition at line 80 of file RawDataBlock.h.
References IMPLEMENT_MAIN_setBufferSource, IMPLEMENT_MAIN_STANDARD, and RETURN_FUNCTION.
Referenced by daqdataformats::VERSION_NAMESPACE::RawDataBlock::addMicroBlock4(), daqdataformats::DataBlockConstructor::fillDataFormat(), mcdatadaq::BufferNodeSimulator::getDataBlock(), and daqdataformats::DataBlockConstructor::getEmptyDataFormat().
daqdataformats::RawDataBlock::IMPLEMENT_GET_MAIN | ( | Version | , |
uint32_t | |||
) |
Referenced by readData().
daqdataformats::RawDataBlock::IMPLEMENT_GET_MAIN | ( | Marker | , |
uint32_t | |||
) |
daqdataformats::RawDataBlock::IMPLEMENT_GET_MAIN | ( | DataSize | , |
uint32_t | |||
) |
|
inline |
Definition at line 84 of file RawDataBlock.h.
References fd, IMPLEMENT_FIGUREOUT_VERSION_STATIC, IMPLEMENT_FUNCTION_RETURNING_FUNCTION_POINTER_1PAR, IMPLEMENT_GET_AND_SET_MAIN, IMPLEMENT_GET_MAIN(), IMPLEMENT_IS_AND_SET_MAIN, IMPLEMENT_IS_MAIN, RETURN_FUNCTION, and setFunctionPointers().
Referenced by PandAna.core.core.loader::Go().
|
protected |
Referenced by readData().