16#ifndef ALICEO2_DATA_GRPECSOBJECT_H_
17#define ALICEO2_DATA_GRPECSOBJECT_H_
86 mDetsReadout &=
~id.getMask();
111 bool isMC()
const {
return mIsMC; }
122 void addFLP(
unsigned short flp) { mFLPs.push_back(flp); }
123 void setListOfFLPs(
const std::vector<unsigned short>& listFLPs) { mFLPs = listFLPs; }
126 return std::find(mFLPs.begin(), mFLPs.end(), flp) == mFLPs.end() ? false :
true;
130 return mFLPs.size() > 0 ? true :
false;
145 uint32_t mNHBFPerTF = 128;
152 RunType mRunType = RunType::NONE;
153 std::string mDataPeriod{};
154 std::vector<unsigned short> mFLPs;
Static class with identifiers, bitmasks and names for ALICE detectors.
static mask_t getMask(const std::string_view detList)
detector masks from any non-alpha-num delimiter-separated list (empty if NONE is supplied)
timePoint getTimeStart() const
getters/setters for Start and Stop times according to logbook
static constexpr bool alwaysTriggeredRO(DetID::ID det)
bool isDetTriggers(DetID id) const
test if detector is triggering
void setListOfFLPs(const std::vector< unsigned short > &listFLPs)
void setDetsContinuousReadOut(DetID::mask_t mask)
bool isDetContinuousReadOut(DetID id) const
test if detector is read out
bool getFLPStatus(unsigned short flp) const
timePoint getTimeEndCTP() const
o2::parameters::GRPECS::RunType RunType
const std::string & getDataPeriod() const
getter/setter for data taking period name
timePoint getTimeStartCTP() const
DetID::mask_t getDetsReadOut(DetID::mask_t only, DetID::mask_t skip=0) const
void addDetTrigger(DetID id)
add specific detector to the list of triggering detectors
ROMode getDetROMode(DetID id) const
void addFLP(unsigned short flp)
void setDetsReadOut(DetID::mask_t mask)
DetID::mask_t getDetsContinuousReadOut() const
getter/setter for masks of detectors with continuos readout
const std::vector< unsigned short > & getListOfFLPs() const
bool listOfFLPsSet() const
void setTimeEnd(timePoint t)
DetID::mask_t getDetsReadOut(const std::string &only, const std::string &skip="") const
same with comma-separate list of detector names
void remDetTrigger(DetID id)
remove specific detector from the list of triggering detectors
void setTimeStart(timePoint t)
void setTimeEndCTP(timePoint t)
void setIsMC(bool v=true)
void setNHBFPerTF(uint32_t n)
bool isDetReadOut(DetID id) const
test if detector is read out
timePoint getTimeEndCTPasSet() const
void setTimeStartCTP(timePoint t)
void setDetROMode(DetID id, ROMode status)
set detector readout mode status
timePoint getTimeStartCTPasSet() const
DetID::mask_t getDetsReadOut() const
getter/setter for masks of detectors in the readout
void addDetReadOut(DetID id)
add specific detector to the list of readout detectors
timePoint getTimeEnd() const
void addDetContinuousReadOut(DetID id)
add specific detector to the list of continuously readout detectors
void print() const
print itself
uint32_t getNHBFPerTF() const
void setDataPeriod(const std::string v)
void setDetsTrigger(DetID::mask_t mask)
void remDetReadOut(DetID id)
remove specific detector from the list of readout detectors
static GRPECSObject * loadFrom(const std::string &grpecsFileName="")
void remDetContinuousReadOut(DetID id)
remove specific detector from the list of continuouslt readout detectors
DetID::mask_t getDetsTrigger() const
getter/setter for masks of detectors providing the trigger
void setRunType(RunType t)
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...