27 auto GetEntry = [&success, runId](
const auto& mapped) ->
auto
29 auto res = std::prev(mapped.upper_bound(runId))->second;
30 if constexpr (std::is_same_v<std::string,
decltype(res)>) {
44 LOG(error) <<
"Matching range for run " << runId <<
" not found for at least one field in run DB at "
48 catch (YAML::BadFile&) {
49 LOG(error) <<
"General run database not found at " <<
fPathCommonDb;
61 catch (
const std::out_of_range&) {
62 LOG(error) <<
"Start time for run " << runId <<
" not found in mCBM table at " <<
fPathRunStartTimeDb
63 <<
" => Setting it to 0";
67 catch (YAML::BadFile&) {
68 LOG(error) <<
"mCBM Runs Start time table not found at " <<
fPathRunStartTimeDb <<
" => Setting start time to 0";
83 std::stringstream msg;
84 msg <<
"====== CBM Run #" <<
fRunId;
89 msg <<
"\n\tReconstruction parameter tag: " <<
fRecoParTag;
bool LoadRun(uint32_t runId)
Loads the information for the run from the file.
The main calibration data base class for CBM.
uint32_t fRunId
Current run ID.
std::string fGeoSetupTag
Geometry setup tag for a given run ID.
std::string fTofCalibrationTag
TOF calibration tag for a given run ID.
std::string fRecoParTag
Tag for reconstruction parameters for a given run ID.
std::string fPathRunStartTimeDb
Path to the runtime data-base.
uint64_t fRunStartTimeNs
Run start time since the epoch [ns].
std::string ToString() const
String representation of the class contents.
std::string fAlignmentTag
Tag for alignment matrices.
std::string fPathCommonDb
Path to the common data-base.
std::string fBmonCalibrationTag
BMON calibration tag for a given run ID.
T ReadFromFile(fs::path path)