Project
Loading...
Searching...
No Matches
o2::parameters::GRPECSObject Class Reference

#include <GRPECSObject.h>

Public Types

enum  ROMode : int { ABSENT = 0 , PRESENT = 0x1 , CONTINUOUS = PRESENT + (0x1 << 1) , TRIGGERING = PRESENT + (0x1 << 2) }
 
using timePoint = uint64_t
 
using RunType = o2::parameters::GRPECS::RunType
 

Public Member Functions

 GRPECSObject ()=default
 
 ~GRPECSObject ()=default
 
timePoint getTimeStart () const
 getters/setters for Start and Stop times according to logbook
 
void setTimeStart (timePoint t)
 
timePoint getTimeEnd () const
 
void setTimeEnd (timePoint t)
 
timePoint getTimeStartCTPasSet () const
 
timePoint getTimeStartCTP () const
 
void setTimeStartCTP (timePoint t)
 
timePoint getTimeEndCTPasSet () const
 
timePoint getTimeEndCTP () const
 
void setTimeEndCTP (timePoint t)
 
void setNHBFPerTF (uint32_t n)
 
uint32_t getNHBFPerTF () const
 
const std::string & getDataPeriod () const
 getter/setter for data taking period name
 
void setDataPeriod (const std::string v)
 
void setRun (int r)
 
int getRun () const
 
DetID::mask_t getDetsReadOut () const
 getter/setter for masks of detectors in the readout
 
void setDetsReadOut (DetID::mask_t mask)
 
DetID::mask_t getDetsContinuousReadOut () const
 getter/setter for masks of detectors with continuos readout
 
void setDetsContinuousReadOut (DetID::mask_t mask)
 
DetID::mask_t getDetsTrigger () const
 getter/setter for masks of detectors providing the trigger
 
void setDetsTrigger (DetID::mask_t mask)
 
void addDetReadOut (DetID id)
 add specific detector to the list of readout detectors
 
void remDetReadOut (DetID id)
 remove specific detector from the list of readout detectors
 
void addDetContinuousReadOut (DetID id)
 add specific detector to the list of continuously readout detectors
 
void remDetContinuousReadOut (DetID id)
 remove specific detector from the list of continuouslt readout detectors
 
void addDetTrigger (DetID id)
 add specific detector to the list of triggering detectors
 
void remDetTrigger (DetID id)
 remove specific detector from the list of triggering detectors
 
bool isDetReadOut (DetID id) const
 test if detector is read out
 
bool isDetContinuousReadOut (DetID id) const
 test if detector is read out
 
bool isDetTriggers (DetID id) const
 test if detector is triggering
 
void setDetROMode (DetID id, ROMode status)
 set detector readout mode status
 
ROMode getDetROMode (DetID id) const
 
void setRunType (RunType t)
 
auto getRunType () const
 
bool isMC () const
 
void setIsMC (bool v=true)
 
DetID::mask_t getDetsReadOut (DetID::mask_t only, DetID::mask_t skip=0) const
 
DetID::mask_t getDetsReadOut (const std::string &only, const std::string &skip="") const
 same with comma-separate list of detector names
 
const std::vector< unsigned short > & getListOfFLPs () const
 
void addFLP (unsigned short flp)
 
void setListOfFLPs (const std::vector< unsigned short > &listFLPs)
 
bool getFLPStatus (unsigned short flp) const
 
bool listOfFLPsSet () const
 
void print () const
 print itself
 

Static Public Member Functions

static GRPECSObjectloadFrom (const std::string &grpecsFileName="")
 
static constexpr bool alwaysTriggeredRO (DetID::ID det)
 

Detailed Description

Definition at line 33 of file GRPECSObject.h.

Member Typedef Documentation

◆ RunType

◆ timePoint

Definition at line 38 of file GRPECSObject.h.

Member Enumeration Documentation

◆ ROMode

Enumerator
ABSENT 
PRESENT 
CONTINUOUS 
TRIGGERING 

Definition at line 41 of file GRPECSObject.h.

Constructor & Destructor Documentation

◆ GRPECSObject()

o2::parameters::GRPECSObject::GRPECSObject ( )
default

◆ ~GRPECSObject()

o2::parameters::GRPECSObject::~GRPECSObject ( )
default

Member Function Documentation

◆ addDetContinuousReadOut()

void o2::parameters::GRPECSObject::addDetContinuousReadOut ( DetID  id)
inline

add specific detector to the list of continuously readout detectors

Definition at line 91 of file GRPECSObject.h.

◆ addDetReadOut()

