BmnRoot 26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Loading...
Searching...
No Matches
put_parameter_value.C
Go to the documentation of this file.
1// macro for adding parameter value (if parameter exist - you could check existing parameters by
2// 'UniParameter::PrintAll()' function)
4{
5 // set 'on' parameter value (boolean value)
6 BoolValue bValue;
7 bValue.value = true;
8 UniDetectorParameter* pDetectorParameter =
9 UniDetectorParameter::CreateDetectorParameter("DCH1", "on", 1, 77, 1, 77, &bValue);
10 if (pDetectorParameter == nullptr) {
11 cout << "\nMacro finished with errors" << endl;
12 return;
13 }
14
15 // clean memory after work
16 delete pDetectorParameter;
17
18 cout << "\nMacro finished successfully" << endl;
19}
static UniDetectorParameter * CreateDetectorParameter(TString detector_name, int parameter_id, int start_period, int start_run, int end_period, int end_run, int value_key, unsigned char *parameter_value, Long_t size_parameter_value, TDatime *expiry_date)
add new detector parameter to the database
void put_parameter_value()
STRUCTURES for parameter storing corresponding enumValueType list.