![]() |
Project
|
#include <GRPObject.h>
Public Types | |
enum | ROMode : int { ABSENT = 0 , PRESENT = 0x1 , CONTINUOUS = PRESENT + (0x1 << 1) , TRIGGERING = PRESENT + (0x1 << 2) } |
using | timePoint = uint64_t |
Public Member Functions | |
GRPObject ()=default | |
~GRPObject ()=default | |
timePoint | getTimeStart () const |
getters/setters for Start and Stop times according to logbook | |
timePoint | getTimeEnd () const |
void | setTimeStart (timePoint t) |
void | setTimeEnd (timePoint t) |
void | setNHBFPerTF (uint32_t n) |
uint32_t | getNHBFPerTF () const |
void | setFirstOrbit (uint32_t o) |
uint32_t | getFirstOrbit () const |
o2::units::AngleRad_t | getCrossingAngle () const |
getters/setters for beams crossing angle (deviation from 0) | |
void | setCrossingAngle (o2::units::AngleRad_t v) |
int | getBeamZ (beamDirection beam) const |
getters/setters for given beam A and Z info, encoded as A<<16+Z | |
int | getBeamA (beamDirection beam) const |
float | getBeamZ2A (beamDirection beam) const |
void | setBeamAZ (int a, int z, beamDirection beam) |
void | setBeamEnergyPerZ (float v) |
getters/setters for beam energy per charge and per nucleon | |
float | getBeamEnergyPerZ () const |
float | getBeamEnergyPerNucleon (beamDirection beam) const |
float | getSqrtS () const |
calculate center of mass energy per nucleon collision | |
o2::units::Current_t | getL3Current () const |
getters/setters for magnets currents | |
o2::units::Current_t | getDipoleCurrent () const |
bool | getFieldUniformity () const |
void | setL3Current (o2::units::Current_t v) |
void | setDipoleCurrent (o2::units::Current_t v) |
void | setFieldUniformity (bool v) |
int8_t | getNominalL3Field () |
const std::string & | getDataPeriod () const |
getter/setter for data taking period name | |
void | setDataPeriod (const std::string v) |
const std::string & | getLHCState () const |
getter/setter for LHC state in the beggining of run | |
void | setLHCState (const std::string v) |
void | setRun (int r) |
int | getRun () const |
void | setFill (int f) |
getter/setter for fill identifier | |
int | getFill () 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 |
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 | |
bool | isMC () const |
void | setIsMC (bool v=true) |
void | print () const |
print itself | |
Static Public Member Functions | |
static GRPObject * | loadFrom (const std::string &grpFileName="") |
Definition at line 35 of file GRPObject.h.
using o2::parameters::GRPObject::timePoint = uint64_t |
Definition at line 41 of file GRPObject.h.
Enumerator | |
---|---|
ABSENT | |
PRESENT | |
CONTINUOUS | |
TRIGGERING |
Definition at line 43 of file GRPObject.h.
|
default |
|
default |
add specific detector to the list of continuously readout detectors
Definition at line 117 of file GRPObject.h.
add specific detector to the list of readout detectors
Definition at line 108 of file GRPObject.h.
add specific detector to the list of triggering detectors
Definition at line 121 of file GRPObject.h.
|
inline |
Definition at line 68 of file GRPObject.h.
|
inline |
Definition at line 74 of file GRPObject.h.
|
inline |
Definition at line 73 of file GRPObject.h.
|
inline |
getters/setters for given beam A and Z info, encoded as A<<16+Z
Definition at line 67 of file GRPObject.h.
|
inline |
Definition at line 179 of file GRPObject.h.
|
inline |
getters/setters for beams crossing angle (deviation from 0)
Definition at line 64 of file GRPObject.h.
|
inline |
getter/setter for data taking period name
Definition at line 87 of file GRPObject.h.
GRPObject::ROMode GRPObject::getDetROMode | ( | DetID | id | ) | const |
Definition at line 97 of file GRPObject.cxx.
|
inline |
getter/setter for masks of detectors with continuos readout
Definition at line 102 of file GRPObject.h.
|
inline |
getter/setter for masks of detectors in the readout
Definition at line 99 of file GRPObject.h.
|
inline |
same with comma-separate list of detector names
Definition at line 138 of file GRPObject.h.
|
inline |
extra selections mask of readout detectors with addition selections. "only" overrides "skip"
Definition at line 136 of file GRPObject.h.
|
inline |
getter/setter for masks of detectors providing the trigger
Definition at line 105 of file GRPObject.h.
|
inline |
Definition at line 80 of file GRPObject.h.
|
inline |
Definition at line 81 of file GRPObject.h.
|
inline |
Definition at line 97 of file GRPObject.h.
|
inline |
Definition at line 61 of file GRPObject.h.
|
inline |
getters/setters for magnets currents
Definition at line 79 of file GRPObject.h.
|
inline |
getter/setter for LHC state in the beggining of run
Definition at line 90 of file GRPObject.h.
|
inline |
Definition at line 58 of file GRPObject.h.
|
inline |
Definition at line 187 of file GRPObject.h.
|
inline |
Definition at line 94 of file GRPObject.h.
float GRPObject::getSqrtS | ( | ) | const |
calculate center of mass energy per nucleon collision
Definition at line 29 of file GRPObject.cxx.
|
inline |
Definition at line 53 of file GRPObject.h.
|
inline |
getters/setters for Start and Stop times according to logbook
Definition at line 52 of file GRPObject.h.
|
inline |
test if detector is read out
Definition at line 127 of file GRPObject.h.
|
inline |
test if detector is read out
Definition at line 125 of file GRPObject.h.
|
inline |
test if detector is triggering
Definition at line 129 of file GRPObject.h.
|
inline |
Definition at line 140 of file GRPObject.h.
|
static |
Definition at line 114 of file GRPObject.cxx.
void GRPObject::print | ( | ) | const |
print itself
Definition at line 46 of file GRPObject.cxx.
remove specific detector from the list of continuouslt readout detectors
Definition at line 119 of file GRPObject.h.
remove specific detector from the list of readout detectors
Definition at line 110 of file GRPObject.h.
remove specific detector from the list of triggering detectors
Definition at line 123 of file GRPObject.h.
|
inline |
Definition at line 70 of file GRPObject.h.
|
inline |
getters/setters for beam energy per charge and per nucleon
Definition at line 72 of file GRPObject.h.
|
inline |
Definition at line 65 of file GRPObject.h.
|
inline |
Definition at line 88 of file GRPObject.h.
set detector readout mode status
set detector readout mode status
Definition at line 76 of file GRPObject.cxx.
|
inline |
Definition at line 103 of file GRPObject.h.
|
inline |
Definition at line 100 of file GRPObject.h.
|
inline |
Definition at line 106 of file GRPObject.h.
|
inline |
Definition at line 83 of file GRPObject.h.
|
inline |
Definition at line 84 of file GRPObject.h.
getter/setter for fill identifier
Definition at line 96 of file GRPObject.h.
|
inline |
Definition at line 60 of file GRPObject.h.
|
inline |
Definition at line 141 of file GRPObject.h.
|
inline |
Definition at line 82 of file GRPObject.h.
|
inline |
Definition at line 91 of file GRPObject.h.
|
inline |
Definition at line 57 of file GRPObject.h.
Definition at line 93 of file GRPObject.h.
Definition at line 55 of file GRPObject.h.
Definition at line 54 of file GRPObject.h.