BmnRoot 26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Loading...
Searching...
No Matches
add_GEM_constants.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 bool return_error = false;
6
7 // UniParameter::CreateParameter("GEM_N_ch_X_small", IntType);
8 // UniParameter::CreateParameter("GEM_N_ch_Y_small", IntType);
9 // UniParameter::CreateParameter("GEM_N_ch_X0_middle", IntType);
10 // UniParameter::CreateParameter("GEM_N_ch_Y0_middle", IntType);
11 // UniParameter::CreateParameter("GEM_N_ch_X1_middle", IntType);
12 // UniParameter::CreateParameter("GEM_N_ch_Y1_middle", IntType);
13 // UniParameter::CreateParameter("GEM_N_ch_X0_big_l", IntType);
14 // UniParameter::CreateParameter("GEM_N_ch_Y0_big_l", IntType);
15 // UniParameter::CreateParameter("GEM_N_ch_X1_big_l", IntType);
16 // UniParameter::CreateParameter("GEM_N_ch_Y1_big_l", IntType);
17 // UniParameter::CreateParameter("GEM_N_ch_X0_big_r", IntType);
18 // UniParameter::CreateParameter("GEM_N_ch_Y0_big_r", IntType);
19 // UniParameter::CreateParameter("GEM_N_ch_X1_big_r", IntType);
20 // UniParameter::CreateParameter("GEM_N_ch_Y1_big_r", IntType);
21
22 IntValue iValue;
23 iValue.value = 256;
24 UniDetectorParameter::CreateDetectorParameter("GEM", "GEM_N_ch_X_small", 5, 1, 5, 1e4, &iValue);
25 iValue.value = 256;
26 UniDetectorParameter::CreateDetectorParameter("GEM", "GEM_N_ch_Y_small", 5, 1, 5, 1e4, &iValue);
27 iValue.value = 190;
28 UniDetectorParameter::CreateDetectorParameter("GEM", "GEM_N_ch_X0_middle", 5, 1, 5, 1e4, &iValue);
29 iValue.value = 215;
30 UniDetectorParameter::CreateDetectorParameter("GEM", "GEM_N_ch_Y0_middle", 5, 1, 5, 1e4, &iValue);
31 iValue.value = 825;
32 UniDetectorParameter::CreateDetectorParameter("GEM", "GEM_N_ch_X1_middle", 5, 1, 5, 1e4, &iValue);
33 iValue.value = 930;
34 UniDetectorParameter::CreateDetectorParameter("GEM", "GEM_N_ch_Y1_middle", 5, 1, 5, 1e4, &iValue);
35 iValue.value = 500;
36 UniDetectorParameter::CreateDetectorParameter("GEM", "GEM_N_ch_X0_big_l", 5, 1, 5, 1e4, &iValue);
37 iValue.value = 488;
38 UniDetectorParameter::CreateDetectorParameter("GEM", "GEM_N_ch_Y0_big_l", 5, 1, 5, 1e4, &iValue);
39 iValue.value = 1019;
40 UniDetectorParameter::CreateDetectorParameter("GEM", "GEM_N_ch_X1_big_l", 5, 1, 5, 1e4, &iValue);
41 iValue.value = 1081;
42 UniDetectorParameter::CreateDetectorParameter("GEM", "GEM_N_ch_Y1_big_l", 5, 1, 5, 1e4, &iValue);
43 iValue.value = 500;
44 UniDetectorParameter::CreateDetectorParameter("GEM", "GEM_N_ch_X0_big_r", 5, 1, 5, 1e4, &iValue);
45 iValue.value = 506;
46 UniDetectorParameter::CreateDetectorParameter("GEM", "GEM_N_ch_Y0_big_r", 5, 1, 5, 1e4, &iValue);
47 iValue.value = 1019;
48 UniDetectorParameter::CreateDetectorParameter("GEM", "GEM_N_ch_X1_big_r", 5, 1, 5, 1e4, &iValue);
49 iValue.value = 1130;
50 UniDetectorParameter::CreateDetectorParameter("GEM", "GEM_N_ch_Y1_big_r", 5, 1, 5, 1e4, &iValue);
51
52 if (return_error)
53 cout << "\nMacro finished with errors" << endl;
54 else
55 cout << "\nMacro finished successfully" << endl;
56}
void add_GEM_constants()
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