12#ifndef ALICEO2_PHOS_RAWPAYLOAD_H
13#define ALICEO2_PHOS_RAWPAYLOAD_H
45 RawPayload(
const gsl::span<const uint32_t> payloadwords,
int numpages);
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.
int getPayloadSize() const
Get the size of the payload.
int getNumberOfPages() const
Get the number of pages contributing to the payload.
~RawPayload()=default
Destructor.
void setNumberOfPages(int numpages)
Set the number of pages contributing to the current payload.
void increasePageCount()
Increase the page counter of the current payload.
const std::vector< uint32_t > & getPayloadWords() const
Get the payload words (as 32 bit words) contributing to the current payload.
void appendPayloadWord(uint32_t payloadword)
Append single payload word to the current payload.
RawPayload()=default
Constructor.
void appendPayloadWords(const gsl::span< const uint32_t > payloadwords)
Append many words to the current payload (usually of a given DMA page)
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...