-
Notifications
You must be signed in to change notification settings - Fork 7
/
AliAnalysisTaskNTGJ.h
523 lines (493 loc) · 28.3 KB
/
AliAnalysisTaskNTGJ.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
// -*- mode: c++; -*-
#ifndef ALIANALYSISTASKPHOTONDISC_H_
#define ALIANALYSISTASKPHOTONDISC_H_
#include <limits.h>
#include <vector>
#include <set>
#include <TList.h>
#include <TH2D.h>
#include <TFormula.h>
#include <TClonesArray.h>
#include <AliESDtrackCuts.h>
#include <AliEMCALGeometry.h>
#include <AliEMCALRecoUtils.h>
#include <AliMuonTrackCuts.h>
#include <AliAnalysisTaskEmcal.h>
#include <AliAnalysisAlien.h>
#define EMCAL_NCELL 17664
#define NTRIGGER_CLASS_MAX 100 // = AliESDRun::kNTriggerClasses
#define NCLUSTER_MAX (1U << 17)
#define NTRACK_MAX (1U << 17)
#define NMC_TRUTH_MAX (1U << 17)
#define NJET_MAX (1U << 17)
// #define WITH_EFP7 1
#ifdef WITH_EFP7
#define IF_EFP7(...) __VA_ARGS__
#else // WITH_EFP7
#define IF_EFP7(...)
#endif // WITH_EFP7
#define CLUSTER_NMC_TRUTH_MAX 32
class AliAnalysisTaskNTGJ : public AliAnalysisTaskEmcal {
private:
TString _emcal_geometry_name; //!
TTree *_tree_event; //!
#define MEMBER_BRANCH \
/* */ \
BRANCH_STR(id_git) \
BRANCH_STR(version_aliroot) \
BRANCH_STR(version_aliphysics) \
BRANCH_STR(version_jec) \
BRANCH_STR(grid_data_dir) \
BRANCH_STR(grid_data_pattern) \
BRANCH(beam_energy, F) \
BRANCH_ARRAY(beam_particle, 2, I) \
BRANCH(ntrigger_class, b) \
BRANCH_STR_ARRAY(trigger_class, ntrigger_class) \
BRANCH(run_number, I) \
BRANCH(period_number, i) \
BRANCH(orbit_number, i) \
BRANCH(bunch_crossing_number, s) \
BRANCH(time_stamp, i) \
/* */ \
BRANCH_ARRAY(trigger_mask, 2, l) \
BRANCH_ARRAY(multiplicity_v0, 64, F) \
BRANCH(centrality_v0m, F) \
BRANCH_ARRAY(centrality, 9, F) \
BRANCH_ARRAY(event_plane_psi_v0, 3, F) \
BRANCH_ARRAY2(event_plane_q_v0, 3, 2, D) \
BRANCH(has_misalignment_matrix, O) \
BRANCH_ARRAY(primary_vertex, 3, D) \
BRANCH_ARRAY(primary_vertex_sigma, 3, D) \
BRANCH(primary_vertex_ncontributor, I) \
BRANCH_ARRAY(primary_vertex_spd, 3, D) \
BRANCH_ARRAY(primary_vertex_spd_sigma, 3, D) \
BRANCH(primary_vertex_spd_ncontributor, I) \
BRANCH(is_pileup_from_spd_3_08, O) \
BRANCH(is_pileup_from_spd_5_08, O) \
BRANCH(npileup_vertex_spd, I) \
BRANCH(ncluster_tpc, I) \
BRANCH(event_selected, O) \
BRANCH(eg_signal_process_id, I) \
BRANCH(eg_mpi, I) \
BRANCH(eg_pt_hat, F) \
BRANCH(eg_cross_section, F) \
BRANCH(eg_weight, F) \
BRANCH_ARRAY(eg_primary_vertex, 3, F) \
BRANCH(eg_ntrial, I) \
BRANCH(eg_scale_pdf, F) \
BRANCH(eg_alpha_qcd, F) \
BRANCH(eg_alpha_qed, F) \
BRANCH_ARRAY(eg_pdf_id, 2, I) \
BRANCH_ARRAY(eg_pdf_x, 2, F) \
BRANCH_ARRAY(eg_pdf_x_pdf, 2, F) \
/* */ \
BRANCH(ncluster, i) \
BRANCH_ARRAY(cluster_e, ncluster, F) \
BRANCH_ARRAY(cluster_pt, ncluster, F) \
BRANCH_ARRAY(cluster_eta, ncluster, F) \
BRANCH_ARRAY(cluster_phi, ncluster, F) \
BRANCH_ARRAY2(cluster_lambda_square, ncluster, 2, F) \
BRANCH_ARRAY2(cluster_lambda_square_angle, ncluster, 2, F) \
BRANCH_ARRAY(cluster_tof, ncluster, F) \
BRANCH_ARRAY(cluster_ncell, ncluster, I) \
BRANCH_ARRAY(cluster_nlocal_maxima, ncluster, b) \
BRANCH_ARRAY(cluster_distance_to_bad_channel, ncluster, F) \
BRANCH_ARRAY(cluster_cell_id_max, ncluster, s) \
BRANCH_ARRAY(cluster_e_max, ncluster, F) \
BRANCH_ARRAY(cluster_e_cross, ncluster, F) \
BRANCH_ARRAY(cluster_nmc_truth, ncluster, i) \
BRANCH_ARRAY2(cluster_mc_truth_index, ncluster, 32, s) \
BRANCH_ARRAY(cluster_iso_tpc_01, ncluster, F) \
BRANCH_ARRAY(cluster_iso_tpc_01_ue, ncluster, F) \
BRANCH_ARRAY(cluster_iso_tpc_02, ncluster, F) \
BRANCH_ARRAY(cluster_iso_tpc_02_ue, ncluster, F) \
BRANCH_ARRAY(cluster_iso_tpc_03, ncluster, F) \
BRANCH_ARRAY(cluster_iso_tpc_03_ue, ncluster, F) \
BRANCH_ARRAY(cluster_iso_tpc_04, ncluster, F) \
BRANCH_ARRAY(cluster_iso_tpc_04_ue, ncluster, F) \
BRANCH_ARRAY(cluster_iso_its_01, ncluster, F) \
BRANCH_ARRAY(cluster_iso_its_01_ue, ncluster, F) \
BRANCH_ARRAY(cluster_iso_its_02, ncluster, F) \
BRANCH_ARRAY(cluster_iso_its_02_ue, ncluster, F) \
BRANCH_ARRAY(cluster_iso_its_03, ncluster, F) \
BRANCH_ARRAY(cluster_iso_its_03_ue, ncluster, F) \
BRANCH_ARRAY(cluster_iso_its_04, ncluster, F) \
BRANCH_ARRAY(cluster_iso_its_04_ue, ncluster, F) \
BRANCH_ARRAY(cluster_iso_cluster_01, ncluster, F) \
BRANCH_ARRAY(cluster_iso_cluster_01_ue, ncluster, F) \
BRANCH_ARRAY(cluster_iso_cluster_02, ncluster, F) \
BRANCH_ARRAY(cluster_iso_cluster_02_ue, ncluster, F) \
BRANCH_ARRAY(cluster_iso_cluster_03, ncluster, F) \
BRANCH_ARRAY(cluster_iso_cluster_03_ue, ncluster, F) \
BRANCH_ARRAY(cluster_iso_cluster_04, ncluster, F) \
BRANCH_ARRAY(cluster_iso_cluster_04_ue, ncluster, F) \
BRANCH_ARRAY(cluster_frixione_tpc_04_02, ncluster, F) \
BRANCH_ARRAY(cluster_frixione_tpc_04_05, ncluster, F) \
BRANCH_ARRAY(cluster_frixione_tpc_04_10, ncluster, F) \
BRANCH_ARRAY(cluster_frixione_its_04_02, ncluster, F) \
BRANCH_ARRAY(cluster_frixione_its_04_05, ncluster, F) \
BRANCH_ARRAY(cluster_frixione_its_04_10, ncluster, F) \
BRANCH_ARRAY(cluster_frixione_tpc_04_02_with_ue, ncluster, F) \
BRANCH_ARRAY(cluster_frixione_tpc_04_05_with_ue, ncluster, F) \
BRANCH_ARRAY(cluster_frixione_tpc_04_10_with_ue, ncluster, F) \
BRANCH_ARRAY(cluster_frixione_its_04_02_with_ue, ncluster, F) \
BRANCH_ARRAY(cluster_frixione_its_04_05_with_ue, ncluster, F) \
BRANCH_ARRAY(cluster_frixione_its_04_10_with_ue, ncluster, F) \
BRANCH_ARRAY(cluster_anti_frixione_tpc_04_02, ncluster, F) \
BRANCH_ARRAY(cluster_anti_frixione_tpc_04_05, ncluster, F) \
BRANCH_ARRAY(cluster_anti_frixione_tpc_04_10, ncluster, F) \
BRANCH_ARRAY(cluster_anti_frixione_its_04_02, ncluster, F) \
BRANCH_ARRAY(cluster_anti_frixione_its_04_05, ncluster, F) \
BRANCH_ARRAY(cluster_anti_frixione_its_04_10, ncluster, F) \
BRANCH_ARRAY(cluster_iso_01_truth, ncluster, F) \
BRANCH_ARRAY(cluster_iso_02_truth, ncluster, F) \
BRANCH_ARRAY(cluster_iso_03_truth, ncluster, F) \
BRANCH_ARRAY(cluster_iso_04_truth, ncluster, F) \
BRANCH_ARRAY(cluster_frixione_04_02_truth, ncluster, F) \
BRANCH_ARRAY(cluster_frixione_04_05_truth, ncluster, F) \
BRANCH_ARRAY(cluster_frixione_04_10_truth, ncluster, F) \
BRANCH_ARRAY(cluster_anti_frixione_04_02_truth, ncluster, F) \
BRANCH_ARRAY(cluster_anti_frixione_04_05_truth, ncluster, F) \
BRANCH_ARRAY(cluster_anti_frixione_04_10_truth, ncluster, F) \
BRANCH_ARRAY2(cluster_s_nphoton, ncluster, 4, F) \
BRANCH_ARRAY2(cluster_s_ncharged_hadron, ncluster, 4, F) \
BRANCH_ARRAY(cell_e, 17664, F) \
BRANCH_ARRAY2(cell_position, 17664, 3, F) \
BRANCH_ARRAY(cell_tof, 17664, F) \
BRANCH_ARRAY(cell_cluster_index, 17664, s) \
BRANCH_ARRAY(cell_mc_truth_index, 17664, s) \
BRANCH_ARRAY(cell_voronoi_area, 17664, F) \
/* */ \
BRANCH(ntrack, i) \
BRANCH_ARRAY(track_e, ntrack, F) \
BRANCH_ARRAY(track_pt, ntrack, F) \
BRANCH_ARRAY(track_eta, ntrack, F) \
BRANCH_ARRAY(track_phi, ntrack, F) \
BRANCH_ARRAY(track_eta_emcal, ntrack, F) \
BRANCH_ARRAY(track_phi_emcal, ntrack, F) \
BRANCH_ARRAY(track_charge, ntrack, B) \
BRANCH_ARRAY(track_quality, ntrack, b) \
BRANCH_ARRAY(track_tpc_dedx, ntrack, F) \
BRANCH_ARRAY(track_tpc_length_active_zone, ntrack, F) \
BRANCH_ARRAY(track_tpc_xrow, ntrack, b) \
BRANCH_ARRAY(track_tpc_ncluster, ntrack, b) \
BRANCH_ARRAY(track_tpc_ncluster_dedx, ntrack, b) \
BRANCH_ARRAY(track_tpc_ncluster_findable, ntrack, b) \
BRANCH_ARRAY(track_its_ncluster, ntrack, b) \
BRANCH_ARRAY(track_its_chi_square, ntrack, F) \
BRANCH_ARRAY(track_dca_xy, ntrack, F) \
BRANCH_ARRAY(track_dca_z, ntrack, F) \
BRANCH_ARRAY(track_mc_truth_index, ntrack, s) \
BRANCH_ARRAY(track_voronoi_area, ntrack, F) \
/* */ \
BRANCH(nmuon_track, i) \
BRANCH_ARRAY(muon_track_e, nmuon_track, F) \
BRANCH_ARRAY(muon_track_pt, nmuon_track, F) \
BRANCH_ARRAY(muon_track_eta, nmuon_track, F) \
BRANCH_ARRAY(muon_track_phi, nmuon_track, F) \
BRANCH_ARRAY(muon_track_r_abs, nmuon_track, F) \
BRANCH_ARRAY(muon_track_p_dca, nmuon_track, F) \
BRANCH_ARRAY(muon_track_sigma_p_dca, nmuon_track, F) \
BRANCH_ARRAY(muon_track_delta_sagitta_p, nmuon_track, F) \
BRANCH_ARRAY(muon_track_distance_sigma_slope_p, nmuon_track, F) \
BRANCH_ARRAY(muon_track_mc_truth_index, nmuon_track, s) \
/* */ \
BRANCH(nmc_truth, i) \
BRANCH_ARRAY(mc_truth_e, nmc_truth, F) \
BRANCH_ARRAY(mc_truth_pt, nmc_truth, F) \
BRANCH_ARRAY(mc_truth_eta, nmc_truth, F) \
BRANCH_ARRAY(mc_truth_phi, nmc_truth, F) \
BRANCH_ARRAY(mc_truth_charge, nmc_truth, B) \
BRANCH_ARRAY(mc_truth_pdg_code, nmc_truth, S) \
BRANCH_ARRAY(mc_truth_status, nmc_truth, b) \
BRANCH_ARRAY(mc_truth_generator_index, nmc_truth, b) \
/* BRANCH_ARRAY(mc_truth_physical_primary, nmc_truth, O) */ \
/* BRANCH_ARRAY(mc_truth_first_parent, nmc_truth, I) */ \
/* BRANCH_ARRAY(mc_truth_first_child, nmc_truth, I) */ \
/* BRANCH_ARRAY(mc_truth_second_child, nmc_truth, I) */ \
BRANCH_ARRAY(mc_truth_first_parent_pdg_code, nmc_truth, S) \
BRANCH_ARRAY(mc_truth_first_parent_e, nmc_truth, F) \
BRANCH_ARRAY(mc_truth_first_parent_pt, nmc_truth, F) \
BRANCH_ARRAY(mc_truth_first_parent_eta, nmc_truth, F) \
BRANCH_ARRAY(mc_truth_first_parent_phi, nmc_truth, F) \
BRANCH_ARRAY(mc_truth_sibling_index, nmc_truth, s) \
BRANCH(debug_njet_ue_estimation, i) \
BRANCH_ARRAY(debug_jet_ue_estimation_pt_raw, \
debug_njet_ue_estimation, F) \
BRANCH_ARRAY(debug_jet_ue_estimation_eta_raw, \
debug_njet_ue_estimation, F) \
BRANCH_ARRAY(debug_jet_ue_estimation_phi_raw, \
debug_njet_ue_estimation, F) \
BRANCH_ARRAY(debug_jet_ue_estimation_area_raw, \
debug_njet_ue_estimation, F) \
/* */ \
BRANCH(ue_estimate_tpc_const, F) \
BRANCH(ue_estimate_tpc_const_se, F) \
BRANCH(ue_estimate_its_const, F) \
BRANCH(ue_estimate_its_const_se, F) \
BRANCH(ue_estimate_cluster_const, F) \
BRANCH(ue_estimate_cluster_const_se, F) \
/* */ \
BRANCH(njet_ak04tpc, i) \
BRANCH_ARRAY(debug_jet_ak04tpc_tag_dr_square, njet_ak04tpc, F) \
BRANCH_ARRAY(jet_ak04tpc_e_raw, njet_ak04tpc, F) \
BRANCH_ARRAY(jet_ak04tpc_e, njet_ak04tpc, F) \
BRANCH_ARRAY(jet_ak04tpc_e_charged, njet_ak04tpc, F) \
BRANCH_ARRAY(jet_ak04tpc_pt_raw_ue, njet_ak04tpc, F) \
BRANCH_ARRAY(jet_ak04tpc_pt_raw, njet_ak04tpc, F) \
BRANCH_ARRAY(jet_ak04tpc_pt, njet_ak04tpc, F) \
BRANCH_ARRAY(jet_ak04tpc_pt_charged, njet_ak04tpc, F) \
BRANCH_ARRAY(jet_ak04tpc_eta_raw, njet_ak04tpc, F) \
BRANCH_ARRAY(jet_ak04tpc_eta, njet_ak04tpc, F) \
BRANCH_ARRAY(jet_ak04tpc_phi, njet_ak04tpc, F) \
BRANCH_ARRAY(jet_ak04tpc_m2_raw, njet_ak04tpc, F) \
BRANCH_ARRAY(jet_ak04tpc_m2, njet_ak04tpc, F) \
BRANCH_ARRAY(jet_ak04tpc_area_raw, njet_ak04tpc, F) \
BRANCH_ARRAY(jet_ak04tpc_area, njet_ak04tpc, F) \
BRANCH_ARRAY(jet_ak04tpc_emf_raw, njet_ak04tpc, F) \
BRANCH_ARRAY(jet_ak04tpc_emf, njet_ak04tpc, F) \
BRANCH_ARRAY(jet_ak04tpc_multiplicity_raw, njet_ak04tpc, s) \
BRANCH_ARRAY(jet_ak04tpc_multiplicity, njet_ak04tpc, F) \
BRANCH_ARRAY2(jet_ak04tpc_width_sigma_raw, njet_ak04tpc, 2, F) \
BRANCH_ARRAY2(jet_ak04tpc_width_sigma, njet_ak04tpc, 2, F) \
BRANCH_ARRAY(jet_ak04tpc_ptd_raw, njet_ak04tpc, F) \
BRANCH_ARRAY(jet_ak04tpc_ptd, njet_ak04tpc, F) \
IF_EFP7(BRANCH_ARRAY2(jet_ak04tpc_efp_raw, \
njet_ak04tpc, 489, F)) \
BRANCH_STR(debug_blas_version) \
BRANCH_ARRAY2(jet_ak04tpc_truth_index_z_truth, njet_ak04tpc, \
2, I) \
BRANCH_ARRAY2(jet_ak04tpc_truth_z_truth, njet_ak04tpc, 2, F) \
BRANCH_ARRAY2(jet_ak04tpc_truth_index_z_reco, njet_ak04tpc, \
2, I) \
BRANCH_ARRAY2(jet_ak04tpc_truth_z_reco, njet_ak04tpc, 2, F) \
BRANCH_ARRAY2(jet_ak04tpc_charged_truth_index_z_truth, \
njet_ak04tpc, 2, I) \
BRANCH_ARRAY2(jet_ak04tpc_charged_truth_z_truth, njet_ak04tpc, \
2, F) \
BRANCH_ARRAY2(jet_ak04tpc_charged_truth_index_z_reco, \
njet_ak04tpc, 2, I) \
BRANCH_ARRAY2(jet_ak04tpc_charged_truth_z_reco, njet_ak04tpc, \
2, F) \
BRANCH_ARRAY2(jet_ak04tpc_pdg_code_algorithmic, njet_ak04tpc, \
2, I) \
BRANCH_ARRAY2(jet_ak04tpc_pdg_code_algorithmic_z, njet_ak04tpc, \
2, F) \
BRANCH_ARRAY(jet_ak04tpc_e_truth, njet_ak04tpc, F) \
BRANCH_ARRAY(jet_ak04tpc_pt_truth, njet_ak04tpc, F) \
BRANCH_ARRAY(jet_ak04tpc_eta_truth, njet_ak04tpc, F) \
BRANCH_ARRAY(jet_ak04tpc_phi_truth, njet_ak04tpc, F) \
BRANCH_ARRAY(jet_ak04tpc_e_charged_truth, njet_ak04tpc, F) \
BRANCH_ARRAY(jet_ak04tpc_pt_charged_truth, njet_ak04tpc, F) \
BRANCH_ARRAY(jet_ak04tpc_eta_charged_truth, njet_ak04tpc, F) \
BRANCH_ARRAY(jet_ak04tpc_phi_charged_truth, njet_ak04tpc, F) \
/* */ \
BRANCH(njet_ak04its, i) \
BRANCH_ARRAY(debug_jet_ak04its_tag_dr_square, njet_ak04its, F) \
BRANCH_ARRAY(jet_ak04its_e_raw, njet_ak04its, F) \
BRANCH_ARRAY(jet_ak04its_e, njet_ak04its, F) \
BRANCH_ARRAY(jet_ak04its_e_charged, njet_ak04its, F) \
BRANCH_ARRAY(jet_ak04its_pt_raw_ue, njet_ak04its, F) \
BRANCH_ARRAY(jet_ak04its_pt_raw, njet_ak04its, F) \
BRANCH_ARRAY(jet_ak04its_pt, njet_ak04its, F) \
BRANCH_ARRAY(jet_ak04its_pt_charged, njet_ak04its, F) \
BRANCH_ARRAY(jet_ak04its_eta_raw, njet_ak04its, F) \
BRANCH_ARRAY(jet_ak04its_eta, njet_ak04its, F) \
BRANCH_ARRAY(jet_ak04its_phi, njet_ak04its, F) \
BRANCH_ARRAY(jet_ak04its_m2_raw, njet_ak04tpc, F) \
BRANCH_ARRAY(jet_ak04its_m2, njet_ak04tpc, F) \
BRANCH_ARRAY(jet_ak04its_area_raw, njet_ak04its, F) \
BRANCH_ARRAY(jet_ak04its_area, njet_ak04its, F) \
BRANCH_ARRAY(jet_ak04its_emf_raw, njet_ak04its, F) \
BRANCH_ARRAY(jet_ak04its_emf, njet_ak04its, F) \
BRANCH_ARRAY(jet_ak04its_multiplicity_raw, njet_ak04its, s) \
BRANCH_ARRAY(jet_ak04its_multiplicity, njet_ak04its, F) \
BRANCH_ARRAY2(jet_ak04its_width_sigma_raw, njet_ak04its, 2, F) \
BRANCH_ARRAY2(jet_ak04its_width_sigma, njet_ak04its, 2, F) \
BRANCH_ARRAY(jet_ak04its_ptd_raw, njet_ak04its, F) \
BRANCH_ARRAY(jet_ak04its_ptd, njet_ak04its, F) \
BRANCH_ARRAY2(jet_ak04its_truth_index_z_truth, njet_ak04its, \
2, I) \
BRANCH_ARRAY2(jet_ak04its_truth_z_truth, njet_ak04its, 2, F) \
BRANCH_ARRAY2(jet_ak04its_truth_index_z_reco, njet_ak04its, \
2, I) \
BRANCH_ARRAY2(jet_ak04its_truth_z_reco, njet_ak04its, 2, F) \
BRANCH_ARRAY2(jet_ak04its_charged_truth_index_z_truth, \
njet_ak04its, 2, I) \
BRANCH_ARRAY2(jet_ak04its_charged_truth_z_truth, njet_ak04its, \
2, F) \
BRANCH_ARRAY2(jet_ak04its_charged_truth_index_z_reco, \
njet_ak04its, 2, I) \
BRANCH_ARRAY2(jet_ak04its_charged_truth_z_reco, njet_ak04its, \
2, F) \
BRANCH_ARRAY2(jet_ak04its_pdg_code_algorithmic, njet_ak04its, \
2, I) \
BRANCH_ARRAY2(jet_ak04its_pdg_code_algorithmic_z, njet_ak04its, \
2, F) \
BRANCH_ARRAY(jet_ak04its_e_truth, njet_ak04its, F) \
BRANCH_ARRAY(jet_ak04its_pt_truth, njet_ak04its, F) \
BRANCH_ARRAY(jet_ak04its_eta_truth, njet_ak04its, F) \
BRANCH_ARRAY(jet_ak04its_phi_truth, njet_ak04its, F) \
BRANCH_ARRAY(jet_ak04its_e_charged_truth, njet_ak04its, F) \
BRANCH_ARRAY(jet_ak04its_pt_charged_truth, njet_ak04its, F) \
BRANCH_ARRAY(jet_ak04its_eta_charged_truth, njet_ak04its, F) \
BRANCH_ARRAY(jet_ak04its_phi_charged_truth, njet_ak04its, F) \
/* */ \
BRANCH(njet_truth_ak04, i) \
BRANCH_ARRAY(jet_truth_ak04_e, njet_truth_ak04, F) \
BRANCH_ARRAY(jet_truth_ak04_pt, njet_truth_ak04, F) \
BRANCH_ARRAY(jet_truth_ak04_eta, njet_truth_ak04, F) \
BRANCH_ARRAY(jet_truth_ak04_phi, njet_truth_ak04, F) \
BRANCH_ARRAY(jet_truth_ak04_area, njet_truth_ak04, F) \
BRANCH_ARRAY(jet_truth_ak04_emf, njet_truth_ak04, F) \
BRANCH_ARRAY(jet_truth_ak04_multiplicity, njet_truth_ak04, s) \
BRANCH_ARRAY2(jet_truth_ak04_width_sigma, njet_truth_ak04, \
2, F) \
BRANCH_ARRAY(jet_truth_ak04_ptd, njet_truth_ak04, F) \
IF_EFP7(BRANCH_ARRAY2(jet_truth_ak04_efp, \
njet_truth_ak04, 489, F)) \
/* */ \
BRANCH(njet_charged_truth_ak04, i) \
BRANCH_ARRAY(jet_charged_truth_ak04_e, \
njet_charged_truth_ak04, F) \
BRANCH_ARRAY(jet_charged_truth_ak04_pt, \
njet_charged_truth_ak04, F) \
BRANCH_ARRAY(jet_charged_truth_ak04_eta, \
njet_charged_truth_ak04, F) \
BRANCH_ARRAY(jet_charged_truth_ak04_phi, \
njet_charged_truth_ak04, F) \
BRANCH_ARRAY(jet_charged_truth_ak04_area, \
njet_charged_truth_ak04, F) \
BRANCH_ARRAY(jet_charged_truth_ak04_emf, \
njet_charged_truth_ak04, F) \
BRANCH_ARRAY(jet_charged_truth_ak04_multiplicity, \
njet_charged_truth_ak04, s) \
BRANCH_ARRAY2(jet_charged_truth_ak04_width_sigma, \
njet_charged_truth_ak04, 2, F) \
BRANCH_ARRAY(jet_charged_truth_ak04_ptd, \
njet_charged_truth_ak04, F) \
IF_EFP7(BRANCH_ARRAY2(jet_charged_truth_ak04_efp, \
njet_charged_truth_ak04, 489, F)) \
/* */ \
BRANCH_ARRAY(met_tpc, 2, D) \
BRANCH_ARRAY(met_its, 2, D) \
BRANCH_ARRAY(met_truth, 2, D) \
#define B Char_t
#define b UChar_t
#define S Short_t
#define s UShort_t
#define I Int_t
#define i UInt_t
#define F Float_t
#define D Double_t
#define L Long_t
#define l ULong_t
#define O Bool_t
#define ntrigger_class NTRIGGER_CLASS_MAX
#define ncluster NCLUSTER_MAX
#define ntrack NTRACK_MAX
#define nmuon_track NTRACK_MAX
#define nmc_truth NMC_TRUTH_MAX
#define debug_njet_ue_estimation NJET_MAX
#define njet_ak04tpc NJET_MAX
#define njet_ak04its NJET_MAX
#define njet_truth_ak04 NJET_MAX
#define njet_charged_truth_ak04 NJET_MAX
#define full_emcal_ncell EMCAL_NCELL
#define BRANCH(b, t) \
t _branch_ ## b;
#define BRANCH_ARRAY(b, d, t) \
t _branch_ ## b [(d)];
#define BRANCH_ARRAY2(b, d, e, t) \
t _branch_ ## b [(d)][(e)];
#define BRANCH_STR(b) \
char _branch_ ## b[BUFSIZ];
#define BRANCH_STR_ARRAY(b, d) \
std::vector<std::string> _branch_ ## b;
MEMBER_BRANCH;
#undef BRANCH
#undef BRANCH_ARRAY
#undef BRANCH_ARRAY2
#undef BRANCH_STR
#undef BRANCH_STR_ARRAY
#undef ntrigger_class
#undef ncluster
#undef ntrack
#undef nmc_truth
#undef debug_njet_ue_estimation
#undef njet_ak04tpc
#undef njet_ak04its
#undef njet_truth_ak04
#undef njet_charged_truth_ak04
#undef full_emcal_ncell
#undef C
#undef B
#undef b
#undef S
#undef s
#undef I
#undef i
#undef F
#undef D
#undef L
#undef l
#undef O
Int_t _run_number_current; //!
TFormula *_f1_ncluster_tpc_linear_pt_dep; //!
std::vector<AliESDtrackCuts> _track_cut; //!
AliEMCALRecoUtils *_reco_util; //!
AliEMCALGeometry *_emcal_geometry; //!
AliMuonTrackCuts *_muon_track_cut; //!
size_t _ncell; //!
std::string _emcal_geometry_filename;
std::string _emcal_local2master_filename;
bool _force_ue_subtraction;
double _skim_cluster_min_e;
double _skim_track_min_pt;
double _skim_muon_track_min_pt;
std::vector<double> _skim_jet_min_pt;
double _skim_jet_average_pt;
int _skim_multiplicity_tracklet_min_n;
int _skim_sum_eg_ntrial;
double _stored_track_min_pt;
double _stored_jet_min_pt_raw;
unsigned int _nrandom_isolation;
std::vector<bool> _emcal_mask; //!
void *_emcal_cell_position; //!
void *_keras_model_photon_discrimination; //!
AliAnalysisAlien *_alien_plugin; //!
bool _metadata_filled; //!
public:
AliAnalysisTaskNTGJ(const char *name = "NTGJ");
AliAnalysisTaskNTGJ(const AliAnalysisTaskNTGJ &);
AliAnalysisTaskNTGJ &operator=(const AliAnalysisTaskNTGJ &);
~AliAnalysisTaskNTGJ(void);
virtual void UserCreateOutputObjects(void);
virtual void Run(Option_t *);
AliEMCALRecoUtils *GetEMCALRecoUtils(void);
void SetAliROOTVersion(const char *version);
void SetAliPhysicsVersion(const char *version);
void SetGridDataDir(const char *dir);
void SetGridDataPattern(const char *pattern);
//
void SetEMCALGeometryFilename(const char *
emcal_geometry_filename);
void SetEMCALLocal2MasterFilename(const char *
emcal_local2master_filename);
//
void SetForceUESubtraction(bool force_ue_subtraction = true);
void SetSkimClusterMinE(double min_e = -INFINITY);
void SetSkimTrackMinPt(double min_pt = -INFINITY);
void SetSkimMuonTrackMinPt(double min_pt = -INFINITY);
void SetSkimJetMinPt(double min_pt_1 = -INFINITY,
double min_pt_2 = -INFINITY,
double min_pt_3 = -INFINITY);
void SetSkimJetAveragePt(double average_pt = -INFINITY);
void SetSkimMultiplicityTrackletMinN(int min_n = INT_MIN);
//
void SetStoredTrackMinPt(double min_pt = -INFINITY);
void SetStoredJetMinPtRaw(double min_pt_raw = -INFINITY);
void SetNRandomIsolation(unsigned int nrandom_isolation = 0);
ClassDef(AliAnalysisTaskNTGJ, 1);
};
#endif // ALIANALYSISTASKPHOTONDISC_H_