32 auto timeStr = [](
long t) -> std::string {
34 std::time_t temp = t / 1000;
35 std::tm*
tt = std::gmtime(&temp);
37 ss << std::put_time(
tt,
"%d/%m/%y %H:%M:%S") <<
" UTC";
43 printf(
"Run %d of type %s, period %s, isMC: %d\n", mRun, rtypName.c_str(), mDataPeriod.c_str(),
isMC());
44 printf(
"ECS/CTP Start: %s/%s | End: %s/%s\n", timeStr(mTimeStart).c_str(), timeStr(mTimeStartCTP).c_str(),
45 timeStr(mTimeEnd).c_str(), timeStr(mTimeEndCTP).c_str());
46 printf(
"Number of HBF per timframe: %d\n", mNHBFPerTF);
47 printf(
"Detectors: Cont.RO Triggers\n");
57 printf(
"List of FLPs used\n");
58 for (
auto flp : mFLPs) {
107 TFile flGRP(fname.c_str());
108 if (flGRP.IsZombie()) {
109 LOG(error) <<
"Failed to open " << fname;
110 throw std::runtime_error(
"Failed to open GRPECS file");
114 throw std::runtime_error(fmt::format(
"Failed to load GRPECS object from {}", fname));
std::string getName(const TDataMember *dm, int index, int size)
Header of the AggregatedRunInfo struct.
Definition of the Names Generator class.
static std::string getGRPECSFileName(const std::string_view prefix=STANDARDSIMPREFIX)
static constexpr std::string_view CCDBOBJECT
Static class with identifiers, bitmasks and names for ALICE detectors.
static constexpr ID First
static constexpr ID Last
if extra detectors added, update this !!!
bool isDetTriggers(DetID id) const
test if detector is triggering
bool isDetContinuousReadOut(DetID id) const
test if detector is read out
void addDetTrigger(DetID id)
add specific detector to the list of triggering detectors
ROMode getDetROMode(DetID id) const
void remDetTrigger(DetID id)
remove specific detector from the list of triggering detectors
bool isDetReadOut(DetID id) const
test if detector is read out
void setDetROMode(DetID id, ROMode status)
set detector readout mode status
void addDetReadOut(DetID id)
add specific detector to the list of readout detectors
void addDetContinuousReadOut(DetID id)
add specific detector to the list of continuously readout detectors
void print() const
print itself
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
LOG(info)<< "Compressed in "<< sw.CpuTime()<< " s"