8#include "MicrosliceDescriptor.hpp"
9#include "Timeslice.hpp"
63 return (numErrors > 0 ?
true :
false);
107 Result_t operator()(
const uint8_t* msContent,
const fles::MicrosliceDescriptor& msDescr,
108 const uint64_t tTimeslice)
const override;
std::tuple< std::vector< Digi_t >, Monitor_t, Aux_t > Result_t
UnpackPar fParams
Parameter container.
UnpackMS(const UnpackPar &pars)
Construct from parameters.
~UnpackMS() override
Destructor.
void ProcessHitMessage(const critof001::Message &message, const TimeSpec &time, std::vector< CbmBmonDigi > &digiVec, UnpackMonitorData &monitor) const
Process a hit message.
Result_t operator()(const uint8_t *msContent, const fles::MicrosliceDescriptor &msDescr, const uint64_t tTimeslice) const override
Algorithm execution.
void ProcessEpochMessage(const critof001::Message &message, TimeSpec &time) const
Process an epoch message (TS_MSB)
void SetParams(std::unique_ptr< UnpackPar > params)
Set the parameter container.
Bmon Unpacking parameters for one eLink / ASIC.
int32_t fTimeOffset
Time calibration parameter.
std::vector< uint32_t > fChannelUId
CbmBmonAddress for different channels.
uint64_t currentTsTime
Unix time of timeslice in units of epoch length.
uint32_t currentEpochInTs
Current epoch number relative to timeslice start epoch.
uint32_t fNumErrElinkOutOfRange
Elink not contained in parameters.
uint32_t fNumErrInvalidFirstMessage
First message is not EPOCH.
uint32_t fNumErrInvalidStartEpoch
Microslice index doesn't match first epoch.
uint32_t fNumErrInvalidMsSize
Microslice size is not multiple of message size.
uint32_t fNumErrInvalidLastMessage
Last message is not EndOfMs.
uint32_t fNumErrInvalidAsicEpochs
Epoch did not match merged one for an asic.
uint32_t fNumNonHitOrTsbMessage
uint32_t fNumErrTimestampOverflow
Overflow in 64 bit time stamp.
Parameters required for the BMON unpacking (specific to one component)
std::vector< UnpackElinkPar > fElinkParams
Parameters for each eLink.