109 auto timeStr = [](
long t) -> std::string {
111 std::time_t temp = t / 1000;
112 std::tm*
tt = std::gmtime(&temp);
113 std::stringstream ss;
114 ss << std::put_time(
tt,
"%d/%m/%y %H:%M:%S") <<
" UTC";
120 printf(
"%s: Fill : %d\n", timeStr(mFillNumber.first).c_str(), mFillNumber.second);
121 printf(
"%s: Injection scheme : %s\n", timeStr(mInjectionScheme.first).c_str(), mInjectionScheme.second.c_str());
122 printf(
"%s: Beam energy per Z : %d\n", timeStr(mBeamEnergyPerZ.first).c_str(), mBeamEnergyPerZ.second);
123 printf(
"%s: A beam1 (clock) : %d\n", timeStr(mAtomicNumberB1.first).c_str(), mAtomicNumberB1.second);
124 printf(
"%s: A beam2 (a-clock) : %d\n", timeStr(mAtomicNumberB2.first).c_str(), mAtomicNumberB2.second);
125 printf(
"%s: Bunch filling\n", timeStr(mBunchFilling.first).c_str());
126 if (mBunchFilling.first > 0) {
127 mBunchFilling.second.print();