void o2::parameters::GRPECSObject::addDetReadOut ( DetID  id)
inline

add specific detector to the list of readout detectors

Definition at line 82 of file GRPECSObject.h.

◆ addDetTrigger()

void o2::parameters::GRPECSObject::addDetTrigger ( DetID  id)
inline

add specific detector to the list of triggering detectors

Definition at line 95 of file GRPECSObject.h.

◆ addFLP()

void o2::parameters::GRPECSObject::addFLP ( unsigned short  flp)
inline

Definition at line 122 of file GRPECSObject.h.

◆ alwaysTriggeredRO()

static constexpr bool o2::parameters::GRPECSObject::alwaysTriggeredRO ( DetID::ID  det)
inlinestaticconstexpr

Definition at line 137 of file GRPECSObject.h.

◆ getDataPeriod()

const std::string & o2::parameters::GRPECSObject::getDataPeriod ( ) const
inline

getter/setter for data taking period name

Definition at line 67 of file GRPECSObject.h.

◆ getDetROMode()

GRPECSObject::ROMode GRPECSObject::getDetROMode ( DetID  id) const

Definition at line 86 of file GRPECSObject.cxx.

◆ getDetsContinuousReadOut()

DetID::mask_t o2::parameters::GRPECSObject::getDetsContinuousReadOut ( ) const
inline

getter/setter for masks of detectors with continuos readout

Definition at line 76 of file GRPECSObject.h.

◆ getDetsReadOut() [1/3]

DetID::mask_t o2::parameters::GRPECSObject::getDetsReadOut ( ) const
inline

getter/setter for masks of detectors in the readout

Definition at line 73 of file GRPECSObject.h.

◆ getDetsReadOut() [2/3]

DetID::mask_t o2::parameters::GRPECSObject::getDetsReadOut ( const std::string &  only,
const std::string &  skip = "" 
) const
inline

same with comma-separate list of detector names

Definition at line 118 of file GRPECSObject.h.

◆ getDetsReadOut() [3/3]

DetID::mask_t o2::parameters::GRPECSObject::getDetsReadOut ( DetID::mask_t  only,
DetID::mask_t  skip = 0 
) const
inline

extra selections mask of readout detectors with addition selections. "only" overrides "skip"

Definition at line 116 of file GRPECSObject.h.

◆ getDetsTrigger()

DetID::mask_t o2::parameters::GRPECSObject::getDetsTrigger ( ) const
inline

getter/setter for masks of detectors providing the trigger

Definition at line 79 of file GRPECSObject.h.

◆ getFLPStatus()

bool o2::parameters::GRPECSObject::getFLPStatus ( unsigned short  flp) const
inline

Definition at line 124 of file GRPECSObject.h.

◆ getListOfFLPs()

const std::vector< unsigned short > & o2::parameters::GRPECSObject::getListOfFLPs ( ) const
inline

Definition at line 121 of file GRPECSObject.h.

◆ getNHBFPerTF()

uint32_t o2::parameters::GRPECSObject::getNHBFPerTF ( ) const
inline

Definition at line 64 of file GRPECSObject.h.

◆ getRun()

int o2::parameters::GRPECSObject::getRun ( ) const
inline

Definition at line 71 of file GRPECSObject.h.

◆ getRunType()

auto o2::parameters::GRPECSObject::getRunType ( ) const
inline

Definition at line 109 of file GRPECSObject.h.

◆ getTimeEnd()

timePoint o2::parameters::GRPECSObject::getTimeEnd ( ) const
inline

Definition at line 52 of file GRPECSObject.h.

◆ getTimeEndCTP()

timePoint o2::parameters::GRPECSObject::getTimeEndCTP ( ) const
inline

Definition at line 60 of file GRPECSObject.h.

◆ getTimeEndCTPasSet()

timePoint o2::parameters::GRPECSObject::getTimeEndCTPasSet ( ) const
inline

Definition at line 59 of file GRPECSObject.h.

◆ getTimeStart()

timePoint o2::parameters::GRPECSObject::getTimeStart ( ) const
inline

getters/setters for Start and Stop times according to logbook

Definition at line 49 of file GRPECSObject.h.

◆ getTimeStartCTP()

timePoint o2::parameters::GRPECSObject::getTimeStartCTP ( ) const
inline

Definition at line 56 of file GRPECSObject.h.

◆ getTimeStartCTPasSet()

timePoint o2::parameters::GRPECSObject::getTimeStartCTPasSet ( ) const
inline

Definition at line 55 of file GRPECSObject.h.

