BmnRoot 26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Loading...
Searching...
No Matches
get_parameter_value_file.C
Go to the documentation of this file.
1// macro for getting parameter storing as ROOT file (e.g. detector alignment, lorentz shift) from the database
2void get_parameter_value_file(char* root_file_path, int period_number, int run_number)
3{
4 int res_code = UniDetectorParameter::ReadFile("BM@N", "alignment", period_number, run_number, root_file_path);
5 if (res_code != 0) {
6 cout << "\nMacro finished with errors" << endl;
7 exit(-1);
8 }
9
10 cout << "\nMacro finished successfully" << endl;
11}
static int ReadFile(const char *detector_name, const char *parameter_name, int period_number, int run_number, const char *file_path)
read a whole file with parameter value (with given detector and parameter names) from the Database fo...
void get_parameter_value_file(char *root_file_path, int period_number, int run_number)