7#include "MicrosliceDescriptor.hpp"
9#include "Timeslice.hpp"
60 return (numErrors > 0 ?
true :
false);
102 Result_t operator()(
const uint8_t* msContent,
const fles::MicrosliceDescriptor& msDescr,
103 const uint64_t tTimeslice)
const override;
std::tuple< std::vector< Digi_t >, Monitor_t, Aux_t > Result_t
Unpack algorithm for STS.
static constexpr uint32_t fkClockCycleDen
void ProcessTsmsbMessage(const stsxyter::Message &message, TimeSpec &time) const
Process an epoch message (TS_MSB)
UnpackMS(const UnpackPar &pars)
Construct with parameters.
void ProcessHitMessage(const stsxyter::Message &message, const TimeSpec &time, std::vector< CbmMuchDigi > &digiVec, UnpackMonitorData &monitor) const
Process a hit message.
static constexpr uint64_t fkEpochLength
~UnpackMS() override
Destructor.
static constexpr uint64_t fkEpochsPerCycle
Result_t operator()(const uint8_t *msContent, const fles::MicrosliceDescriptor &msDescr, const uint64_t tTimeslice) const override
Algorithm execution.
static constexpr uint32_t fkClockCycleNom
UnpackPar fParams
Parameter container.
static constexpr uint64_t fkCycleLength
static constexpr uint32_t kulClockCycleDen
Clock cycle denominator, equivalent to 2*160 MHz clock.
static constexpr uint32_t kuHitNbTsBinsBinning
static constexpr uint32_t kulClockCycleNom
Clock cycle nominator [ns], equivalent to 2*160 MHz clock.
static constexpr uint32_t kuTsMsbNbTsBinsBinning
STS Unpacking parameters for one eLink / ASIC.
uint64_t fTimeOffset
Time calibration parameter.
std::vector< bool > fChanMask
Channel masking flags.
std::vector< uint32_t > fAddress
CbmMuchAddress for different channels.
uint64_t currentCycle
Current epoch cycle.
uint64_t currentEpochTime
Current epoch time relative to timeslice in clock cycles.
uint32_t currentEpoch
Current epoch number within epoch cycle.
uint64_t currentTsTime
Unix time of timeslice in units of epoch length.
uint32_t fNumErrElinkOutOfRange
Elink not contained in parameters.
uint32_t fNumErrInvalidMsSize
Microslice size is not multiple of message size.
uint32_t fNumErrInvalidFirstMessage
First message is not TS_MSB or second is not EPOCH.
uint32_t fNumNonHitOrTsbMessage
uint32_t fNumErrTimestampOverflow
Overflow in 64 bit time stamp.
Parameters required for the STS unpacking (specific to one component)
std::vector< UnpackElinkPar > fElinkParams
Parameters for each eLink.