BmnRoot 26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Loading...
Searching...
No Matches
put_parameter_value_file.C
Go to the documentation of this file.
1// macro for writing ROOT file with detector parameter (e.g BM@N alignment, lorentz shift) to the database
2// e.g. root 'set_parameter_root_file.C("$VMCWORKDIR/input/align.root", 6, 1170, 6, 1177)'
3void put_parameter_value_file(char* root_file_path, int start_period, int start_run, int end_period, int end_run)
4{
5 // write ROOT file with detector parameter for run range
6 int res_code = UniDetectorParameter::WriteFile("BM@N", "alignment", start_period, start_run, end_period, end_run,
7 root_file_path);
8 if (res_code != 0) {
9 cout << "\nMacro finished with errors" << endl;
10 exit(-1);
11 }
12
13 cout << "\nMacro finished successfully" << endl;
14}
static int WriteFile(const char *detector_name, const char *parameter_name, int start_period, int start_run, int end_period, int end_run, const char *file_path)
write a whole file with parameter value (with given detector and parameter names) to the Database fro...
void put_parameter_value_file(char *root_file_path, int start_period, int start_run, int end_period, int end_run)