CbmRoot
|
Unpack algorithm for TRD2D. More...
#include <UnpackMS.h>
Classes | |
struct | MsContext |
Public Types | |
using | Digi_t |
using | Monitor_t |
using | Aux_t |
using | Result_t |
Public Member Functions | |
UnpackMS (const UnpackPar &pars) | |
Construct from parameters. | |
~UnpackMS () override=default | |
Destructor. | |
Result_t | operator() (const uint8_t *msContent, const fles::MicrosliceDescriptor &msDescr, const uint64_t tTimeslice) const override |
Algorithm execution. | |
void | SetParams (std::unique_ptr< UnpackPar > params) |
Set the parameter container. | |
UnpackMS< uint8_t(eMessageVersion::kMessLegacy)>::Result_t | operator() (const uint8_t *msContent, const fles::MicrosliceDescriptor &msDescr, const uint64_t tTimeslice) const |
Private Member Functions | |
bool | pushDigis (std::vector< FaspMessage > messages, const uint64_t time, MsContext &ctx) const |
std::vector< CbmTrdDigi > | FinalizeComponent (MsContext &ctx) const |
Finalize component (e.g. copy from temp buffers) | |
Private Attributes | |
UnpackPar | fParams = {} |
Parameter container. | |
Unpack algorithm for TRD2D.
Definition at line 196 of file trd2d/UnpackMS.h.
|
inherited |
Definition at line 23 of file UnpackMSBase.h.
|
inherited |
Definition at line 21 of file UnpackMSBase.h.
|
inherited |
Definition at line 22 of file UnpackMSBase.h.
|
inherited |
Definition at line 25 of file UnpackMSBase.h.
|
inline |
Construct from parameters.
Definition at line 200 of file trd2d/UnpackMS.h.
|
overridedefault |
Destructor.
|
private |
Finalize component (e.g. copy from temp buffers)
Definition at line 322 of file trd2d/UnpackMS.cxx.
References cbm::algo::trd2d::UnpackMS< sys_ver >::MsContext::fDigiBuffer, cbm::algo::trd2d::UnpackMS< sys_ver >::MsContext::fMonitor, cbm::algo::trd2d::UnpackMonitorData::fNumIncompleteDigis, NFASPMOD, and NFASPPAD.
|
virtual |
Implementation of TRD2D unpacking for the 2021 - 2022 mCBM data taking The algorithm implements digi buffering due to a "feature" on the ADC read-out
Implements cbm::algo::UnpackMSBase< CbmTrdDigi, UnpackMonitorData, UnpackAuxData >.
Definition at line 173 of file trd2d/UnpackMS.cxx.
References FASP_EPOCH_LENGTH, cbm::algo::trd2d::UnpackMS< sys_ver >::MsContext::fMonitor, cbm::algo::trd2d::UnpackMonitorData::fNumErrEndBitSet, cbm::algo::trd2d::UnpackMonitorData::fNumSelfTriggeredData, cbm::algo::trd2d::kData, and L_.
|
overridevirtual |
Algorithm execution.
msContent | Microslice payload |
msDescr | Microslice descriptor |
tTimeslice | Unix start time of timeslice [ns] |
Implements cbm::algo::UnpackMSBase< CbmTrdDigi, UnpackMonitorData, UnpackAuxData >.
|
private |
Definition at line 248 of file trd2d/UnpackMS.cxx.
References cbm::algo::trd2d::UnpackChannelPar::fDaqOffset, cbm::algo::trd2d::UnpackMS< sys_ver >::MsContext::fDigiBuffer, cbm::algo::trd2d::UnpackChannelPar::fPadAddress, and cbm::algo::trd2d::kMessLegacy.
|
inline |
Set the parameter container.
params | Pointer to parameter container |
Definition at line 217 of file trd2d/UnpackMS.h.
References cbm::algo::trd2d::UnpackMS< sys_ver >::fParams.
|
private |
Parameter container.
Definition at line 228 of file trd2d/UnpackMS.h.
Referenced by cbm::algo::trd2d::UnpackMS< sys_ver >::SetParams(), and cbm::algo::trd2d::UnpackMS< uint8_t(eMessageVersion::kMess24)>::SetParams().