15#ifndef ALICEO2_ITSMFT_ROFRECORD_H
16#define ALICEO2_ITSMFT_ROFRECORD_H
42 : mBCData(
bc), mROFEntry(idx,
n), mROFrame(rof) {}
52 void setFlag(uint8_t flagIndex) { mBits |= (1 << flagIndex); }
53 void resetFlag(uint8_t flagIndex) { mBits &= ~(1 << flagIndex); }
54 bool getFlag(uint8_t flagIndex)
const {
return mBits & (1 << flagIndex); }
73 gsl::span<const T>
getROFData(
const gsl::span<const T> tfdata)
const
85 gsl::span<const T>
getROFData(
const std::vector<T>& tfdata)
const
Class to refer to the 1st entry and N elements of some group in the continuous container.
void setBCData(const BCData &bc)
const T * getROFDataAt(int i, const std::vector< T > &tfdata) const
const T * getROFDataAt(int i, const gsl::span< const T > tfdata) const
void setFlag(uint8_t flagIndex)
friend std::ostream & operator<<(std::ostream &output, const ROFRecord &rec)
const BCData & getBCData() const
gsl::span< const T > getROFData(const gsl::span< const T > tfdata) const
void resetFlag(uint8_t flagIndex)
std::string asString() const
ROFRecord(const BCData &bc, ROFtype rof, int idx, int n)
bool getFlag(uint8_t flagIndex) const
void setFirstEntry(int idx)
gsl::span< const T > getROFData(const std::vector< T > &tfdata) const
int getFirstEntry() const
uint32_t getFlags() const
void setFlags(uint32_t flags)
void setROFrame(ROFtype rof)
o2::dataformats::RangeReference< int, int > EvIdx
void setEntry(EvIdx entry)
ROFtype getROFrame() const
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...
friend std::ostream & operator<<(std::ostream &output, const MC2ROFRecord &rec)
std::string asString() const
ROFtype maxROF
last ROF event contributed
ClassDefNV(MC2ROFRecord, 1)
int rofRecordID
1st entry in the ROFRecords vector
int eventRecordID
MCevent entry in the EventRecord.
MC2ROFRecord(int evID, int rofRecID, ROFtype mnrof, ROFtype mxrof)
ROFtype minROF
1st ROFrame it contributed