|
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 234 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 |
|
overridedefault |
Destructor.
|
private |
Finalize component (e.g. copy from temp buffers)
Convert global time from clk temporary representation to the finale version in [ns] Correct the time with the system time offset which is derived in calibration.
Definition at line 322 of file trd2d/UnpackMS.cxx.
References cbm::algo::trd2d::fAsicClockPeriod, cbm::algo::trd2d::UnpackMS< sys_ver >::MsContext::fDigiBuffer, cbm::algo::trd2d::UnpackMS< sys_ver >::MsContext::fMonitor, cbm::algo::trd2d::UnpackMonitorData::fNumIncompleteDigis, fParams, 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 178 of file trd2d/UnpackMS.cxx.
|
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, fParams, and cbm::algo::trd2d::kMessLegacy.
|
inline |
Set the parameter container.
| params | Pointer to parameter container |
Definition at line 255 of file trd2d/UnpackMS.h.
References fParams.
|
private |
Parameter container.
Definition at line 266 of file trd2d/UnpackMS.h.
Referenced by FinalizeComponent(), pushDigis(), SetParams(), and UnpackMS().