13 bool return_error =
false;
18 vector<UniValue*> pT0;
19 vector<UniValue*> pBC1;
20 vector<UniValue*> pBC2;
21 vector<UniValue*> pVETO;
22 vector<UniValue*> pFD;
23 vector<UniValue*> pBD;
82 Int_t finishRun = 1e4;
85 "T0",
"T0_global_mapping", period, startRun, period, finishRun, pT0);
87 "BC1",
"BC1_global_mapping", period, startRun, period, finishRun, pBC1);
89 "BC2",
"BC2_global_mapping", period, startRun, period, finishRun, pBC2);
91 "VETO",
"VETO_global_mapping", period, startRun, period, finishRun, pVETO);
93 "BD",
"BD_global_mapping", period, startRun, period, finishRun, pBD);
96 for (
int i = 0;
i < pT0.size();
i++)
98 for (
int i = 0;
i < pBC1.size();
i++)
100 for (
int i = 0;
i < pBC2.size();
i++)
102 for (
int i = 0;
i < pVETO.size();
i++)
104 for (
int i = 0;
i < pFD.size();
i++)
106 for (
int i = 0;
i < pBD.size();
i++)
108 if (pDetectorParameterT0)
109 delete pDetectorParameterT0;
110 if (pDetectorParameterBC1)
111 delete pDetectorParameterBC1;
112 if (pDetectorParameterBC2)
113 delete pDetectorParameterBC2;
114 if (pDetectorParameterVET0)
115 delete pDetectorParameterVET0;
116 if (pDetectorParameterBD)
117 delete pDetectorParameterBD;
120 cout <<
"\nMacro finished with errors" << endl;
122 cout <<
"\nMacro finished successfully" << endl;