-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathHistogramsSim.h
More file actions
640 lines (462 loc) · 26.5 KB
/
HistogramsSim.h
File metadata and controls
640 lines (462 loc) · 26.5 KB
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
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
/*
* HistogramsSim.h
*
* Created on: 23 mar 2023
* Author: Khaless
*/
#ifndef HISTOGRAMSSIM_H_
#define HISTOGRAMSSIM_H_
#include <TH1.h>
#include <TH1D.h>
#include <TH2.h>
#include <TH2D.h>
#include <TMath.h>
using namespace TMath;
void CreateHistogamsSim();
// Event
TH1D *h_Events;
TH1D *h_MCpart;
TH1D *h_MCpart_nPion_p;
TH1D *h_MCpart_nPion_n;
TH1D *h_MCpart_nKaon_p;
TH1D *h_MCpart_nKaon_n;
TH1D *h_MCpart_nProton_p;
TH1D *h_MCpart_nProton_n;
TH1D *h_MCpart_nElectron_p;
TH1D *h_MCpart_nElectron_n;
TH1D *h_MCpart_nNeutron;
TH1D *h_MCpart_nGamma;
TH1D *h_MCpart_nGen;
TH1D *h_MCpart_nSec;
// MC particles
TH1D *h_MCpart_mass;
TH1D *h_MCpart_charge;
TH1D *h_MCpart_E;
TH1D *h_MCpart_p;
TH1D *h_MCpart_pT;
TH1D *h_MCpart_mom_x;
TH1D *h_MCpart_mom_y;
TH1D *h_MCpart_mom_z;
TH1D *h_MCpart_eta;
TH2D *h_MCpart_etaphi;
TH2D *h_MCpart_xy;
TH2D *h_MCpart_zr;
TH1D *h_MCpart_end_p;
TH1D *h_MCpart_end_pT;
TH2D *h_MCpart_posEnd_xy;
TH2D *h_MCpart_posEnd_zr;
TH1D *h_MCpart_genStatus;
// momentum
TH1D *h_MCpart_Pion_p_p;
TH1D *h_MCpart_Pion_n_p;
TH1D *h_MCpart_Kaon_p_p;
TH1D *h_MCpart_Kaon_n_p;
TH1D *h_MCpart_Proton_p_p;
TH1D *h_MCpart_Proton_n_p;
TH1D *h_MCpart_Electron_p_p;
TH1D *h_MCpart_Electron_n_p;
TH1D *h_MCpart_Neutron_p;
TH1D *h_MCpart_Gamma_p;
// energy
TH1D *h_MCpart_Pion_p_E;
TH1D *h_MCpart_Pion_n_E;
TH1D *h_MCpart_Kaon_p_E;
TH1D *h_MCpart_Kaon_n_E;
TH1D *h_MCpart_Proton_p_E;
TH1D *h_MCpart_Proton_n_E;
TH1D *h_MCpart_Electron_p_E;
TH1D *h_MCpart_Electron_n_E;
TH1D *h_MCpart_Neutron_E;
TH1D *h_MCpart_Gamma_E;
// eta, momentum
TH2D *h_MCpart_pion_p_eta_p;
TH2D *h_MCpart_pion_n_eta_p;
TH2D *h_MCpart_Kaon_p_eta_p;
TH2D *h_MCpart_Kaon_n_eta_p;
TH2D *h_MCpart_proton_p_eta_p;
TH2D *h_MCpart_proton_n_eta_p;
TH2D *h_MCpart_Electron_p_eta_p;
TH2D *h_MCpart_Electron_n_eta_p;
TH2D *h_MCpart_Neutron_eta_p;
TH2D *h_MCpart_Gamma_eta_p;
// eta, energy
TH2D *h_MCpart_Pion_p_eta_E;
TH2D *h_MCpart_Pion_n_eta_E;
TH2D *h_MCpart_Kaon_p_eta_E;
TH2D *h_MCpart_Kaon_n_eta_E;
TH2D *h_MCpart_Proton_p_eta_E;
TH2D *h_MCpart_Proton_n_eta_E;
TH2D *h_MCpart_Electron_p_eta_E;
TH2D *h_MCpart_Electron_n_eta_E;
TH2D *h_MCpart_Neutron_eta_E;
TH2D *h_MCpart_Gamma_eta_E;
// pair projection distance
TH2D *h_MCpart_eta_deltaRxy;
TH2D *h_MCpart_Neutron_eta_deltaRxy;
TH1D *h_MCpart_eta_norm;
TH1D *h_MCpart_Neutron_eta_norm;
// Generated MC particles
TH1D *h_MCpart_gen_mass;
TH1D *h_MCpart_gen_charge;
TH1D *h_MCpart_gen_E;
TH1D *h_MCpart_gen_p;
TH1D *h_MCpart_gen_pT;
TH1D *h_MCpart_gen_eta;
TH2D *h_MCpart_gen_etaphi;
TH2D *h_MCpart_gen_xy;
TH2D *h_MCpart_gen_zr;
TH1D *h_MCpart_gen_end_p;
TH1D *h_MCpart_gen_end_pT;
TH2D *h_MCpart_gen_posEnd_xy;
TH2D *h_MCpart_gen_posEnd_zr;
// pair projection distance
TH2D *h_MCpart_gen_eta_deltaRxy;
TH2D *h_MCpart_gen_Neutron_eta_deltaRxy;
TH1D *h_MCpart_gen_eta_norm;
TH1D *h_MCpart_gen_Neutron_eta_norm;
// Secondary MC particles
TH1D *h_MCpart_sec_mass;
TH1D *h_MCpart_sec_charge;
TH1D *h_MCpart_sec_E;
TH1D *h_MCpart_sec_p;
TH1D *h_MCpart_sec_pT;
TH1D *h_MCpart_sec_eta;
TH2D *h_MCpart_sec_etaphi;
TH2D *h_MCpart_sec_xy;
TH2D *h_MCpart_sec_zr;
TH1D *h_MCpart_sec_end_p;
TH1D *h_MCpart_sec_end_pT;
TH2D *h_MCpart_sec_posEnd_xy;
TH2D *h_MCpart_sec_posEnd_zr;
// MC particles - 1st generation daughters
TH1D *h_MCpart_1stgen_daughter_mass;
TH1D *h_MCpart_1stgen_daughter_charge;
TH1D *h_MCpart_1stgen_daughter_E ;
TH1D *h_MCpart_1stgen_daughter_p;
TH1D *h_MCpart_1stgen_daughter_pT;
TH2D *h_MCpart_1stgen_daughter_etaphi;
TH1D *h_MCpart_1stgen_daughter_eta;
TH2D *h_MCpart_1stgen_daughter_xy;
TH2D *h_MCpart_1stgen_daughter_zr;
TH1D *h_MCpart_1stgen_daughter_end_p;
TH1D *h_MCpart_1stgen_daughter_end_pT;
TH2D *h_MCpart_1stgen_daughter_posEnd_xy;
TH2D *h_MCpart_1stgen_daughter_posEnd_zr;
// EcalEndcapNHit
TH1D *h_nECal_hit_E;
TH1D *h_nECal_hit_Esum;
TH1D *h_nECal_nhits;
// HcalEndcapNHit
TH1D *h_nHCal_hit_E;
TH1D *h_nHCal_hit_Ecorr;
TH1D *h_nHCal_hit_Esum;
TH1D *h_nHCal_hit_EsumCorr;
TH1D *h_nCal_hit_delE_perevent;
TH1D *h_nHCal_nhits;
TH1D *h_nHCal_hit_pos_x;
TH1D *h_nHCal_hit_pos_y;
TH1D *h_nHCal_hit_pos_z;
TH2D *h_nHCal_hit_pos_xy;
TH2D *h_nHCal_hit_pos_rE;
// nCals
TH1D *h_nCal_hits_Esum;
void CreateHistogamsSim()
{
// Event
h_Events = new TH1D("h_Events", "Number of events; events; counts", 10, 0.0, 10.0);
h_MCpart = new TH1D("h_MCpart", "Number of MC particles; N_{MC} [1]; counts", 2001, -0.5, 2000.5);
h_MCpart_nPion_p = new TH1D("h_MCpart_nPion_p", "Number of MC particles #pi^{+}; N_{MC} [1]; counts", 2001, -0.5, 2000.5);
h_MCpart_nPion_n = new TH1D("h_MCpart_nPion_n", "Number of MC particles #pi^{-}; N_{MC} [1]; counts", 2001, -0.5, 2000.5);
h_MCpart_nKaon_p = new TH1D("h_MCpart_nKaon_p", "Number of MC particles K^{+}; N_{MC} [1]; counts", 2001, -0.5, 2000.5);
h_MCpart_nKaon_n = new TH1D("h_MCpart_nKaon_n", "Number of MC particles K^{-}; N_{MC} [1]; counts", 2001, -0.5, 2000.5);
h_MCpart_nProton_p = new TH1D("h_MCpart_nProton_p", "Number of MC particles p^{+}; N_{MC} [1]; counts", 2001, -0.5, 2000.5);
h_MCpart_nProton_n = new TH1D("h_MCpart_nProton_n", "Number of MC particles p^{-}; N_{MC} [1]; counts", 2001, -0.5, 2000.5);
h_MCpart_nElectron_p = new TH1D("h_MCpart_nElectron_p", "Number of MC particles e^{+}; N_{MC} [1]; counts", 2001, -0.5, 2000.5);
h_MCpart_nElectron_n = new TH1D("h_MCpart_nElectron_n", "Number of MC particles e^{-}; N_{MC} [1]; counts", 2001, -0.5, 2000.5);
h_MCpart_nNeutron = new TH1D("h_MCpart_nNeutron", "Number of MC particles n; N_{MC} [1]; counts", 2001, -0.5, 2000.5);
h_MCpart_nGamma = new TH1D("h_MCpart_nGamma", "Number of MC particles #gamma; N_{MC} [1]; counts", 2001, -0.5, 2000.5);
h_MCpart_nGen = new TH1D("h_MCpart_nGen", "Number of generated MC particles; N_{MC} [1]; counts", 2001, -0.5, 2000.5);
h_MCpart_nSec = new TH1D("h_MCpart_nSec", "Number of secondary MC particles; N_{MC} [1]; counts", 2001, -0.5, 2000.5);
// MC particles
h_MCpart_mass = new TH1D("h_MCpart_mass", "MC particle mass; m [GeV/c^{2}]; counts", 2000, 0.0, 20.0);
h_MCpart_charge = new TH1D("h_MCpart_charge", "MC particle charge; q [1]; counts", 101, -50.5, 50.5);
h_MCpart_E = new TH1D("h_MCpart_E", "MC particle energy; E [GeV]; counts", 500, 0.0, 50.0);
h_MCpart_p = new TH1D("h_MCpart_p", "MC particle momentum; p [GeV/c]; counts", 500, 0.0, 50.0);
h_MCpart_pT = new TH1D("h_MCpart_pT", "MC particle transverse momentum; p_{T} [GeV/c]; counts", 500, 0.0, 50.0);
h_MCpart_mom_x = new TH1D("h_MCpart_mom_x", "MC particle momentum x; p_{x} [GeV/c]; counts", 200, -50.0, 50.0);
h_MCpart_mom_y = new TH1D("h_MCpart_mom_y", "MC particle momentum y; p_{y} [GeV/c]; counts", 200, -50.0, 50.0);
h_MCpart_mom_z = new TH1D("h_MCpart_mom_z", "MC particle momentum z; p_{z} [GeV/c]; counts", 200, -50.0, 50.0);
h_MCpart_eta = new TH1D("h_MCpart_eta", "MC particle #eta; #eta; counts", 200, -10.0, 10.0);
h_MCpart_etaphi = new TH2D("h_MCpart_etaphi", "MC particle #eta,#phi; #eta; #phi [rad]; counts", 200, -10.0, 10.0, 314, -Pi(), Pi());
h_MCpart_xy = new TH2D("h_MCpart_xy", "MC particle position x,y; x [mm]; y [mm]; counts", 1000, -5000.0, 5000.0, 1000, -5000.0, 5000.0);
h_MCpart_zr = new TH2D("h_MCpart_zr", "MC particle position z,r; z [mm]; r [mm]; counts", 1000, -5000.0, 5000.0, 1000, -5000.0, 5000.0);
h_MCpart_end_p = new TH1D("h_MCpart_end_p", "MC particle momentum at endpoint; p [GeV/c]; counts", 500, 0.0, 50.0);
h_MCpart_end_pT = new TH1D("h_MCpart_end_pT", "MC particle transverse momentum at endpoint; p_{T} [GeV/c]; counts", 500, 0.0, 50.0);
h_MCpart_posEnd_xy = new TH2D("h_MCpart_posEnd_xy", "MC particle endpoint position x,y; x [mm]; y [mm]; counts", 1000, -5000.0, 5000.0, 1000, -5000.0, 5000.0);
h_MCpart_posEnd_zr = new TH2D("h_MCpart_posEnd_zr", "MC particle endpoint position z,r; z [mm]; r [mm]; counts", 1000, -5000.0, 5000.0, 1000, -5000.0, 5000.0);
h_MCpart_genStatus = new TH1D("h_MCpart_genStatus", "MC particle generator status; generator status [1]; counts", 100001, -0.5, 100000.5);
// momentum
h_MCpart_Pion_p_p = new TH1D("h_MCpart_Pion_p_p", "MC particles #pi^{+} momentum; p_{MC} [GeV/c]; counts", 500, 0.0, 50.0);
h_MCpart_Pion_n_p = new TH1D("h_MCpart_Pion_n_p", "MC particles #pi^{-} momentum; p_{MC} [GeV/c]; counts", 500, 0.0, 50.0);
h_MCpart_Kaon_p_p = new TH1D("h_MCpart_Kaon_p_p", "MC particles K^{+} momentum; p_{MC} [GeV/c]; counts", 500, 0.0, 50.0);
h_MCpart_Kaon_n_p = new TH1D("h_MCpart_Kaon_n_p", "MC particles K^{-} momentum; p_{MC} [GeV/c]; counts", 500, 0.0, 50.0);
h_MCpart_Proton_p_p = new TH1D("h_MCpart_Proton_p_p", "MC particles p^{+} momentum; p_{MC} [GeV/c]; counts", 500, 0.0, 50.0);
h_MCpart_Proton_n_p = new TH1D("h_MCpart_Proton_n_p", "MC particles p^{-} momentum; p_{MC} [GeV/c]; counts", 500, 0.0, 50.0);
h_MCpart_Electron_p_p = new TH1D("h_MCpart_Electron_p_p", "MC particles e^{+} momentum; p_{MC} [GeV/c]; counts", 500, 0.0, 50.0);
h_MCpart_Electron_n_p = new TH1D("h_MCpart_Electron_n_p", "MC particles e^{-} momentum; p_{MC} [GeV/c]; counts", 500, 0.0, 50.0);
h_MCpart_Neutron_p = new TH1D("h_MCpart_Neutron_p", "MC particles n momentum; p_{MC} [GeV/c]; counts", 500, 0.0, 50.0);
h_MCpart_Gamma_p = new TH1D("h_MCpart_Gamma_p", "MC particles #gamma momentum; p_{MC} [GeV/c]; counts", 500, 0.0, 50.0);
// energy
h_MCpart_Pion_p_E = new TH1D("h_MCpart_Pion_p_E", "MC particles #pi^{+} energy; E_{MC} [GeV]; counts", 500, 0.0, 50.0);
h_MCpart_Pion_n_E = new TH1D("h_MCpart_Pion_n_E", "MC particles #pi^{-} energy; E_{MC} [GeV]; counts", 500, 0.0, 50.0);
h_MCpart_Kaon_p_E = new TH1D("h_MCpart_Kaon_p_E", "MC particles K^{+} energy; E_{MC} [GeV]; counts", 500, 0.0, 50.0);
h_MCpart_Kaon_n_E = new TH1D("h_MCpart_Kaon_n_E", "MC particles K^{-} energy; E_{MC} [GeV]; counts", 500, 0.0, 50.0);
h_MCpart_Proton_p_E = new TH1D("h_MCpart_Proton_p_E", "MC particles p^{+} energy; E_{MC} [GeV]; counts", 500, 0.0, 50.0);
h_MCpart_Proton_n_E = new TH1D("h_MCpart_Proton_n_E", "MC particles p^{-} energy; E_{MC} [GeV]; counts", 500, 0.0, 50.0);
h_MCpart_Electron_p_E = new TH1D("h_MCpart_Electron_p_E", "MC particles e^{+} energy; E_{MC} [GeV]; counts", 500, 0.0, 50.0);
h_MCpart_Electron_n_E = new TH1D("h_MCpart_Electron_n_E", "MC particles e^{-} energy; E_{MC} [GeV]; counts", 500, 0.0, 50.0);
h_MCpart_Neutron_E = new TH1D("h_MCpart_Neutron_E", "MC particles n energy; E_{MC} [GeV]; counts", 500, 0.0, 50.0);
h_MCpart_Gamma_E = new TH1D("h_MCpart_Gamma_E", "MC particles #gamma energy; E_{MC} [GeV]; counts", 500, 0.0, 50.0);
// eta, momentum
h_MCpart_pion_p_eta_p = new TH2D("h_MCpart_Pion_p_eta_p", "MC particles #pi^{+} #eta vs. momentum; #eta [1]; p_{MC} [GeV/c]; counts", 200, -10.0, 10.0, 500, 0.0, 50.0);
h_MCpart_pion_n_eta_p = new TH2D("h_MCpart_Pion_n_eta_p", "MC particles #pi^{-} #eta vs. momentum; #eta [1]; p_{MC} [GeV/c]; counts", 200, -10.0, 10.0, 500, 0.0, 50.0);
h_MCpart_Kaon_p_eta_p = new TH2D("h_MCpart_Kaon_p_eta_p", "MC particles K^{+} #eta vs. momentum; #eta [1]; p_{MC} [GeV/c]; counts", 200, -10.0, 10.0, 500, 0.0, 50.0);
h_MCpart_Kaon_n_eta_p = new TH2D("h_MCpart_Kaon_n_eta_p", "MC particles K^{-} #eta vs. momentum; #eta [1]; p_{MC} [GeV/c]; counts", 200, -10.0, 10.0, 500, 0.0, 50.0);
h_MCpart_proton_p_eta_p = new TH2D("h_MCpart_Proton_p_eta_p", "MC particles p^{+} #eta vs. momentum; #eta [1]; p_{MC} [GeV/c]; counts", 200, -10.0, 10.0, 500, 0.0, 50.0);
h_MCpart_proton_n_eta_p = new TH2D("h_MCpart_Proton_n_eta_p", "MC particles p^{-} #eta vs. momentum; #eta [1]; p_{MC} [GeV/c]; counts", 200, -10.0, 10.0, 500, 0.0, 50.0);
h_MCpart_Electron_p_eta_p = new TH2D("h_MCpart_Electron_p_eta_p", "MC particles e^{+} #eta vs. momentum; #eta [1]; p_{MC} [GeV/c]; counts", 200, -10.0, 10.0, 500, 0.0, 50.0);
h_MCpart_Electron_n_eta_p = new TH2D("h_MCpart_Electron_n_eta_p", "MC particles e^{-} #eta vs. momentum; #eta [1]; p_{MC} [GeV/c]; counts", 200, -10.0, 10.0, 500, 0.0, 50.0);
h_MCpart_Neutron_eta_p = new TH2D("h_MCpart_Neutron_eta_p", "MC particles n #eta vs. momentum; #eta [1]; p_{MC} [GeV/c]; counts", 200, -10.0, 10.0, 500, 0.0, 50.0);
h_MCpart_Gamma_eta_p = new TH2D("h_MCpart_Gamma_eta_p", "MC particles #gamman #eta vs. momentum; #eta [1]; p_{MC} [GeV/c]; counts", 200, -10.0, 10.0, 500, 0.0, 50.0);
// eta, energy
h_MCpart_Pion_p_eta_E = new TH2D("h_MCpart_Pion_p_eta_E", "MC particles #pi^{+} #eta vs. energy; #eta [1]; E_{MC} [GeV]; counts", 200, -10.0, 10.0, 500, 0.0, 50.0);
h_MCpart_Pion_n_eta_E = new TH2D("h_MCpart_Pion_n_eta_E", "MC particles #pi^{-} #eta vs. energy; #eta [1]; E_{MC} [GeV]; counts", 200, -10.0, 10.0, 500, 0.0, 50.0);
h_MCpart_Kaon_p_eta_E = new TH2D("h_MCpart_Kaon_p_eta_E", "MC particles K^{+} #eta vs. energy; #eta [1]; E_{MC} [GeV]; counts", 200, -10.0, 10.0, 500, 0.0, 50.0);
h_MCpart_Kaon_n_eta_E = new TH2D("h_MCpart_Kaon_n_eta_E", "MC particles K^{-} #eta vs. energy; #eta [1]; E_{MC} [GeV]; counts", 200, -10.0, 10.0, 500, 0.0, 50.0);
h_MCpart_Proton_p_eta_E = new TH2D("h_MCpart_Proton_p_eta_E", "MC particles p^{+} #eta vs. energy; #eta [1]; E_{MC} [GeV]; counts", 200, -10.0, 10.0, 500, 0.0, 50.0);
h_MCpart_Proton_n_eta_E = new TH2D("h_MCpart_Proton_n_eta_E", "MC particles p^{-} #eta vs. energy; #eta [1]; E_{MC} [GeV]; counts", 200, -10.0, 10.0, 500, 0.0, 50.0);
h_MCpart_Electron_p_eta_E = new TH2D("h_MCpart_Electron_p_eta_E", "MC particles e^{+} #eta vs. energy; #eta [1]; E_{MC} [GeV]; counts", 200, -10.0, 10.0, 500, 0.0, 50.0);
h_MCpart_Electron_n_eta_E = new TH2D("h_MCpart_Electron_n_eta_E", "MC particles e^{-} #eta vs. energy; #eta [1]; E_{MC} [GeV]; counts", 200, -10.0, 10.0, 500, 0.0, 50.0);
h_MCpart_Neutron_eta_E = new TH2D("h_MCpart_Neutron_eta_E", "MC particles n #eta vs. energy; #eta [1]; E_{MC} [GeV]; counts", 200, -10.0, 10.0, 500, 0.0, 50.0);
h_MCpart_Gamma_eta_E = new TH2D("h_MCpart_Gamma_eta_E", "MC particles #gamma #eta vs. energy; #eta [1]; E_{MC} [GeV]; counts", 200, -10.0, 10.0, 500, 0.0, 50.0);
// pair projection distance
h_MCpart_eta_deltaRxy = new TH2D("h_MCpart_eta_deltaRxy", "MC particles pair #eta vs. #DeltaR_{xy}; #eta [1]; #DeltaR_{xy} [cm]; counts", 200, -10.0, 10.0, 5000, 0.0, 500.0);
h_MCpart_Neutron_eta_deltaRxy = new TH2D("h_MCpart_Neutron_eta_deltaRxy", "MC pair neutron+X #eta vs. #DeltaR_{xy}; #eta [1]; #DeltaR_{xy} [cm]; counts", 200, -10.0, 10.0, 5000, 0.0, 500.0);
h_MCpart_eta_norm = new TH1D("h_MCpart_eta_norm", "MC particle #eta; #eta; counts", 200, -10.0, 10.0);
h_MCpart_Neutron_eta_norm = new TH1D("h_MCpart_Neutron_eta_norm", "MC neutron #eta; #eta; counts", 200, -10.0, 10.0);
// Generated MC particles
h_MCpart_gen_mass = new TH1D("h_MCpart_gen_mass", "Generated MC particle mass; m [GeV/c^{2}]; counts", 500, 0.0, 50.0);
h_MCpart_gen_charge = new TH1D("h_MCpart_gen_charge", "Generated MC particle charge; q; counts", 101, -50.5, 50.5);
h_MCpart_gen_E = new TH1D("h_MCpart_gen_E", "Generated MC particle energy; E [GeV]; counts", 500, 0.0, 50.0);
h_MCpart_gen_p = new TH1D("h_MCpart_gen_p", "Generated MC particle momentum; p [GeV/c]; counts", 500, 0.0, 50.0);
h_MCpart_gen_pT = new TH1D("h_MCpart_gen_pT", "Generated MC particle transverse momentum; p_{T} [GeV/c]; counts", 500, 0.0, 50.0);
h_MCpart_gen_eta = new TH1D("h_MCpart_gen_eta", "Generated MC particle #eta; #eta; counts", 200, -10.0, 10.0);
h_MCpart_gen_etaphi = new TH2D("h_MCpart_gen_etaphi", "Generated MC particle #eta,#phi; #eta; #phi [rad]; counts", 200, -10.0, 10.0, 314, -Pi(), Pi());
h_MCpart_gen_xy = new TH2D("h_MCpart_gen_xy", "Generated MC particle position x,y; x [mm]; y [mm]; counts", 1000, -5000.0, 5000.0, 1000, -5000.0, 5000.0);
h_MCpart_gen_zr = new TH2D("h_MCpart_gen_zr", "Generated MC particle position z,r; z [mm]; r [mm]; counts", 1000, -5000.0, 5000.0, 1000, -5000.0, 5000.0);
h_MCpart_gen_end_p = new TH1D("h_MCpart_gen_end_p", "Generated MC particle momentum at endpoint; p [GeV/c]; counts", 500, 0.0, 50.0);
h_MCpart_gen_end_pT = new TH1D("h_MCpart_gen_end_pT", "Generated MC particle transverse momentum at endpoint; p [GeV/c]; counts", 500, 0.0, 50.0);
h_MCpart_gen_posEnd_xy = new TH2D("h_MCpart_gen_posEnd_xy", "Generated MC particle endpoint position x,y; x [mm]; y [mm]; counts", 1000, -5000.0, 5000.0, 1000, -5000.0, 5000.0);
h_MCpart_gen_posEnd_zr = new TH2D("h_MCpart_gen_posEnd_zr", "Generated MC particle endpoint position z,r; z [mm]; r [mm]; counts", 1000, -5000.0, 5000.0, 1000, -5000.0, 5000.0);
// pair projection distance
h_MCpart_gen_eta_deltaRxy = new TH2D("h_MCpart_gen_eta_deltaRxy", "Generated MC particles pair #eta vs. #DeltaR_{xy}; #eta [1]; #DeltaR_{xy} [cm]; counts", 200, -10.0, 10.0, 5000, 0.0, 500.0);
h_MCpart_gen_Neutron_eta_deltaRxy = new TH2D("h_MCpart_gen_Neutron_eta_deltaRxy", "Generated MC pair neutron+X #eta vs. #DeltaR_{xy}; #eta [1]; #DeltaR_{xy} [cm]; counts", 200, -10.0, 10.0, 5000, 0.0, 500.0);
h_MCpart_gen_eta_norm = new TH1D("h_MCpart_gen_eta_norm", "Generated MC particle #eta; #eta; counts", 200, -10.0, 10.0);
h_MCpart_gen_Neutron_eta_norm = new TH1D("h_MCpart_gen_Neutron_eta_norm", "Generated MC neutron #eta; #eta; counts", 200, -10.0, 10.0);
// Secondary MC particles
h_MCpart_sec_mass = new TH1D("h_MCpart_sec_mass", "Secondary MC particle mass; m [GeV/c^{2}]; counts", 500, 0.0, 50.0);
h_MCpart_sec_charge = new TH1D("h_MCpart_sec_charge", "Secondary MC particle charge; q [1]; counts", 101, -50.5, 50.5);
h_MCpart_sec_E = new TH1D("h_MCpart_sec_E", "Secondary MC particle energy; E [GeV]; counts", 500, 0.0, 50.0);
h_MCpart_sec_p = new TH1D("h_MCpart_sec_p", "Secondary MC particle momentum; p [GeV/c]; counts", 500, 0.0, 50.0);
h_MCpart_sec_pT = new TH1D("h_MCpart_sec_pT", "Secondary MC particle transverse momentum; p_{T} [GeV/c]; counts", 500, 0.0, 50.0);
h_MCpart_sec_eta = new TH1D("h_MCpart_sec_eta", "Secondary MC particle #eta; #eta; counts", 200, -10.0, 10.0);
h_MCpart_sec_etaphi = new TH2D("h_MCpart_sec_etaphi", "Secondary MC particle #eta,#phi; #eta; #phi [rad]; counts", 200, -10.0, 10.0, 314, -Pi(), Pi());
h_MCpart_sec_xy = new TH2D("h_MCpart_sec_xy", "Secondary MC particle position x,y; x [mm]; y [mm]; counts", 1000, -5000.0, 5000.0, 1000, -5000.0, 5000.0);
h_MCpart_sec_zr = new TH2D("h_MCpart_sec_zr", "Secondary MC particle position z,r; z [mm]; r [mm]; counts", 1000, -5000.0, 5000.0, 1000, -5000.0, 5000.0);
h_MCpart_sec_end_p = new TH1D("h_MCpart_sec_end_p", "Secondary MC particle momentum at endpoint; p [GeV/c]; counts", 500, 0.0, 50.0);
h_MCpart_sec_end_pT = new TH1D("h_MCpart_sec_end_pT", "Secondary MC particle transverse momentum at endpoint; p [GeV/c]; counts", 500, 0.0, 50.0);
h_MCpart_sec_posEnd_xy = new TH2D("h_MCpart_sec_posEnd_xy", "Secondary MC particle endpoint position x,y; x [mm]; y [mm]; counts", 1000, -5000.0, 5000.0, 1000, -5000.0, 5000.0);
h_MCpart_sec_posEnd_zr = new TH2D("h_MCpart_sec_posEnd_zr", "Secondary MC particle endpoint position z,r; z [mm]; r [mm]; counts", 1000, -5000.0, 5000.0, 1000, -5000.0, 5000.0);
// MC particles - 1st generation daughters
h_MCpart_1stgen_daughter_mass = new TH1D("h_MCpart_1stgen_daughter_mass", "1stgen daughter MC mass; m [GeV/c^{2}]; counts", 500, 0.0, 50.0);
h_MCpart_1stgen_daughter_charge = new TH1D("h_MCpart_1stgen_daughter_charge", "1stgen daughter MC charge; q [1]; counts", 101, -50.5, 50.5);
h_MCpart_1stgen_daughter_E = new TH1D("h_MCpart_1stgen_daughter_E", "1stgen_daughtererated MC particle energy; E [GeV]; counts", 500, 0.0, 50.0);
h_MCpart_1stgen_daughter_p = new TH1D("h_MCpart_1stgen_daughter_p", "1st gen daughter MC momentum; p [GeV/c]; counts", 500, 0.0, 50.0);
h_MCpart_1stgen_daughter_pT = new TH1D("h_MCpart_1stgen_daughter_pT", "1st gen daughter MC transverse momentum; p_{T} [GeV/c]; counts", 500, 0.0, 50.0);
h_MCpart_1stgen_daughter_etaphi = new TH2D("h_MCpart_1stgen_daughter_etaphi", "1st gen daughter MC #eta,#phi; #eta; #phi [rad]; counts", 200, -10.0, 10.0, 314, -Pi(), Pi());
h_MCpart_1stgen_daughter_eta = new TH1D("h_MCpart_1stgen_daughter_eta", "1st gen daughter MC #eta; #eta; counts", 200, -10.0, 10.0);
h_MCpart_1stgen_daughter_xy = new TH2D("h_MCpart_1stgen_daughter_xy", "1st gen daughter MC particle position x,y; x [mm]; y [mm]; counts", 1000, -5000.0, 5000.0, 1000, -5000.0, 5000.0);
h_MCpart_1stgen_daughter_zr = new TH2D("h_MCpart_1stgen_daughter_zr", "1st gen daughter MC particle position z,r; z [mm]; r [mm]; counts", 1000, -5000.0, 5000.0, 1000, -5000.0, 5000.0);
h_MCpart_1stgen_daughter_end_p = new TH1D("h_MCpart_1stgen_daughter_end_p", "1st gen daughter MC momentum at endpoint; p [GeV/c]; counts", 200, -50.0, 50.0);
h_MCpart_1stgen_daughter_end_pT = new TH1D("h_MCpart_1stgen_daughter_end_pT", "1st gen daughter MC transverse momentum at endpoint; p [GeV/c]; counts", 200, -50.0, 50.0);
h_MCpart_1stgen_daughter_posEnd_xy = new TH2D("h_MCpart_1stgen_daughter_posEnd_xy", "1st gen daughter MC endpoint position x,y; x [mm]; y [mm]; counts", 1000, -5000.0, 5000.0, 1000, -5000.0, 5000.0);
h_MCpart_1stgen_daughter_posEnd_zr = new TH2D("h_MCpart_1stgen_daughter_posEnd_zr", "1st gen daughter MC endpoint position z,r; z [mm]; r [mm]; counts", 1000, -5000.0, 5000.0, 1000, -5000.0, 5000.0);
// EcalEndcapNHit
h_nECal_hit_E = new TH1D("h_nECal_hit_E", "nECal hits energy ; E [GeV]; counts", 200000, 0.0, 20.0);
h_nECal_hit_Esum = new TH1D("h_nECal_hit_Esum", "nECal sum of hits energy; E_{sum} [GeV]; counts", 200000, 0.0, 20.0);
h_nECal_nhits = new TH1D("h_nECal_nhits", "No. of nECal hits ; N_{hits}; counts", 501, -0.5, 500.5);
// HcalEndcapNHit
h_nHCal_hit_E = new TH1D("h_nHCal_hit_E", "nHCal hits energy ; E [GeV]; counts", 100000, 0.0, 10.0);
h_nHCal_hit_Ecorr = new TH1D("h_nHCal_hit_Ecorr", "nHCal hits energy - sampling frac. corr. ; E [GeV]; counts", 100000, 0.0, 10.0);
h_nHCal_hit_Esum = new TH1D("h_nHCal_hit_Esum", "nHCal sum of hits energy; E_{sum} [GeV]; counts", 200000, 0.0, 20.0);
h_nHCal_hit_EsumCorr = new TH1D("h_nHCal_hit_EsumCorr", "nHCal sum of hits energy - sampling frac. corr. ; E_{sum} [GeV]; counts", 200000, 0.0, 20.0);
h_nHCal_nhits = new TH1D("h_nHCal_nhits", "No. of nHCal hits ; N_{hits}; counts", 501, -0.5, 500.5);
h_nHCal_hit_pos_x = new TH1D("h_nHCal_hit_pos_x", "nHCal hit position x; x [mm]; counts", 1000, -5000.0, 5000.0);
h_nHCal_hit_pos_y = new TH1D("h_nHCal_hit_pos_y", "nHCal hit position y; y [mm]; counts", 1000, -5000.0, 5000.0);
h_nHCal_hit_pos_z = new TH1D("h_nHCal_hit_pos_z", "nHCal hit position z; z [mm]; counts", 1000, -5000.0, 5000.0);
h_nHCal_hit_pos_xy = new TH2D("h_nHCal_hit_pos_xy", "nHCal hit position xy; x [mm]; y [mm]; counts", 1000, -5000.0, 5000.0, 1000, -5000.0, 5000.0);
h_nHCal_hit_pos_rE = new TH2D("h_NHcal_hit_pos_rE", "nHCal hit energy vs. radial position; r [mm]; E [GeV]; counts", 500, 0.0, 5000.0, 20000, 0.0, 20.0);
// nCals
h_nCal_hits_Esum = new TH1D("h_Ncal_hits_Esum", "Ncal-hit E sum; E [GeV]; counts", 200000, 0.0, 20.0);
}
void DeleteHistogamsSim()
{
// Event
delete h_Events;
delete h_MCpart;
delete h_MCpart_nPion_p;
delete h_MCpart_nPion_n;
delete h_MCpart_nKaon_p;
delete h_MCpart_nKaon_n;
delete h_MCpart_nProton_p;
delete h_MCpart_nProton_n;
delete h_MCpart_nElectron_p;
delete h_MCpart_nElectron_n;
delete h_MCpart_nNeutron;
delete h_MCpart_nGamma;
delete h_MCpart_nGen;
delete h_MCpart_nSec;
// MC particles
delete h_MCpart_mass;
delete h_MCpart_charge;
delete h_MCpart_E;
delete h_MCpart_p;
delete h_MCpart_pT;
delete h_MCpart_mom_x;
delete h_MCpart_mom_y;
delete h_MCpart_mom_z;
delete h_MCpart_eta;
delete h_MCpart_etaphi;
delete h_MCpart_xy;
delete h_MCpart_zr;
delete h_MCpart_end_p;
delete h_MCpart_end_pT;
delete h_MCpart_posEnd_xy;
delete h_MCpart_posEnd_zr;
delete h_MCpart_genStatus;
// momentum
delete h_MCpart_Pion_p_p;
delete h_MCpart_Pion_n_p;
delete h_MCpart_Kaon_p_p;
delete h_MCpart_Kaon_n_p;
delete h_MCpart_Proton_p_p;
delete h_MCpart_Proton_n_p;
delete h_MCpart_Electron_p_p;
delete h_MCpart_Electron_n_p;
delete h_MCpart_Neutron_p;
delete h_MCpart_Gamma_p;
// energy
delete h_MCpart_Pion_p_E;
delete h_MCpart_Pion_n_E;
delete h_MCpart_Kaon_p_E;
delete h_MCpart_Kaon_n_E;
delete h_MCpart_Proton_p_E;
delete h_MCpart_Proton_n_E;
delete h_MCpart_Electron_p_E;
delete h_MCpart_Electron_n_E;
delete h_MCpart_Neutron_E;
delete h_MCpart_Gamma_E;
// eta, momentum
delete h_MCpart_pion_p_eta_p;
delete h_MCpart_pion_n_eta_p;
delete h_MCpart_Kaon_p_eta_p;
delete h_MCpart_Kaon_n_eta_p;
delete h_MCpart_proton_p_eta_p;
delete h_MCpart_proton_n_eta_p;
delete h_MCpart_Electron_p_eta_p;
delete h_MCpart_Electron_n_eta_p;
delete h_MCpart_Neutron_eta_p;
delete h_MCpart_Gamma_eta_p;
// eta, energy
delete h_MCpart_Pion_p_eta_E;
delete h_MCpart_Pion_n_eta_E;
delete h_MCpart_Kaon_p_eta_E;
delete h_MCpart_Kaon_n_eta_E;
delete h_MCpart_Proton_p_eta_E;
delete h_MCpart_Proton_n_eta_E;
delete h_MCpart_Electron_p_eta_E;
delete h_MCpart_Electron_n_eta_E;
delete h_MCpart_Neutron_eta_E;
delete h_MCpart_Gamma_eta_E;
// pair projection distance
delete h_MCpart_eta_deltaRxy;
delete h_MCpart_Neutron_eta_deltaRxy;
delete h_MCpart_eta_norm;
delete h_MCpart_Neutron_eta_norm;
// Generated MC particles
delete h_MCpart_gen_mass;
delete h_MCpart_gen_charge;
delete h_MCpart_gen_E;
delete h_MCpart_gen_p;
delete h_MCpart_gen_pT;
delete h_MCpart_gen_eta;
delete h_MCpart_gen_etaphi;
delete h_MCpart_gen_xy;
delete h_MCpart_gen_zr;
delete h_MCpart_gen_end_p;
delete h_MCpart_gen_end_pT;
delete h_MCpart_gen_posEnd_xy;
delete h_MCpart_gen_posEnd_zr;
// pair projection distance
delete h_MCpart_gen_eta_deltaRxy;
delete h_MCpart_gen_Neutron_eta_deltaRxy;
delete h_MCpart_gen_eta_norm;
delete h_MCpart_gen_Neutron_eta_norm;
// Secondary MC particles
delete h_MCpart_sec_mass;
delete h_MCpart_sec_charge;
delete h_MCpart_sec_E;
delete h_MCpart_sec_p;
delete h_MCpart_sec_pT;
delete h_MCpart_sec_eta;
delete h_MCpart_sec_etaphi;
delete h_MCpart_sec_xy;
delete h_MCpart_sec_zr;
delete h_MCpart_sec_end_p;
delete h_MCpart_sec_end_pT;
delete h_MCpart_sec_posEnd_xy;
delete h_MCpart_sec_posEnd_zr;
// MC particles - 1st generation daughters
delete h_MCpart_1stgen_daughter_mass;
delete h_MCpart_1stgen_daughter_charge;
delete h_MCpart_1stgen_daughter_E ;
delete h_MCpart_1stgen_daughter_p;
delete h_MCpart_1stgen_daughter_pT;
delete h_MCpart_1stgen_daughter_etaphi;
delete h_MCpart_1stgen_daughter_eta;
delete h_MCpart_1stgen_daughter_xy;
delete h_MCpart_1stgen_daughter_zr;
delete h_MCpart_1stgen_daughter_end_p;
delete h_MCpart_1stgen_daughter_end_pT;
delete h_MCpart_1stgen_daughter_posEnd_xy;
delete h_MCpart_1stgen_daughter_posEnd_zr;
// EcalEndcapNHit
delete h_nECal_hit_E;
delete h_nECal_hit_Esum;
delete h_nECal_nhits;
// HcalEndcapNHit
delete h_nHCal_hit_E;
delete h_nHCal_hit_Ecorr;
delete h_nHCal_hit_Esum;
delete h_nHCal_hit_EsumCorr;
delete h_nCal_hit_delE_perevent;
delete h_nHCal_nhits;
delete h_nHCal_hit_pos_x;
delete h_nHCal_hit_pos_y;
delete h_nHCal_hit_pos_z;
delete h_nHCal_hit_pos_xy;
delete h_nHCal_hit_pos_rE;
// nCals
delete h_nCal_hits_Esum;
}
#endif /* HISTOGRAMSSIM_H_ */