16#ifndef ALICEO2_DATA_GRPOBJECT_H_
17#define ALICEO2_DATA_GRPOBJECT_H_
113 mDetsReadout &=
~id.getMask();
141 bool isMC()
const {
return mIsMC; }
160 o2::units::AngleRad_t mCrossingAngle = 0.f;
161 o2::units::Current_t mL3Current = 0.f;
162 o2::units::Current_t mDipoleCurrent = 0.f;
163 bool mUniformField =
false;
164 float mBeamEnergyPerZ = 0.f;
166 int8_t mNominalL3Field = 0;
167 bool mNominalL3FieldValid =
false;
169 int mBeamAZ[beamDirection::NBeamDirections] = {0, 0};
173 std::string mDataPeriod =
"";
174 std::string mLHCState =
"";
184 return a ?
getBeamZ(
b) /
static_cast<float>(
a) : 0.f;
192 if (mNominalL3FieldValid ==
false) {
193 mNominalL3Field = std::lround(5.f * mL3Current / 30000.f);
194 mNominalL3FieldValid =
true;
196 return mNominalL3Field;
Timeframe settings Average distance in cm of events merged into Randomize distance around average distance of merged events Simulate correct bunch interactions instead of placing only the average number of events A value[n] sets TFlen for[n] collisions in Number of bunches per trainsort Number of bunch trains Instantaneous interaction rate Do not simulate border Total number of collisions to be placed in the interior of all time Do not select random but walk over array of events in stride steps h Event generator settings h configStandalone Use CPU for GPU Force usage of the specified GPU device no CPU fallback Continue processing after an error First event to Number of events to Number of iterations to Number of iterations to Number of initial iterations excluded from const char Directory with events to Events directory is and not inside events Show standalone event Run event generator maximum time bin of continuous for triggered for automatic continuous for automatic continuous triggered uint64_t
Header to collect LHC related constants.
Header to collect definitions for different units.
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)
const std::string & getDataPeriod() const
getter/setter for data taking period name
int getBeamZ(beamDirection beam) const
getters/setters for given beam A and Z info, encoded as A<<16+Z
DetID::mask_t getDetsReadOut() const
getter/setter for masks of detectors in the readout
void setLHCState(const std::string v)
void addDetContinuousReadOut(DetID id)
add specific detector to the list of continuously readout detectors
DetID::mask_t getDetsContinuousReadOut() const
getter/setter for masks of detectors with continuos readout
const std::string & getLHCState() const
getter/setter for LHC state in the beggining of run
void setTimeStart(timePoint t)
o2::units::AngleRad_t getCrossingAngle() const
getters/setters for beams crossing angle (deviation from 0)
void print() const
print itself
timePoint getTimeStart() const
getters/setters for Start and Stop times according to logbook
void setBeamAZ(int a, int z, beamDirection beam)
int getBeamA(beamDirection beam) const
float getBeamZ2A(beamDirection beam) const
uint32_t getFirstOrbit() const
o2::units::Current_t getDipoleCurrent() const
void setNHBFPerTF(uint32_t n)
void setBeamEnergyPerZ(float v)
getters/setters for beam energy per charge and per nucleon
void setDetsReadOut(DetID::mask_t mask)
bool isDetReadOut(DetID id) const
test if detector is read out
void setFirstOrbit(uint32_t o)
bool isDetTriggers(DetID id) const
test if detector is triggering
void setTimeEnd(timePoint t)
int8_t getNominalL3Field()
float getBeamEnergyPerNucleon(beamDirection beam) const
void addDetTrigger(DetID id)
add specific detector to the list of triggering detectors
float getBeamEnergyPerZ() const
void setDataPeriod(const std::string v)
void setDetsContinuousReadOut(DetID::mask_t mask)
DetID::mask_t getDetsTrigger() const
getter/setter for masks of detectors providing the trigger
bool isDetContinuousReadOut(DetID id) const
test if detector is read out
void addDetReadOut(DetID id)
add specific detector to the list of readout detectors
void setDetROMode(DetID id, ROMode status)
set detector readout mode status
void remDetReadOut(DetID id)
remove specific detector from the list of readout detectors
DetID::mask_t getDetsReadOut(const std::string &only, const std::string &skip="") const
same with comma-separate list of detector names
void setCrossingAngle(o2::units::AngleRad_t v)
void setDipoleCurrent(o2::units::Current_t v)
timePoint getTimeEnd() const
void setIsMC(bool v=true)
bool getFieldUniformity() const
void remDetTrigger(DetID id)
remove specific detector from the list of triggering detectors
void setL3Current(o2::units::Current_t v)
static GRPObject * loadFrom(const std::string &grpFileName="")
void setFieldUniformity(bool v)
DetID::mask_t getDetsReadOut(DetID::mask_t only, DetID::mask_t skip=0) const
void remDetContinuousReadOut(DetID id)
remove specific detector from the list of continuouslt readout detectors
uint32_t getNHBFPerTF() const
ROMode getDetROMode(DetID id) const
float getSqrtS() const
calculate center of mass energy per nucleon collision
o2::units::Current_t getL3Current() const
getters/setters for magnets currents
void setDetsTrigger(DetID::mask_t mask)
void setFill(int f)
getter/setter for fill identifier
GLboolean GLboolean GLboolean b
GLboolean GLboolean GLboolean GLboolean a
GLdouble GLdouble GLdouble z
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...