16#include <fairlogger/Logger.h>
39 beta0 = beta0 > 0 ? sqrt(beta0) : 0.;
40 beta1 = beta1 > 0 ? sqrt(beta1) : 0.;
41 double ss = 2. * (
MassProton *
MassProton + e0 * e1 * (1. + beta0 * beta1 * cos(mCrossingAngle)));
42 return ss > 0. ? sqrt(ss) : 0.;
51 std::time_t t = mTimeStart;
52 printf(
"Start: %s", std::ctime(&t));
54 printf(
"End : %s", std::ctime(&t));
55 printf(
"1st orbit: %u, %u orbits per TF\n", mFirstOrbit, mNHBFPerTF);
60 printf(
"sqrt[s] = %.3f\n",
getSqrtS());
63 printf(
"Detectors: Cont.RO Triggers\n");
118 TFile flGRP(fname.c_str());
119 if (flGRP.IsZombie()) {
120 LOG(error) <<
"Failed to open " << fname;
121 throw std::runtime_error(
"Failed to open GRP file");
125 throw std::runtime_error(fmt::format(
"Failed to load GRP object from {}", fname));
std::string getName(const TDataMember *dm, int index, int size)
Header of the General Run Parameters object.
Definition of the Names Generator class.
Header to collect physics constants.
static constexpr std::string_view CCDBOBJECT
static std::string getGRPFileName(const std::string_view prefix=STANDARDSIMPREFIX)
Static class with identifiers, bitmasks and names for ALICE detectors.
static constexpr ID First
static constexpr ID Last
if extra detectors added, update this !!!
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
void addDetContinuousReadOut(DetID id)
add specific detector to the list of continuously readout detectors
const std::string & getLHCState() const
getter/setter for LHC state in the beggining of run
o2::units::AngleRad_t getCrossingAngle() const
getters/setters for beams crossing angle (deviation from 0)
void print() const
print itself
int getBeamA(beamDirection beam) const
o2::units::Current_t getDipoleCurrent() const
bool isDetReadOut(DetID id) const
test if detector is read out
bool isDetTriggers(DetID id) const
test if detector is triggering
float getBeamEnergyPerNucleon(beamDirection beam) const
void addDetTrigger(DetID id)
add specific detector to the list of triggering detectors
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
void remDetTrigger(DetID id)
remove specific detector from the list of triggering detectors
static GRPObject * loadFrom(const std::string &grpFileName="")
void remDetContinuousReadOut(DetID id)
remove specific detector from the list of continuouslt readout detectors
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
constexpr double MassProton
LOG(info)<< "Compressed in "<< sw.CpuTime()<< " s"