Belle II Software  release-05-02-19
BEASTTree_v5.h
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2016 - Belle II Collaboration *
4  * *
5  * Author: The Belle II Collaboration *
6  * Contributors: Igal Jaegle *
7  * *
8  * This software is provided "as is" without any warranty. *
9  **************************************************************************/
10 
11 #ifndef BEASTTREE_V5_H
12 #define BEASTTREE_V5_H
13 
14 #include <RtypesCore.h>
15 
16 #include <vector>
17 
18 namespace Belle2 {
23  namespace BEAST_v5 {
24 
29  struct BEASTTree_v5 {
30 
32  UInt_t ts;
33  UInt_t event;
34  UInt_t run;
35  UInt_t subrun;
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;
212  //std::vector<float> TPC_rate_av[2][5];/** */
213  //std::vector<float> TPC_rate[2][5];/** */
214  float TPC_rate_av[2][5];
215  float TPC_rate[2][5];
216  //float TPC_dose_av[2][5];/** */
217  //float TPC_dose[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];
229  void clear()
230  {
231  ts = 0;
232  event = 0;
233  run = 0;
234  subrun = 0;
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;
243  SKB_Status = 0;
244  SKB_HER_injectionRate = 0;
245  SKB_LER_injectionRate = 0;
246  SKB_HER_lifetime = 0;
247  SKB_LER_lifetime = 0;
248  SKB_LER_current = 0;
249  SKB_HER_current = 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;
300  PIN_data_dose = 0;
301  DIA_data_dose = 0;
302  BGO_data_dose = 0;
303  CSI_data_sumE = 0;
304 
305  HE3_data_rate = 0;
306  CSI_data_rate = 0;
307  QCSS_data_rate = 0;
308  CLAWS_data_rate = 0;
309  CSI_data_Ebin = 0;
310 
311 
312  PIN_dose.clear();
313  BGO_energy.clear();
314  HE3_rate.clear();
315  CLAWS_rate.clear();
316  QCSS_rate.clear();
317  CSI_sumE.clear();
318  CSI_Ebin.clear();
319  CSI_hitRate.clear();
320  DIA_dose.clear();
321 
322  PIN_dose_av.clear();
323  BGO_energy_av.clear();
324  HE3_rate_av.clear();
325  TPC_dose_av.clear();
326  TPC_dose.clear();
327  for (int i = 0; i < 2; i ++) {
328  for (int j = 0; j < 5; j ++) {
329  //TPC_rate_av[i][j].clear();
330  //TPC_rate[i][j].clear();
331  TPC_rate_av[i][j] = 0;
332  TPC_rate[i][j] = 0;
333  //TPC_dose_av[i][j] = 0;
334  //TPC_dose[i][j] = 0;
335  }
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;
342  }
343  }
344  }
345  CLAWS_rate_av.clear();
346  QCSS_rate_av.clear();
347  CSI_sumE_av.clear();
348  CSI_Ebin_av.clear();
349  CSI_hitRate_av.clear();
350  DIA_dose_av.clear();
351 
352  SAD_HER_lifetime.clear();
353  SAD_LER_lifetime.clear();
354  SKB_HER_RLR.clear();
355  SKB_LER_RLR.clear();
356  SAD_HER_RLR.clear();
357  SAD_LER_RLR.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();
362 
363  DOSI.clear();
364  DOSI_av.clear();
365  }
366 
367  };
368 
369  } // BEAST_v5 namespace
371 } // Belle2 namespace
372 
373 #endif
374 
Belle2::BEAST_v5::BEASTTree_v5::clear
void clear()
.clear the structure: set elements to zero
Definition: BEASTTree_v5.h:237
Belle2::BEAST_v5::BEASTTree_v5::ts
UInt_t ts
Beast PVs.
Definition: BEASTTree_v5.h:40
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19