16#ifndef O2_MID_CRATEMASKS_H
17#define O2_MID_CRATEMASKS_H
35 bool isActive(
int iboard, uint8_t feeId)
const {
return mActiveBoards[feeId] & (1 << iboard); };
41 uint8_t
getMask(uint16_t feeId)
const {
return mActiveBoards[feeId]; }
47 std::array<uint16_t, crateparams::sNGBTs> mActiveBoards;
bool isActive(int iboard, uint8_t feeId) const
void write(const char *filename) const
uint8_t getMask(uint16_t feeId) const
Gets the mask for the feeId.
void setActiveBoards(uint16_t feeId, uint8_t mask)
Sets the active boards in the feeId.
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...