16#ifndef CbmRunDatabase_h
17#define CbmRunDatabase_h 1
42 std::map<uint32_t, std::string>
bmon;
43 std::map<uint32_t, std::string>
tof;
The main calibration data base class for CBM.
const std::string & GetRecoParTag() const
Returns tag of reconstruction parameter.
uint32_t fRunId
Current run ID.
const std::string & GetBmonCalibrationTag() const
Returns tag of BMON calibration for a provided run ID.
std::string fGeoSetupTag
Geometry setup tag for a given run ID.
const uint64_t & GetRunStartTimeNs() const
Returns the run start time in UTC nanoseconds for the selected run ID.
void SetPathRunStartTimeDb(const std::string &pathRunStartTimeDb)
Sets an alternative path to run starttime DB file.
std::string fTofCalibrationTag
TOF calibration tag for a given run ID.
uint64_t GetRunStartTime() const
Returns the run start time in UTC seconds for the selected run ID.
std::string fRecoParTag
Tag for reconstruction parameters for a given run ID.
std::string fPathRunStartTimeDb
Path to the runtime data-base.
void SetPathCommonDb(const std::string &pathCommonDb)
Sets an alternative path to the common DB file.
const std::string & GetTofCalibrationTag() const
Returns tag of TOF calibration for a provided run ID.
uint64_t fRunStartTimeNs
Run start time since the epoch [ns].
const std::string & GetAlignmentTag() const
Returns tag of alignment matrices (geoSetup + ref. run ID)
std::string ToString() const
String representation of the class contents.
std::string fAlignmentTag
Tag for alignment matrices.
const std::string & GetGeoSetupTag() const
Returns tag of the geometry setup for a provided run ID.
uint32_t GetRunId() const
Returns the loaded run ID.
std::string GetRecoParDir() const
Returns a path to the reconstruction parameter directory.
std::string fPathCommonDb
Path to the common data-base.
std::string GetAlgoMainConfigPath() const
Returns a path to the main configuration file of the online reconstruction.
bool LoadRun(uint32_t runId)
Loads the information for the run from the file.
std::string fBmonCalibrationTag
BMON calibration tag for a given run ID.
A helper structure, which defines "calibration" YAML node.
std::map< uint32_t, std::string > tof
TOF calibration tag.
CBM_YAML_PROPERTIES(util::yaml::Property(&RunDatabase::DbCalibration::bmon, "bmon", "Run ID map for BMON calibration tags"), util::yaml::Property(&RunDatabase::DbCalibration::tof, "tof", "Run ID map for TOF calibration tags"))
std::map< uint32_t, std::string > bmon
BMON calibration tag.
A helper structure, which defines a layout for "common" YAML node.
CBM_YAML_PROPERTIES(util::yaml::Property(&RunDatabase::DbCommon::geoSetup, "geoSetup", "Run ID map for geometry setup tags"))
std::map< uint32_t, std::string > geoSetup
geometry setup tag
A helper structure, which defines a layout of the YAML file.
CBM_YAML_PROPERTIES(util::yaml::Property(&RunDatabase::DbContents::common, "common", "Common parameters"), util::yaml::Property(&RunDatabase::DbContents::calibration, "calibration", "Calibration of detector subsystems"), util::yaml::Property(&RunDatabase::DbContents::alignment, "alignment", "Alignment matrices tag"), util::yaml::Property(&RunDatabase::DbContents::recoPar, "recoPar", "Reconstruction parameter tag"))
std::map< uint32_t, std::string > alignment
Alignment tags.
DbCalibration calibration
A node for calibration tags.
DbCommon common
A node for common maps.
std::map< uint32_t, std::string > recoPar
Reconstruction parameter tags.
A helper structure, which defines a layout of the "mCBM start time" YAML file.
CBM_YAML_PROPERTIES(algo::yaml::Property(&RunDatabase::DbStartTimeMcbm::runStartTime, "run_start", "Run ID map to start time"))
std::unordered_map< uint32_t, uint64_t > runStartTime
run start time