BmnRoot 26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Loading...
Searching...
No Matches
create_new_parameter.C
Go to the documentation of this file.
1// macro for creating new parameter (if parameter exist - you could check existing parameters by
2// 'UniParameter::PrintAll()' function)
4{
5 // add 'voltage' parameter, for example (double value) :(TString parameter_name, int parameter_type, bool is_array)
6 UniParameter* pParameter = UniParameter::CreateParameter("BD_global_mapping", TriggerMapType, false);
7 if (pParameter == nullptr) {
8 cout << "\nMacro finished with errors" << endl;
9 return;
10 }
11
12 // clean memory after work
13 delete pParameter;
14
15 cout << "\nMacro finished successfully" << endl;
16}
static UniParameter * CreateParameter(TString parameter_name, int parameter_type, bool is_array)
add new parameter to the database
void create_new_parameter()
@ TriggerMapType