◆ isDetContinuousReadOut()

bool o2::parameters::GRPECSObject::isDetContinuousReadOut ( DetID  id) const
inline

test if detector is read out

Definition at line 101 of file GRPECSObject.h.

◆ isDetReadOut()

bool o2::parameters::GRPECSObject::isDetReadOut ( DetID  id) const
inline

test if detector is read out

Definition at line 99 of file GRPECSObject.h.

◆ isDetTriggers()

bool o2::parameters::GRPECSObject::isDetTriggers ( DetID  id) const
inline

test if detector is triggering

Definition at line 103 of file GRPECSObject.h.

◆ isMC()

bool o2::parameters::GRPECSObject::isMC ( ) const
inline

Definition at line 111 of file GRPECSObject.h.

◆ listOfFLPsSet()

bool o2::parameters::GRPECSObject::listOfFLPsSet ( ) const
inline

Definition at line 128 of file GRPECSObject.h.

◆ loadFrom()

GRPECSObject * GRPECSObject::loadFrom ( const std::string &  grpecsFileName = "")
static

Definition at line 103 of file GRPECSObject.cxx.

◆ print()

void GRPECSObject::print ( ) const

print itself

Definition at line 29 of file GRPECSObject.cxx.

◆ remDetContinuousReadOut()

void o2::parameters::GRPECSObject::remDetContinuousReadOut ( DetID  id)
inline

remove specific detector from the list of continuouslt readout detectors

Definition at line 93 of file GRPECSObject.h.

◆ remDetReadOut()

void o2::parameters::GRPECSObject::remDetReadOut ( DetID  id)
inline

remove specific detector from the list of readout detectors

Definition at line 84 of file GRPECSObject.h.

◆ remDetTrigger()

void o2::parameters::GRPECSObject::remDetTrigger ( DetID  id)
inline

remove specific detector from the list of triggering detectors

Definition at line 97 of file GRPECSObject.h.

◆ setDataPeriod()

void o2::parameters::GRPECSObject::setDataPeriod ( const std::string  v)
inline

Definition at line 68 of file GRPECSObject.h.

◆ setDetROMode()

void GRPECSObject::setDetROMode ( DetID  id,
ROMode  status 
)

set detector readout mode status

set detector readout mode status

Definition at line 65 of file GRPECSObject.cxx.

◆ setDetsContinuousReadOut()

void o2::parameters::GRPECSObject::setDetsContinuousReadOut ( DetID::mask_t  mask)
inline

Definition at line 77 of file GRPECSObject.h.

◆ setDetsReadOut()

void o2::parameters::GRPECSObject::setDetsReadOut ( DetID::mask_t  mask)
inline

Definition at line 74 of file GRPECSObject.h.

◆ setDetsTrigger()

void o2::parameters::GRPECSObject::setDetsTrigger ( DetID::mask_t  mask)
inline

Definition at line 80 of file GRPECSObject.h.

◆ setIsMC()

void o2::parameters::GRPECSObject::setIsMC ( bool  v = true)
inline

Definition at line 112 of file GRPECSObject.h.

◆ setListOfFLPs()

void o2::parameters::GRPECSObject::setListOfFLPs ( const std::vector< unsigned short > &  listFLPs)
inline

Definition at line 123 of file GRPECSObject.h.

◆ setNHBFPerTF()

void o2::parameters::GRPECSObject::setNHBFPerTF ( uint32_t  n)
inline

Definition at line 63 of file GRPECSObject.h.

◆ setRun()

void o2::parameters::GRPECSObject::setRun ( int  r)
inline

Definition at line 70 of file GRPECSObject.h.

◆ setRunType()

void o2::parameters::GRPECSObject::setRunType ( RunType  t)
inline

Definition at line 108 of file GRPECSObject.h.

◆ setTimeEnd()

void o2::parameters::GRPECSObject::setTimeEnd ( timePoint  t)
inline

Definition at line 53 of file GRPECSObject.h.

◆ setTimeEndCTP()

void o2::parameters::GRPECSObject::setTimeEndCTP ( timePoint  t)
inline

Definition at line 61 of file GRPECSObject.h.

◆ setTimeStart()

void o2::parameters::GRPECSObject::setTimeStart ( timePoint  t)
inline

Definition at line 50 of file GRPECSObject.h.

◆ setTimeStartCTP()

void o2::parameters::GRPECSObject::setTimeStartCTP ( timePoint  t)
inline

Definition at line 57 of file GRPECSObject.h.


The documentation for this class was generated from the following files: