11 #ifndef BEASTTREE_V5_H
12 #define BEASTTREE_V5_H
14 #include <RtypesCore.h>
36 std::vector<double>* SKB_HER_current;
37 std::vector<double>* SKB_LER_current;
38 std::vector<double>* SKB_HER_lifetime;
39 std::vector<double>* SKB_LER_lifetime;
40 std::vector<float>* SKB_LER_Zeff_D02;
41 std::vector<float>* SKB_LER_Zeff_D06;
42 std::vector<double> SKB_HER_RLR;
43 std::vector<double> SKB_LER_RLR;
44 std::vector<double>* SKB_HER_integratedCurrent;
45 std::vector<double>* SKB_LER_integratedCurrent;
46 std::vector<double>* SKB_HER_injectionFlag;
47 std::vector<double>* SKB_LER_injectionFlag;
48 std::vector<double>* SKB_HER_injectionFlag_safe;
49 std::vector<double>* SKB_LER_injectionFlag_safe;
50 std::vector<double>* SKB_HER_abortFlag;
51 std::vector<double>* SKB_LER_abortFlag;
52 std::vector<double>* SKB_HER_abortFlag_safe;
53 std::vector<double>* SKB_LER_abortFlag_safe;
54 std::vector<double>* SKB_HER_injectionRate;
55 std::vector<double>* SKB_LER_injectionRate;
56 std::vector<double>* SKB_HER_injectionEfficiency;
57 std::vector<double>* SKB_LER_injectionEfficiency;
58 std::vector<double>* SKB_HER_injectionCharge;
59 std::vector<double>* SKB_LER_injectionCharge;
60 std::vector<double>* SKB_HER_injectionRepetitionRate;
61 std::vector<double>* SKB_LER_injectionRepetitionRate;
62 std::vector<double>* SKB_HER_injectionNumberOfBunches;
63 std::vector<double>* SKB_LER_injectionNumberOfBunches;
64 std::vector<double>* SKB_HER_beamSize_xray_X;
65 std::vector<double>* SKB_HER_beamSize_xray_Y;
66 std::vector<double>* SKB_HER_correctedBeamSize_xray_Y;
67 std::vector<double>* SKB_LER_beamSize_xray_X;
68 std::vector<double>* SKB_LER_beamSize_xray_Y;
69 std::vector<double>* SKB_LER_correctedBeamSize_xray_Y;
70 std::vector<double>* SKB_HER_beamSize_SR_Y;
71 std::vector<double>* SKB_LER_beamSize_SR_Y;
72 std::vector<double>* SKB_HER_beamSize_SR_X;
73 std::vector<double>* SKB_LER_beamSize_SR_X;
74 std::vector<double>* SKB_beamLoss_nearCollimators;
75 std::vector<double>* SKB_beamLoss_aroundMasks;
76 std::vector<double>* SKB_HER_pressure_average;
77 std::vector<double>* SKB_LER_pressure_average;
78 std::vector<float>* SKB_HER_pressures;
79 std::vector<float>* SKB_LER_pressures;
80 std::vector<float>* SKB_LER_pressures_local;
81 std::vector<float>* SKB_HER_pressures_local;
82 std::vector<double>* SKB_HER_pressure_average_corrected;
83 std::vector<double>* SKB_LER_pressure_average_corrected;
84 std::vector<float>* SKB_HER_pressures_corrected;
85 std::vector<float>* SKB_LER_pressures_corrected;
86 std::vector<float>* SKB_LER_pressures_local_corrected;
87 std::vector<float>* SKB_HER_pressures_local_corrected;
88 std::vector<float>* SKB_HER_collimatorPositions_inX;
89 std::vector<float>* SKB_HER_collimatorPositions_inY;
90 std::vector<float>* SKB_HER_collimatorPositions_mm;
91 std::vector<float>* SKB_LER_collimatorPositions_mm;
92 std::vector<float>* SKB_LER_partialPressures_D06;
93 std::vector<float>* SKB_LER_partialPressures_D02;
94 std::vector<float>* DIA_current;
95 std::vector<float>* CSI_temperature;
96 std::vector<float>* CSI_humidity;
97 std::vector<float>* TPC_gas_flow;
98 std::vector<float>* TPC_gas_pressure;
99 std::vector<double>* SKB_Status;
100 std::vector<short>* SKB_beamLoss_ionChambers_mean;
101 std::vector<short>* SKB_beamLoss_PINdiodes_mean;
102 std::vector<float>* SKB_HER_collimatorPositions_DMM;
103 std::vector<float>* SKB_HER_collimatorPositions_fromBeam;
104 std::vector<float>* SKB_LER_collimatorPositions_DMM;
105 std::vector<float>* SKB_LER_collimatorPositions_X;
106 std::vector<float>* SKB_LER_collimatorPositions_Y;
107 std::vector<float>* SKB_LER_collimatorPositions_fromBeam;
108 std::vector<float>* PIN_voltage;
109 std::vector<float>* PIN_temperature;
110 std::vector<float> PIN_dose;
111 std::vector<float> PIN_dose_av;
112 std::vector<int>* TPC3_idx;
113 std::vector<int>* TPC3_npoints;
114 std::vector<int>* TPC3_channel;
115 std::vector<int>* TPC3_sumTOT;
116 std::vector<float>* TPC3_sumE;
117 std::vector<unsigned short>* TPC3_hitside;
118 std::vector<double>* TPC3_phi;
119 std::vector<double>* TPC3_theta;
120 std::vector<float>* TPC3_chi2;
121 std::vector<double>* TPC3_dEdx;
122 std::vector<int>* TPC3_PID_neutrons;
123 std::vector<int>* TPC3_PID_alphas_top;
124 std::vector<int>* TPC3_PID_alphas_bottom;
125 std::vector<int>* TPC3_PID_xrays;
126 std::vector<int>* TPC3_PID_protons;
127 std::vector<int>* TPC3_PID_others;
128 std::vector<unsigned int>* TPC3_N_neutrons;
129 std::vector<unsigned int>* TPC3_N_alphas_top;
130 std::vector<unsigned int>* TPC3_N_alphas_bottom;
131 std::vector<unsigned int>* TPC3_N_xrays;
132 std::vector<unsigned int>* TPC3_N_protons;
133 std::vector<unsigned int>* TPC3_N_others;
134 std::vector<unsigned int>* TPC3_selectedTrackIdx;
135 std::vector<int>* TPC3_hits_col;
136 std::vector<int>* TPC3_hits_row;
137 std::vector<int>* TPC3_hits_bcid;
138 std::vector<int>* TPC3_hits_tot;
139 std::vector<int>* TPC4_idx;
140 std::vector<int>* TPC4_npoints;
141 std::vector<int>* TPC4_channel;
142 std::vector<int>* TPC4_sumTOT;
143 std::vector<float>* TPC4_sumE;
144 std::vector<unsigned short>* TPC4_hitside;
145 std::vector<double>* TPC4_phi;
146 std::vector<double>* TPC4_theta;
147 std::vector<float>* TPC4_chi2;
148 std::vector<double>* TPC4_dEdx;
149 std::vector<int>* TPC4_PID_neutrons;
150 std::vector<int>* TPC4_PID_alphas_top;
151 std::vector<int>* TPC4_PID_alphas_bottom;
152 std::vector<int>* TPC4_PID_xrays;
153 std::vector<int>* TPC4_PID_protons;
154 std::vector<int>* TPC4_PID_others;
155 std::vector<unsigned int>* TPC4_N_neutrons;
156 std::vector<unsigned int>* TPC4_N_alphas_top;
157 std::vector<unsigned int>* TPC4_N_alphas_bottom;
158 std::vector<unsigned int>* TPC4_N_xrays;
159 std::vector<unsigned int>* TPC4_N_protons;
160 std::vector<unsigned int>* TPC4_N_others;
161 std::vector<int>* TPC4_selectedTrackIdx;
162 std::vector<int>* TPC4_hits_col;
163 std::vector<int>* TPC4_hits_row;
164 std::vector<int>* TPC4_hits_bcid;
165 std::vector<int>* TPC4_hits_tot;
166 std::vector<float> BGO_energy;
167 std::vector<float> CSI_hitRate;
168 std::vector<float> CSI_sumE;
169 std::vector<float>* CSI_data_sumE;
170 std::vector<float> CSI_Ebin;
171 std::vector<float> HE3_rate;
172 std::vector<float> CLAWS_rate;
173 std::vector<float> QCSS_rate;
174 std::vector<float> DIA_dose;
175 std::vector<float>* DIA_data_dose;
176 std::vector<float>* PIN_data_dose;
177 std::vector<float>* BGO_data_dose;
178 std::vector<float> BGO_energy_av;
179 std::vector<float> CSI_hitRate_av;
180 std::vector<float> CSI_sumE_av;
181 std::vector<float> CSI_Ebin_av;
182 std::vector<float> HE3_rate_av;
183 std::vector<float> CLAWS_rate_av;
184 std::vector<float> QCSS_rate_av;
185 std::vector<float> DIA_dose_av;
187 std::vector<float>* CSI_data_rate;
188 std::vector<float>* HE3_data_rate;
189 std::vector<float>* QCSS_data_rate;
190 std::vector<float>* CLAWS_data_rate;
191 std::vector<float>* CSI_data_Ebin;
193 std::vector<double> SAD_HER_lifetime;
194 std::vector<double> SAD_LER_lifetime;
195 std::vector<double> SAD_HER_lifetime_av;
196 std::vector<double> SAD_LER_lifetime_av;
197 std::vector<double> SAD_HER_RLR;
198 std::vector<double> SAD_LER_RLR;
199 std::vector<double> SAD_HER_RLR_av;
200 std::vector<double> SAD_LER_RLR_av;
202 std::vector<float> DOSI;
203 std::vector<float> DOSI_av;
205 std::vector<double> mc_reweight_LERB;
206 std::vector<double> mc_reweight_LERC;
207 std::vector<double> mc_reweight_LERT;
208 std::vector<double> mc_reweight_HERB;
209 std::vector<double> mc_reweight_HERC;
210 std::vector<double> mc_reweight_HERT;
214 float TPC_rate_av[2][5];
215 float TPC_rate[2][5];
218 std::vector<float> TPC_dose;
219 std::vector<float> TPC_dose_av;
221 float TPC_angular_rate_av[2][9][18];
222 float TPC_angular_rate[2][9][18];
223 float TPC_angular_dose_av[2][9][18];
224 float TPC_angular_dose[2][9][18];
235 SKB_HER_injectionFlag = 0;
236 SKB_LER_injectionFlag = 0;
237 SKB_HER_injectionFlag_safe = 0;
238 SKB_LER_injectionFlag_safe = 0;
239 SKB_HER_abortFlag = 0;
240 SKB_LER_abortFlag = 0;
241 SKB_HER_abortFlag_safe = 0;
242 SKB_LER_abortFlag_safe = 0;
244 SKB_HER_injectionRate = 0;
245 SKB_LER_injectionRate = 0;
246 SKB_HER_lifetime = 0;
247 SKB_LER_lifetime = 0;
250 SKB_LER_injectionEfficiency = 0;
251 SKB_HER_injectionEfficiency = 0;
252 SKB_beamLoss_ionChambers_mean = 0;
253 SKB_beamLoss_PINdiodes_mean = 0;
254 SKB_beamLoss_nearCollimators = 0;
255 SKB_beamLoss_aroundMasks = 0;
256 SKB_LER_injectionCharge = 0;
257 SKB_HER_injectionCharge = 0;
258 SKB_LER_injectionRepetitionRate = 0;
259 SKB_HER_injectionRepetitionRate = 0;
260 SKB_LER_injectionNumberOfBunches = 0;
261 SKB_HER_injectionNumberOfBunches = 0;
262 SKB_LER_pressures = 0;
263 SKB_HER_pressures = 0;
264 SKB_LER_pressure_average = 0;
265 SKB_HER_pressure_average = 0;
266 SKB_LER_pressures_corrected = 0;
267 SKB_HER_pressures_corrected = 0;
268 SKB_LER_pressure_average_corrected = 0;
269 SKB_HER_pressure_average_corrected = 0;
270 SKB_HER_collimatorPositions_mm = 0;
271 SKB_HER_collimatorPositions_DMM = 0;
272 SKB_HER_collimatorPositions_inX = 0;
273 SKB_HER_collimatorPositions_inY = 0;
274 SKB_HER_collimatorPositions_fromBeam = 0;
275 SKB_LER_collimatorPositions_DMM = 0;
276 SKB_LER_collimatorPositions_mm = 0;
277 SKB_LER_collimatorPositions_X = 0;
278 SKB_LER_collimatorPositions_Y = 0;
279 SKB_LER_collimatorPositions_fromBeam = 0;
280 SKB_HER_beamSize_xray_X = 0;
281 SKB_HER_beamSize_xray_Y = 0;
282 SKB_HER_correctedBeamSize_xray_Y = 0;
283 SKB_LER_beamSize_xray_X = 0;
284 SKB_LER_beamSize_xray_Y = 0;
285 SKB_LER_correctedBeamSize_xray_Y = 0;
286 SKB_LER_beamSize_SR_X = 0;
287 SKB_LER_beamSize_SR_Y = 0;
288 SKB_HER_beamSize_SR_X = 0;
289 SKB_HER_beamSize_SR_Y = 0;
290 SKB_HER_integratedCurrent = 0;
291 SKB_LER_integratedCurrent = 0;
292 SKB_LER_partialPressures_D06 = 0;
293 SKB_LER_partialPressures_D02 = 0;
294 SKB_LER_pressures_local = 0;
295 SKB_HER_pressures_local = 0;
296 SKB_LER_pressures_local_corrected = 0;
297 SKB_HER_pressures_local_corrected = 0;
298 SKB_LER_Zeff_D02 = 0;
299 SKB_LER_Zeff_D06 = 0;
323 BGO_energy_av.clear();
327 for (
int i = 0; i < 2; i ++) {
328 for (
int j = 0; j < 5; j ++) {
331 TPC_rate_av[i][j] = 0;
336 for (
int j = 0; j < 9; j ++) {
337 for (
int k = 0; k < 18; k ++) {
338 TPC_angular_rate[i][j][k] = 0;
339 TPC_angular_dose[i][j][k] = 0;
340 TPC_angular_rate_av[i][j][k] = 0;
341 TPC_angular_dose_av[i][j][k] = 0;
345 CLAWS_rate_av.clear();
346 QCSS_rate_av.clear();
349 CSI_hitRate_av.clear();
352 SAD_HER_lifetime.clear();
353 SAD_LER_lifetime.clear();
358 SAD_HER_RLR_av.clear();
359 SAD_LER_RLR_av.clear();
360 SAD_HER_lifetime_av.clear();
361 SAD_LER_lifetime_av.clear();