BmnRoot
26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Toggle main menu visibility
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
2
void
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
}
UniDetectorParameter::ReadFile
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...
Definition
UniDetectorParameter.cxx:1383
get_parameter_value_file
void get_parameter_value_file(char *root_file_path, int period_number, int run_number)
Definition
get_parameter_value_file.C:2
database
uni_db
examples
get_parameter_value_file.C
Generated on
for BmnRoot by
1.17.0