12#ifndef ALICEO2_EMCAL_RAWPAYLOAD_H
13#define ALICEO2_EMCAL_RAWPAYLOAD_H
45 RawPayload(
const gsl::span<const uint32_t> payloadwords,
int numpages);
78 int getPayloadSize()
const {
return mPayloadWords.size() *
sizeof(uint32_t); }
81 std::vector<uint32_t> mPayloadWords;
Class for raw payload excluding raw data headers from one or multiple DMA pages.
void reset()
Resetting payload words and page counter.
void increasePageCount()
Increase the page counter of the current payload.
void setNumberOfPages(int numpages)
Set the number of pages contributing to the current payload.
int getPayloadSize() const
Get the size of the payload.
~RawPayload()=default
Destructor.
const std::vector< uint32_t > & getPayloadWords() const
Get the payload words (as 32 bit words) contributing to the current payload.
int getNumberOfPages() const
Get the number of pages contributing to the payload.
void appendPayloadWords(const gsl::span< const uint32_t > payloadwords)
Append many words to the current payload (usually of a given DMA page)
RawPayload()=default
Constructor.
void appendPayloadWord(uint32_t payloadword)
Append single payload word to the current payload.
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...