-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgen.c
806 lines (714 loc) · 33.9 KB
/
gen.c
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
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
#include "HiForestAnalysis/hiForest.h"
#include <TH1D.h>
#include <TFile.h>
#include <TCanvas.h>
#include "fastjet/JetDefinition.hh"
#include <TPad.h>
#include <TLatex.h>
#include <TStyle.h>
#include <TProfile.h>
#include <iostream>
#include <math.h>
// #include "fastjet/contrib/SoftDrop.hh"
#include "softkiller.h"
#include "fastjet/ClusterSequence.hh"
#include "fastjet/PseudoJet.hh"
#include "fastjet/contrib/Nsubjettiness.hh"
#include "fastjet/contrib/Njettiness.hh"
#include "fastjet/contrib/NjettinessPlugin.hh"
#include "fastjet/contrib/WinnerTakeAllRecombiner.hh"
#include <fstream>
#include "GenStudies-master/ntupler/genpart.C"
#include "TLorentzVector.h"
#include <vector>
#include <string>
#ifdef __MAKECINT__
#pragma link C++ class vector<TLorentzVector>;
#endif
using namespace std;
using namespace fastjet;
using namespace fastjet::contrib;
void gen()
{
TH1::SetDefaultSumw2();
TString directory="/mnt/hadoop/cms/store/user/dgulhan/genSamples/";
// TString infname="QPythia2";
// TString infname="jewel-80-mb";
// TString infname="PythiaZ2Star";
TString infname = "QPythia_PQM0";
genpart *fgen = new genpart(Form("%s%s.root", directory.Data(),infname.Data()));
TFile *outf= new TFile(Form("test_ntuple_%s.root",infname.Data()),"recreate");
TH1D * jetpt = new TH1D("jetpt","Pt spectra of jets; Pt; N", 35, 0.0001, 299.99999);
TH1D * jetFF = new TH1D("jetFF","Fragmentation Functions of jets; Pt; N", 20, 0.0001, 4.99999);
TH1D * jetFFc1 = new TH1D("jetFFc1","Fragmentation Functions of jets; Pt; N", 20, 0.0001, 4.99999);
TH1D * jetFFc2 = new TH1D("jetFFc2","Fragmentation Functions of jets; Pt; N", 20, 0.0001, 4.99999);
TH1D * jetFFc3 = new TH1D("jetFFc3","Fragmentation Functions of jets; Pt; N", 20, 0.0001, 4.99999);
TH1D * jetFFc4 = new TH1D("jetFFc4","Fragmentation Functions of jets; Pt; N", 20, 0.0001, 4.99999);
TH1D * tauonec1 = new TH1D("tauonec1","N-subjettiness Distribution;;N", 25, 0.0001, 64.9999);
TH1D * tauonec2 = new TH1D("tauonec2",";;", 25, 0.0001, 64.9999);
TH1D * tauonec3 = new TH1D("tauonec3",";", 25, 0.0001, 64.9999);
TH1D * tauonec4 = new TH1D("tauonec4",";Tau One;", 25, 0.0001, 64.9999);
TH1D * tautwoc1 = new TH1D("tautwoc1","N-subjettiness Distribution;;N", 25, 0.0001, 64.9999);
TH1D * tautwoc2 = new TH1D("tautwoc2",";;N", 25, 0.0001, 64.9999);
TH1D * tautwoc3 = new TH1D("tautwoc3",";;N", 25, 0.0001, 64.9999);
TH1D * tautwoc4 = new TH1D("tautwoc4",";Tau Two;N", 25, 0.0001, 64.9999);
TH1D * tauthreec1 = new TH1D("tauthreec1","N-subjettiness Distribution;;N", 25, 0.0001, 64.9999);
TH1D * tauthreec2 = new TH1D("tauthreec2",";;N", 25, 0.0001, 64.9999);
TH1D * tauthreec3 = new TH1D("tauthreec3",";;N", 25, 0.0001, 64.9999);
TH1D * tauthreec4 = new TH1D("tauthreec4",";Tau Three;N", 25, 0.0001, 64.9999);
TH1D * tautworc1 = new TH1D("tautworc1","N-subjettiness Distribution;;N", 25, 0.0001, 1.4999);
TH1D * tautworc2 = new TH1D("tautworc2",";;N", 25, 0.0001, 1.4999);
TH1D * tautworc3 = new TH1D("tautworc3",";;N", 25, 0.0001, 1.4999);
TH1D * tautworc4 = new TH1D("tautworc4",";Tau Two/Tau One;N", 25, 0.0001, 1.4999);
TH1D * tauthreerc1 = new TH1D("tauthreerc1","N-subjettiness Distribution;;N", 25, 0.0001, 1.4999);
TH1D * tauthreerc2 = new TH1D("tauthreerc2",";;N", 25, 0.0001, 1.4999);
TH1D * tauthreerc3 = new TH1D("tauthreerc3",";;N", 25, 0.0001, 1.4999);
TH1D * tauthreerc4 = new TH1D("tauthreerc4",";Tau Three/Tau Two;N", 25, 0.0001, 1.4999);
TH1D * tauoneb2c1 = new TH1D("tauoneb2c1","N-subjettiness Distribution;;N", 25, 0.0001, 64.9999);
TH1D * tauoneb2c2 = new TH1D("tauoneb2c2",";;N", 25, 0.0001, 64.9999);
TH1D * tauoneb2c3 = new TH1D("tauoneb2c3",";;N", 25, 0.0001, 64.9999);
TH1D * tauoneb2c4 = new TH1D("tauoneb2c4",";Tau One;N", 25, 0.0001, 64.9999);
TH1D * tautwob2c1 = new TH1D("tautwob2c1","N-subjettiness Distribution;;N", 25, 0.0001, 64.9999);
TH1D * tautwob2c2 = new TH1D("tautwob2c2",";;N", 25, 0.0001, 64.9999);
TH1D * tautwob2c3 = new TH1D("tautwob2c3",";;N", 25, 0.0001, 64.9999);
TH1D * tautwob2c4 = new TH1D("tautwob2c4",";Tau Two;N", 25, 0.0001, 64.9999);
TH1D * tauthreeb2c1 = new TH1D("tauthreeb2c1","N-subjettiness Distribution;;N", 25, 0.0001, 64.9999);
TH1D * tauthreeb2c2 = new TH1D("tauthreeb2c2",";;N", 25, 0.0001, 64.9999);
TH1D * tauthreeb2c3 = new TH1D("tauthreeb2c3",";;N", 25, 0.0001, 64.9999);
TH1D * tauthreeb2c4 = new TH1D("tauthreeb2c4",";Tau Three;N", 25, 0.0001, 64.9999);
TH1D * tautworb2c1 = new TH1D("tautworb2c1","N-subjettiness Distribution;;N", 25, 0.0001, 1.4999);
TH1D * tautworb2c2 = new TH1D("tautworb2c2",";;N", 25, 0.0001, 1.4999);
TH1D * tautworb2c3 = new TH1D("tautworb2c3",";;N", 25, 0.0001, 1.4999);
TH1D * tautworb2c4 = new TH1D("tautworb2c4",";Tau Two/Tau One;N", 25, 0.0001, 1.4999);
TH1D * tauthreerb2c1 = new TH1D("tauthreerb2c1","N-subjettiness Distribution;;N", 25, 0.0001, 1.4999);
TH1D * tauthreerb2c2 = new TH1D("tauthreerb2c2",";/;N", 25, 0.0001, 1.4999);
TH1D * tauthreerb2c3 = new TH1D("tauthreerb2c3",";/;N", 25, 0.0001, 1.4999);
TH1D * tauthreerb2c4 = new TH1D("tauthreerbc42",";Tau Three/Tau Two;N", 25, 0.0001, 1.4999);
TH1D * tauoneb3c1 = new TH1D("tauoneb3c1","N-subjettiness Distribution;;N", 25, 0.0001, 64.9999);
TH1D * tauoneb3c2 = new TH1D("tauoneb3c2",";;N", 25, 0.0001, 64.9999);
TH1D * tauoneb3c3 = new TH1D("tauoneb3c3",";;N", 25, 0.0001, 64.9999);
TH1D * tauoneb3c4 = new TH1D("tauoneb3c4",";Tau One;N", 25, 0.0001, 64.9999);
TH1D * tautwob3c1 = new TH1D("tautwob3c1","N-subjettiness Distribution;;N", 25, 0.0001, 64.9999);
TH1D * tautwob3c2 = new TH1D("tautwob3c2",";;N", 25, 0.0001, 64.9999);
TH1D * tautwob3c3 = new TH1D("tautwob3c3",";;N", 25, 0.0001, 64.9999);
TH1D * tautwob3c4 = new TH1D("tautwob3c4",";Tau Two;N", 25, 0.0001, 64.9999);
TH1D * tauthreeb3c1 = new TH1D("tauthreeb3c1","N-subjettiness Distribution;;N", 25, 0.0001, 64.9999);
TH1D * tauthreeb3c2 = new TH1D("tauthreeb3c2",";;N", 25, 0.0001, 64.9999);
TH1D * tauthreeb3c3 = new TH1D("tauthreeb3c3",";;N", 25, 0.0001, 64.9999);
TH1D * tauthreeb3c4 = new TH1D("tauthreeb3c4",";Tau Three;N", 25, 0.0001, 64.9999);
TH1D * tautworb3c1 = new TH1D("tautworb3c1","N-subjettiness Distribution;;N", 25, 0.0001, 1.4999);
TH1D * tautworb3c2 = new TH1D("tautworb3c2",";;N", 25, 0.0001, 1.4999);
TH1D * tautworb3c3 = new TH1D("tautworb3c3",";;N", 25, 0.0001, 1.4999);
TH1D * tautworb3c4 = new TH1D("tautworb3c4",";Tau Two/Tau one;N", 25, 0.0001, 1.4999);
TH1D * tauthreerb3c1 = new TH1D("tauthreerb3c1","N-subjettiness Distribution;;N", 25, 0.0001, 1.4999);
TH1D * tauthreerb3c2 = new TH1D("tauthreerb3c2",";;N", 25, 0.0001, 1.4999);
TH1D * tauthreerb3c3 = new TH1D("tauthreerb3c3",";;N", 25, 0.0001, 1.4999);
TH1D * tauthreerb3c4 = new TH1D("tauthreerb3c4",";Tau Three/Tau Two;N", 25, 0.0001, 1.4999);
TH1D * tauoneb4c1 = new TH1D("tauoneb4c1","N-subjettiness Distribution;;N", 25, 0.0001, 64.9999);
TH1D * tauoneb4c2 = new TH1D("tauoneb4c2",";;N", 25, 0.0001, 64.9999);
TH1D * tauoneb4c3 = new TH1D("tauoneb4c3",";;N", 25, 0.0001, 64.9999);
TH1D * tauoneb4c4 = new TH1D("tauoneb4c4",";Tau One;N", 25, 0.0001, 64.9999);
TH1D * tautwob4c1 = new TH1D("tautwob4c1","N-subjettiness Distribution;;N", 25, 0.0001, 64.9999);
TH1D * tautwob4c2 = new TH1D("tautwob4c2",";;N", 25, 0.0001, 64.9999);
TH1D * tautwob4c3 = new TH1D("tautwob4c3",";;N", 25, 0.0001, 64.9999);
TH1D * tautwob4c4 = new TH1D("tautwob4c4",";Tau Two;N", 25, 0.0001, 64.9999);
TH1D * tauthreeb4c1 = new TH1D("tauthreeb4c1","N-subjettiness Distribution;;N", 25, 0.0001, 64.9999);
TH1D * tauthreeb4c2 = new TH1D("tauthreeb4c2",";;N", 25, 0.0001, 64.9999);
TH1D * tauthreeb4c3 = new TH1D("tauthreeb4c3",";;N", 25, 0.0001, 64.9999);
TH1D * tauthreeb4c4 = new TH1D("tauthreeb4c4",";Tau Three;N", 25, 0.0001, 64.9999);
TH1D * tautworb4c1 = new TH1D("tautworb4c1","N-subjettiness Distribution;;N", 25, 0.0001, 1.4999);
TH1D * tautworb4c2 = new TH1D("tautworb4c2",";;N", 25, 0.0001, 1.4999);
TH1D * tautworb4c3 = new TH1D("tautworb4c3",";;N", 25, 0.0001, 1.4999);
TH1D * tautworb4c4 = new TH1D("tautworb4c4",";Tau Two/Tau One;N", 25, 0.0001, 1.4999);
TH1D * tauthreerb4c1 = new TH1D("tauthreerb4c1","N-subjettiness Distribution;;N", 25, 0.0001, 1.4999);
TH1D * tauthreerb4c2 = new TH1D("tauthreerb4c2",";;N", 25, 0.0001, 1.4999);
TH1D * tauthreerb4c3 = new TH1D("tauthreerb4c3",";;N", 25, 0.0001, 1.4999);
TH1D * tauthreerb4c4 = new TH1D("tauthreerb4c4",";Tau Three/Tau Two;N", 25, 0.0001, 1.4999);
TH1D * tauoneb5c1 = new TH1D("tauoneb5c1","N-subjettiness Distribution;;N", 25, 0.0001, 64.9999);
TH1D * tauoneb5c2 = new TH1D("tauoneb5c2",";;N", 25, 0.0001, 64.9999);
TH1D * tauoneb5c3 = new TH1D("tauoneb5c3",";;N", 25, 0.0001, 64.9999);
TH1D * tauoneb5c4 = new TH1D("tauoneb5c4",";Tau One;N", 25, 0.0001, 64.9999);
TH1D * tautwob5c1 = new TH1D("tautwob5c1","N-subjettiness Distribution;;N", 25, 0.0001, 64.9999);
TH1D * tautwob5c2 = new TH1D("tautwob5c2",";;N", 25, 0.0001, 64.9999);
TH1D * tautwob5c3 = new TH1D("tautwob5c3",";;N", 25, 0.0001, 64.9999);
TH1D * tautwob5c4 = new TH1D("tautwob5c4",";Tau Two;N", 25, 0.0001, 64.9999);
TH1D * tauthreeb5c1 = new TH1D("tauthreeb5c1","N-subjettiness Distribution;;N", 25, 0.0001, 64.9999);
TH1D * tauthreeb5c2 = new TH1D("tauthreeb5c2",";;N", 25, 0.0001, 64.9999);
TH1D * tauthreeb5c3 = new TH1D("tauthreeb5c3",";;N", 25, 0.0001, 64.9999);
TH1D * tauthreeb5c4 = new TH1D("tauthreeb5c4",";Tau Three;N", 25, 0.0001, 64.9999);
TH1D * tautworb5c1 = new TH1D("tautworb5c1","N-subjettiness Distribution;;N", 25, 0.0001, 1.4999);
TH1D * tautworb5c2 = new TH1D("tautworb5c2",";;N", 25, 0.0001, 1.4999);
TH1D * tautworb5c3 = new TH1D("tautworb5c3",";;N", 25, 0.0001, 1.4999);
TH1D * tautworb5c4 = new TH1D("tautworb5c4",";Tau Two/Tau One;N", 25, 0.0001, 1.4999);
TH1D * tauthreerb5c1 = new TH1D("tauthreerb5c1","N-subjettiness Distribution;;N", 25, 0.0001, 1.4999);
TH1D * tauthreerb5c2 = new TH1D("tauthreerb5c2",";;N", 25, 0.0001, 1.4999);
TH1D * tauthreerb5c3 = new TH1D("tauthreerb5c3",";;N", 25, 0.0001, 1.4999);
TH1D * tauthreerb5c4 = new TH1D("tauthreerb5c4",";Tau Three/Tau Two;N", 25, 0.0001, 1.4999);
TH1D * tauoneb6c1 = new TH1D("tauoneb6c1","N-subjettiness Distribution;;N", 25, 0.0001, 64.9999);
TH1D * tauoneb6c2 = new TH1D("tauoneb6c2",";;N", 25, 0.0001, 64.9999);
TH1D * tauoneb6c3 = new TH1D("tauoneb6c3",";;N", 25, 0.0001, 64.9999);
TH1D * tauoneb6c4 = new TH1D("tauoneb6c4",";Tau One;N", 25, 0.0001, 64.9999);
TH1D * tautwob6c1 = new TH1D("tautwob6c1","N-subjettiness Distribution;;N", 25, 0.0001, 64.9999);
TH1D * tautwob6c2 = new TH1D("tautwob6c2",";;N", 25, 0.0001, 64.9999);
TH1D * tautwob6c3 = new TH1D("tautwob6c3",";;N", 25, 0.0001, 64.9999);
TH1D * tautwob6c4 = new TH1D("tautwob6c4",";Tau Two;N", 25, 0.0001, 64.9999);
TH1D * tauthreeb6c1 = new TH1D("tauthreeb6c1","N-subjettiness Distribution;;N", 25, 0.0001, 64.9999);
TH1D * tauthreeb6c2 = new TH1D("tauthreeb6c2",";;N", 25, 0.0001, 64.9999);
TH1D * tauthreeb6c3 = new TH1D("tauthreeb6c3",";;N", 25, 0.0001, 64.9999);
TH1D * tauthreeb6c4 = new TH1D("tauthreeb6c4",";Tau Three;N", 25, 0.0001, 64.9999);
TH1D * tautworb6c1 = new TH1D("tautworb6c1","N-subjettiness Distribution;;N", 25, 0.0001, 1.4999);
TH1D * tautworb6c2 = new TH1D("tautworb6c2",";;N", 25, 0.0001, 1.4999);
TH1D * tautworb6c3 = new TH1D("tautworb6c3",";;N", 25, 0.0001, 1.4999);
TH1D * tautworb6c4 = new TH1D("tautworb6c4",";Tau Two/Tau One;N", 25, 0.0001, 1.4999);
TH1D * tauthreerb6c1 = new TH1D("tauthreerb6c1","N-subjettiness Distribution;;N", 25, 0.0001, 1.4999);
TH1D * tauthreerb6c2 = new TH1D("tauthreerb6c2",";;N", 25, 0.0001, 1.4999);
TH1D * tauthreerb6c3 = new TH1D("tauthreerb6c3",";;N", 25, 0.0001, 1.4999);
TH1D * tauthreerb6c4 = new TH1D("tauthreerb6c4",";Tau Three/Tau Two;N", 25, 0.0001, 1.4999);
double beta = 1.0;
double beta2 = 2.0;
double beta3 = 0.5;
double beta4 = 0.2;
double beta5 = 1.5;
double beta6 = 3.0;
double alpha = 1.0;
WinnerTakeAllRecombiner wta_alpha(alpha);
WinnerTakeAllRecombiner *wta;
wta = &wta_alpha;
UnnormalizedMeasure measureSpec1(beta);
UnnormalizedMeasure measureSpec2(beta2);
UnnormalizedMeasure measureSpec3(beta3);
UnnormalizedMeasure measureSpec4(beta4);
UnnormalizedMeasure measureSpec5(beta5);
UnnormalizedMeasure measureSpec6(beta6);
WTA_KT_Axes axisMode;
Double_t R = 0.4;
vector<PseudoJet>* jets_unsort = new vector<PseudoJet>;
vector<PseudoJet>* jets = new vector<PseudoJet>;
int nentries = fgen->GetEntriesFast();
for(int jentry=0;jentry<nentries;jentry++){
vector<PseudoJet>* jets_unsort = new vector<PseudoJet>;
if((jentry%1000)==0) std::cout<<jentry<<"/"<<nentries<<std::endl;
fgen->GetEntry(jentry);
float centrality = fgen->b;
centrality = centrality *100;
TLorentzVector tempVect;
for(int trkIter=0;trkIter<fgen->mult;trkIter++)
{
float Pt = fgen->pt[trkIter];
float Eta = fgen->eta[trkIter];
float Phi = fgen->phi[trkIter];
if(fabs(Eta)<2.0)
{
if(Pt > 2){
tempVect.SetPtEtaPhiM(Pt, Eta, Phi, 0);
jets_unsort->push_back(tempVect);
}
}
}
JetDefinition jet_def(cambridge_algorithm, R, wta, Best);
ClusterSequence cs(*jets_unsort, jet_def);
vector<PseudoJet> jets = sorted_by_pt(cs.inclusive_jets());
int size = jets.size();
for(unsigned int i =0; i<min(2,size); i++)
{
if(jets[i].perp() >100.0)
{
vector<PseudoJet> constituents = jets[i].constituents();
for(int constIter = 0; constIter < constituents.size(); constIter++)
{
double constPt = constituents[constIter].perp()
double FF = log(jets[i].perp()/constPt);
jetFF->Fill(FF);
// if(centrality<=10.0 && centrality >= 0.0)
// {
jetFFc1->Fill(FF);
// }
// else if(centrality<=30.0 && centrality > 10.0)
// {
jetFFc2->Fill(FF);
// }
// else if(centrality<=50.0 && centrality > 30.0)
// {
jetFFc3->Fill(FF);
// }
// else if(centrality<=100.0 && centrality > 50.0)
// {
jetFFc4->Fill(FF);
// }
}
jetpt->Fill(jets[i].perp());
Nsubjettiness nSub1_beta1(1, axisMode, measureSpec1);
double tau1 = nSub1_beta1(jets[i]);
Nsubjettiness nSub2_beta1(2, axisMode, measureSpec1);
double tau2 = nSub2_beta1(jets[i]);
Nsubjettiness nSub3_beta1(3, axisMode, measureSpec1);
double tau3 = nSub3_beta1(jets[i]);
NsubjettinessRatio nSub21_beta1(2,1,axisMode, measureSpec1);
double tau2r = nSub21_beta1(jets[i]);
NsubjettinessRatio nSub32_beta1(3,2,axisMode, measureSpec1);
double tau3r = nSub32_beta1(jets[i]);
Nsubjettiness nSub1_beta2(1, axisMode, measureSpec2);
double tau1_beta2 = nSub1_beta2(jets[i]);
Nsubjettiness nSub2_beta2(2, axisMode, measureSpec2);
double tau2_beta2 = nSub2_beta2(jets[i]);
Nsubjettiness nSub3_beta2(3, axisMode, measureSpec2);
double tau3_beta2 = nSub3_beta2(jets[i]);
NsubjettinessRatio nSub21_beta2(2,1,axisMode, measureSpec2);
double tau2r_beta2 = nSub21_beta2(jets[i]);
NsubjettinessRatio nSub32_beta2(3,2,axisMode, measureSpec2);
double tau3r_beta2 = nSub32_beta2(jets[i]);
Nsubjettiness nSub1_beta3(1, axisMode, measureSpec3);
double tau1_beta3 = nSub1_beta3(jets[i]);
Nsubjettiness nSub2_beta3(2, axisMode, measureSpec3);
double tau2_beta3 = nSub2_beta3(jets[i]);
Nsubjettiness nSub3_beta3(3, axisMode,measureSpec3);
double tau3_beta3 = nSub3_beta3(jets[i]);
NsubjettinessRatio nSub21_beta3(2,1,axisMode, measureSpec3);
double tau2r_beta3 = nSub21_beta3(jets[i]);
NsubjettinessRatio nSub32_beta3(3,2,axisMode, measureSpec3);
double tau3r_beta3 = nSub32_beta3(jets[i]);
Nsubjettiness nSub1_beta4(1, axisMode, measureSpec4);
double tau1_beta4 = nSub1_beta4(jets[i]);
Nsubjettiness nSub2_beta4(2, axisMode, measureSpec4);
double tau2_beta4 = nSub2_beta4(jets[i]);
Nsubjettiness nSub3_beta4(3, axisMode, measureSpec4);
double tau3_beta4 = nSub3_beta4(jets[i]);
NsubjettinessRatio nSub21_beta4(2,1,axisMode, measureSpec4);
double tau2r_beta4 = nSub21_beta1(jets[i]);
NsubjettinessRatio nSub32_beta4(3,2,axisMode, measureSpec4);
double tau3r_beta4 = nSub32_beta4(jets[i]);
Nsubjettiness nSub1_beta5(1, axisMode, measureSpec5);
double tau1_beta5 = nSub1_beta5(jets[i]);
Nsubjettiness nSub2_beta5(2, axisMode, measureSpec5);
double tau2_beta5 = nSub2_beta5(jets[i]);
Nsubjettiness nSub3_beta5(3, axisMode, measureSpec5);
double tau3_beta5 = nSub3_beta5(jets[i]);
NsubjettinessRatio nSub21_beta5(2,1,axisMode, measureSpec5);
double tau2r_beta5 = nSub21_beta5(jets[i]);
NsubjettinessRatio nSub32_beta5(3,2,axisMode, measureSpec5);
double tau3r_beta5 = nSub32_beta5(jets[i]);
Nsubjettiness nSub1_beta6(1, axisMode, measureSpec6);
double tau1_beta6 = nSub1_beta6(jets[i]);
Nsubjettiness nSub2_beta6(2, axisMode, measureSpec6);
double tau2_beta6 = nSub2_beta6(jets[i]);
Nsubjettiness nSub3_beta6(3, axisMode,measureSpec6);
double tau3_beta6 = nSub3_beta6(jets[i]);
NsubjettinessRatio nSub21_beta6(2,1,axisMode, measureSpec6);
double tau2r_beta6 = nSub21_beta6(jets[i]);
NsubjettinessRatio nSub32_beta6(3,2,axisMode, measureSpec6);
double tau3r_beta6 = nSub32_beta6(jets[i]);
// if(centrality<=10.0 && centrality >= 0.0){
// tauonec1->Fill(tau1);
// tautwoc1->Fill(tau2);
// tautworc1->Fill(tau2r);
// tauoneb2c1->Fill(tau1_beta2);
// tautwob2c1->Fill(tau2_beta2);
// tautworb2c1->Fill(tau2r_beta2);
// tauoneb3c1->Fill(tau1_beta3);
// tautwob3c1->Fill(tau2_beta3);
// tautworb3c1->Fill(tau2r_beta3);
// tauoneb4c1->Fill(tau1_beta4);
// tautwob4c1->Fill(tau2_beta4);
// tautworb4c1->Fill(tau2r_beta4);
// tauoneb5c1->Fill(tau1_beta5);
// tautwob5c1->Fill(tau2_beta5);
// tautworb5c1->Fill(tau2_beta5);
// tauoneb6c1->Fill(tau1_beta6);
// tautwob6c1->Fill(tau2_beta6);
// tautworb6c1->Fill(tau2r_beta6);
// }
// else if(centrality<=30.0 && centrality > 10.0){
// tauonec2->Fill(tau1);
// tautwoc2->Fill(tau2);
// tautworc2->Fill(tau2r);
// tauoneb2c2->Fill(tau1_beta2);
// tautwob2c2->Fill(tau2_beta2);
// tautworb2c2->Fill(tau2r_beta2);
// tauoneb3c2->Fill(tau1_beta3);
// tautwob3c2->Fill(tau2_beta3);
// tautworb3c2->Fill(tau2r_beta3);
// tauoneb4c2->Fill(tau1_beta4);
// tautwob4c2->Fill(tau2_beta4);
// tautworb4c2->Fill(tau2r_beta4);
// tauoneb5c2->Fill(tau1_beta5);
// tautwob5c2->Fill(tau2_beta5);
// tautworb5c2->Fill(tau2_beta5);
// tauoneb6c2->Fill(tau1_beta6);
// tautwob6c2->Fill(tau2_beta6);
// tautworb6c2->Fill(tau2r_beta6);
// }
// else if(centrality<=50.0 && centrality > 30.0){
// tauonec3->Fill(tau1);
// tautwoc3->Fill(tau2);
// tautworc3->Fill(tau2r);
// tauoneb2c3->Fill(tau1_beta2);
// tautwob2c3->Fill(tau2_beta2);
// tautworb2c3->Fill(tau2r_beta2);
// tauoneb3c3->Fill(tau1_beta3);
// tautwob3c3->Fill(tau2_beta3);
// tautworb3c3->Fill(tau2r_beta3);
// tauoneb4c3->Fill(tau1_beta4);
// tautwob4c3->Fill(tau2_beta4);
// tautworb4c3->Fill(tau2r_beta4);
// tauoneb5c3->Fill(tau1_beta5);
// tautwob5c3->Fill(tau2_beta5);
// tautworb5c3->Fill(tau2_beta5);
// tauoneb6c3->Fill(tau1_beta6);
// tautwob6c3->Fill(tau2_beta6);
// tautworb6c3->Fill(tau2r_beta6);
// }
// else if(centrality<=100.0 && centrality > 50.0){
// tauonec4->Fill(tau1);
// tautwoc4->Fill(tau2);
// tautworc4->Fill(tau2r);
// tauoneb2c4->Fill(tau1_beta2);
// tautwob2c4->Fill(tau2_beta2);
// tautworb2c4->Fill(tau2r_beta2);
// tauoneb3c4->Fill(tau1_beta3);
// tautwob3c4->Fill(tau2_beta3);
// tautworb3c4->Fill(tau2r_beta3);
// tauoneb4c4->Fill(tau1_beta4);
// tautwob4c4->Fill(tau2_beta4);
// tautworb4c4->Fill(tau2r_beta4);
// tauoneb5c4->Fill(tau1_beta5);
// tautwob5c4->Fill(tau2_beta5);
// tautworb5c4->Fill(tau2_beta5);
// tauoneb6c4->Fill(tau1_beta6);
// tautwob6c4->Fill(tau2_beta6);
// tautworb6c4->Fill(tau2r_beta6);
// }
tauonec1->Fill(tau1);
tautwoc1->Fill(tau2);
tautworc1->Fill(tau2r);
tauoneb2c1->Fill(tau1_beta2);
tautwob2c1->Fill(tau2_beta2);
tautworb2c1->Fill(tau2r_beta2);
tauoneb3c1->Fill(tau1_beta3);
tautwob3c1->Fill(tau2_beta3);
tautworb3c1->Fill(tau2r_beta3);
tauoneb4c1->Fill(tau1_beta4);
tautwob4c1->Fill(tau2_beta4);
tautworb4c1->Fill(tau2r_beta4);
tauoneb5c1->Fill(tau1_beta5);
tautwob5c1->Fill(tau2_beta5);
tautworb5c1->Fill(tau2_beta5);
tauoneb6c1->Fill(tau1_beta6);
tautwob6c1->Fill(tau2_beta6);
tautworb6c1->Fill(tau2r_beta6);
tauonec2->Fill(tau1);
tautwoc2->Fill(tau2);
tautworc2->Fill(tau2r);
tauoneb2c2->Fill(tau1_beta2);
tautwob2c2->Fill(tau2_beta2);
tautworb2c2->Fill(tau2r_beta2);
tauoneb3c2->Fill(tau1_beta3);
tautwob3c2->Fill(tau2_beta3);
tautworb3c2->Fill(tau2r_beta3);
tauoneb4c2->Fill(tau1_beta4);
tautwob4c2->Fill(tau2_beta4);
tautworb4c2->Fill(tau2r_beta4);
tauoneb5c2->Fill(tau1_beta5);
tautwob5c2->Fill(tau2_beta5);
tautworb5c2->Fill(tau2_beta5);
tauoneb6c2->Fill(tau1_beta6);
tautwob6c2->Fill(tau2_beta6);
tautworb6c2->Fill(tau2r_beta6);
tauonec3->Fill(tau1);
tautwoc3->Fill(tau2);
tautworc3->Fill(tau2r);
tauoneb2c3->Fill(tau1_beta2);
tautwob2c3->Fill(tau2_beta2);
tautworb2c3->Fill(tau2r_beta2);
tauoneb3c3->Fill(tau1_beta3);
tautwob3c3->Fill(tau2_beta3);
tautworb3c3->Fill(tau2r_beta3);
tauoneb4c3->Fill(tau1_beta4);
tautwob4c3->Fill(tau2_beta4);
tautworb4c3->Fill(tau2r_beta4);
tauoneb5c3->Fill(tau1_beta5);
tautwob5c3->Fill(tau2_beta5);
tautworb5c3->Fill(tau2_beta5);
tauoneb6c3->Fill(tau1_beta6);
tautwob6c3->Fill(tau2_beta6);
tautworb6c3->Fill(tau2r_beta6);
tauonec4->Fill(tau1);
tautwoc4->Fill(tau2);
tautworc4->Fill(tau2r);
tauoneb2c4->Fill(tau1_beta2);
tautwob2c4->Fill(tau2_beta2);
tautworb2c4->Fill(tau2r_beta2);
tauoneb3c4->Fill(tau1_beta3);
tautwob3c4->Fill(tau2_beta3);
tautworb3c4->Fill(tau2r_beta3);
tauoneb4c4->Fill(tau1_beta4);
tautwob4c4->Fill(tau2_beta4);
tautworb4c4->Fill(tau2r_beta4);
tauoneb5c4->Fill(tau1_beta5);
tautwob5c4->Fill(tau2_beta5);
tautworb5c4->Fill(tau2_beta5);
tauoneb6c4->Fill(tau1_beta6);
tautwob6c4->Fill(tau2_beta6);
tautworb6c4->Fill(tau2r_beta6);
}
}
jets_unsort->clear();
}
double norm1FF = 1.0/jetpt->GetEntries();
jetFF->Scale(norm1FF);
double norm1FFc1 = 1.0/tauonec1->GetEntries();
double norm1FFc2 = 1.0/tauonec2->GetEntries();
double norm1FFc3 = 1.0/tauonec3->GetEntries();
double norm1FFc4 = 1.0/tauonec4->GetEntries();
jetFFc1->Scale(norm1FFc1);
jetFFc2->Scale(norm1FFc2);
jetFFc3->Scale(norm1FFc3);
jetFFc4->Scale(norm1FFc4);
double norm1c1 = 1.0/tauonec1->Integral();
tauonec1->Scale(norm1c1);
double norm1c2 = 1.0/tauonec2->Integral();
tauonec2->Scale(norm1c2);
double norm1c3 = 1.0/tauonec3->Integral();
tauonec3->Scale(norm1c3);
double norm1c4 = 1.0/tauonec4->Integral();
tauonec4->Scale(norm1c4);
double norm2c1 = 1.0/tautwoc1->Integral();
tautwoc1->Scale(norm2c1);
double norm2c2 = 1.0/tautwoc2->Integral();
tautwoc2->Scale(norm2c2);
double norm2c3 = 1.0/tautwoc3->Integral();
tautwoc3->Scale(norm2c3);
double norm2c4 = 1.0/tautwoc4->Integral();
tautwoc4->Scale(norm2c4);
double norm3c1 = 1.0/tauthreec1->Integral();
tauthreec1->Scale(norm3c1);
double norm3c2 = 1.0/tauthreec2->Integral();
tauthreec2->Scale(norm3c2);
double norm3c3 = 1.0/tauthreec3->Integral();
tauthreec3->Scale(norm3c3);
double norm3c4 = 1.0/tauthreec4->Integral();
tauthreec4->Scale(norm3c4);
double norm4c1 = 1.0/tautworc1->Integral();
tautworc1->Scale(norm4c1);
double norm4c2 = 1.0/tautworc2->Integral();
tautworc2->Scale(norm4c2);
double norm4c3 = 1.0/tautworc3->Integral();
tautworc3->Scale(norm4c3);
double norm4c4 = 1.0/tautworc4->Integral();
tautworc4->Scale(norm4c4);
double norm5c1 = 1.0/tauthreerc1->Integral();
tauthreerc1->Scale(norm5c1);
double norm5c2 = 1.0/tauthreerc2->Integral();
tauthreerc2->Scale(norm5c2);
double norm5c3 = 1.0/tauthreerc3->Integral();
tauthreerc3->Scale(norm5c3);
double norm5c4 = 1.0/tauthreerc4->Integral();
tauthreerc4->Scale(norm5c4);
double norm1b2c1 = 1.0/tauoneb2c1->Integral();
tauoneb2c1->Scale(norm1b2c1);
double norm1b2c2 = 1.0/tauoneb2c2->Integral();
tauoneb2c2->Scale(norm1b2c2);
double norm1b2c3 = 1.0/tauoneb2c3->Integral();
tauoneb2c3->Scale(norm1b2c3);
double norm1b2c4 = 1.0/tauoneb2c4->Integral();
tauoneb2c4->Scale(norm1b2c4);
double norm2b2c1 = 1.0/tautwob2c1->Integral();
tautwob2c1->Scale(norm2b2c1);
double norm2b2c2 = 1.0/tautwob2c2->Integral();
tautwob2c2->Scale(norm2b2c2);
double norm2b2c3 = 1.0/tautwob2c3->Integral();
tautwob2c3->Scale(norm2b2c3);
double norm2b2c4 = 1.0/tautwob2c4->Integral();
tautwob2c4->Scale(norm2b2c4);
double norm3b2c1 = 1.0/tauthreeb2c1->Integral();
tauthreeb2c1->Scale(norm3b2c1);
double norm3b2c2 = 1.0/tauthreeb2c2->Integral();
tauthreeb2c2->Scale(norm3b2c2);
double norm3b2c3 = 1.0/tauthreeb2c3->Integral();
tauthreeb2c3->Scale(norm3b2c3);
double norm3b2c4 = 1.0/tauthreeb2c4->Integral();
tauthreeb2c4->Scale(norm3b2c4);
double norm4b2c1 = 1.0/tautworb2c1->Integral();
tautworb2c1->Scale(norm4b2c1);
double norm4b2c2 = 1.0/tautworb2c2->Integral();
tautworb2c2->Scale(norm4b2c2);
double norm4b2c3 = 1.0/tautworb2c3->Integral();
tautworb2c3->Scale(norm4b2c3);
double norm4b2c4 = 1.0/tautworb2c4->Integral();
tautworb2c4->Scale(norm4b2c4);
double norm5b2c1 = 1.0/tauthreerb2c1->Integral();
tauthreerb2c1->Scale(norm5b2c1);
double norm5b2c2 = 1.0/tauthreerb2c2->Integral();
tauthreerb2c2->Scale(norm5b2c2);
double norm5b2c3 = 1.0/tauthreerb2c3->Integral();
tauthreerb2c3->Scale(norm5b2c3);
double norm5b2c4 = 1.0/tauthreerb2c4->Integral();
tauthreerb2c4->Scale(norm5b2c4);
double norm1b3c1 = 1.0/tauoneb3c1->Integral();
tauoneb3c1->Scale(norm1b3c1);
double norm1b3c2 = 1.0/tauoneb3c2->Integral();
tauoneb3c2->Scale(norm1b3c2);
double norm1b3c3 = 1.0/tauoneb3c3->Integral();
tauoneb3c3->Scale(norm1b3c3);
double norm1b3c4 = 1.0/tauoneb3c4->Integral();
tauoneb3c4->Scale(norm1b3c4);
double norm2b3c1 = 1.0/tautwob3c1->Integral();
tautwob3c1->Scale(norm2b3c1);
double norm2b3c2 = 1.0/tautwob3c2->Integral();
tautwob3c2->Scale(norm2b3c2);
double norm2b3c3 = 1.0/tautwob3c3->Integral();
tautwob3c3->Scale(norm2b3c3);
double norm2b3c4 = 1.0/tautwob3c4->Integral();
tautwob3c4->Scale(norm2b3c4);
double norm3b3c1 = 1.0/tauthreeb3c1->Integral();
tauthreeb3c1->Scale(norm3b3c1);
double norm3b3c2 = 1.0/tauthreeb3c2->Integral();
tauthreeb3c2->Scale(norm3b3c2);
double norm3b3c3 = 1.0/tauthreeb3c3->Integral();
tauthreeb3c3->Scale(norm3b3c3);
double norm3b3c4 = 1.0/tauthreeb3c4->Integral();
tauthreeb3c4->Scale(norm3b3c4);
double norm4b3c1 = 1.0/tautworb3c1->Integral();
tautworb3c1->Scale(norm4b3c1);
double norm4b3c2 = 1.0/tautworb3c2->Integral();
tautworb3c2->Scale(norm4b3c2);
double norm4b3c3 = 1.0/tautworb3c3->Integral();
tautworb3c3->Scale(norm4b3c3);
double norm4b3c4 = 1.0/tautworb3c4->Integral();
tautworb3c4->Scale(norm4b3c4);
double norm5b3c1 = 1.0/tauthreerb3c1->Integral();
tauthreerb3c1->Scale(norm5b3c1);
double norm5b3c2 = 1.0/tauthreerb3c2->Integral();
tauthreerb3c2->Scale(norm5b3c2);
double norm5b3c3 = 1.0/tauthreerb3c3->Integral();
tauthreerb3c3->Scale(norm5b3c3);
double norm5b3c4 = 1.0/tauthreerb3c4->Integral();
tauthreerb3c4->Scale(norm5b3c4);
double norm1b4c1 = 1.0/tauoneb4c1->Integral();
tauoneb4c1->Scale(norm1b4c1);
double norm1b4c2 = 1.0/tauoneb4c2->Integral();
tauoneb4c2->Scale(norm1b4c2);
double norm1b4c3 = 1.0/tauoneb4c3->Integral();
tauoneb4c3->Scale(norm1b4c3);
double norm1b4c4 = 1.0/tauoneb4c4->Integral();
tauoneb4c4->Scale(norm1b4c4);
double norm2b4c1 = 1.0/tautwob4c1->Integral();
tautwob4c1->Scale(norm2b4c1);
double norm2b4c2 = 1.0/tautwob4c2->Integral();
tautwob4c2->Scale(norm2b4c2);
double norm2b4c3 = 1.0/tautwob4c3->Integral();
tautwob4c3->Scale(norm2b4c3);
double norm2b4c4 = 1.0/tautwob4c4->Integral();
tautwob4c4->Scale(norm2b4c4);
double norm3b4c1 = 1.0/tauthreeb4c1->Integral();
tauthreeb4c1->Scale(norm3b4c1);
double norm3b4c2 = 1.0/tauthreeb4c2->Integral();
tauthreeb4c2->Scale(norm3b4c2);
double norm3b4c3 = 1.0/tauthreeb4c3->Integral();
tauthreeb4c3->Scale(norm3b4c3);
double norm3b4c4 = 1.0/tauthreeb4c4->Integral();
tauthreeb4c4->Scale(norm3b4c4);
double norm4b4c1 = 1.0/tautworb4c1->Integral();
tautworb4c1->Scale(norm4b4c1);
double norm4b4c2 = 1.0/tautworb4c2->Integral();
tautworb4c2->Scale(norm4b4c2);
double norm4b4c3 = 1.0/tautworb4c3->Integral();
tautworb4c3->Scale(norm4b4c3);
double norm4b4c4 = 1.0/tautworb4c4->Integral();
tautworb4c4->Scale(norm4b4c4);
double norm5b4c1 = 1.0/tauthreerb4c1->Integral();
tauthreerb4c1->Scale(norm5b4c1);
double norm5b4c2 = 1.0/tauthreerb4c2->Integral();
tauthreerb4c2->Scale(norm5b4c2);
double norm5b4c3 = 1.0/tauthreerb4c3->Integral();
tauthreerb4c3->Scale(norm5b4c3);
double norm5b4c4 = 1.0/tauthreerb4c4->Integral();
tauthreerb4c4->Scale(norm5b4c4);
double norm1b5c1 = 1.0/tauoneb5c1->Integral();
tauoneb5c1->Scale(norm1b5c1);
double norm1b5c2 = 1.0/tauoneb5c2->Integral();
tauoneb5c2->Scale(norm1b5c2);
double norm1b5c3 = 1.0/tauoneb5c3->Integral();
tauoneb5c3->Scale(norm1b5c3);
double norm1b5c4 = 1.0/tauoneb5c4->Integral();
tauoneb5c4->Scale(norm1b5c4);
double norm2b5c1 = 1.0/tautwob5c1->Integral();
tautwob5c1->Scale(norm2b5c1);
double norm2b5c2 = 1.0/tautwob5c2->Integral();
tautwob5c2->Scale(norm2b5c2);
double norm2b5c3 = 1.0/tautwob5c3->Integral();
tautwob5c3->Scale(norm2b5c3);
double norm2b5c4 = 1.0/tautwob5c4->Integral();
tautwob5c4->Scale(norm2b5c4);
double norm3b5c1 = 1.0/tauthreeb5c1->Integral();
tauthreeb5c1->Scale(norm3b5c1);
double norm3b5c2 = 1.0/tauthreeb5c2->Integral();
tauthreeb5c2->Scale(norm3b5c2);
double norm3b5c3 = 1.0/tauthreeb5c3->Integral();
tauthreeb5c3->Scale(norm3b5c3);
double norm3b5c4 = 1.0/tauthreeb5c4->Integral();
tauthreeb5c4->Scale(norm3b5c4);
double norm4b5c1 = 1.0/tautworb5c1->Integral();
tautworb5c1->Scale(norm4b5c1);
double norm4b5c2 = 1.0/tautworb5c2->Integral();
tautworb5c2->Scale(norm4b5c2);
double norm4b5c3= 1.0/tautworb5c3->Integral();
tautworb5c3->Scale(norm4b5c3);
double norm4b5c4 = 1.0/tautworb5c4->Integral();
tautworb5c4->Scale(norm4b5c4);
double norm5b5c1 = 1.0/tauthreerb5c1->Integral();
tauthreerb5c1->Scale(norm5b5c1);
double norm5b5c2 = 1.0/tauthreerb5c2->Integral();
tauthreerb5c2->Scale(norm5b5c2);
double norm5b5c3 = 1.0/tauthreerb5c3->Integral();
tauthreerb5c3->Scale(norm5b5c3);
double norm5b5c4 = 1.0/tauthreerb5c4->Integral();
tauthreerb5c4->Scale(norm5b5c4);
double norm1b6c1 = 1.0/tauoneb6c1->Integral();
tauoneb6c1->Scale(norm1b6c1);
double norm1b6c2 = 1.0/tauoneb6c2->Integral();
tauoneb6c2->Scale(norm1b6c2);
double norm1b6c3 = 1.0/tauoneb6c3->Integral();
tauoneb6c3->Scale(norm1b6c3);
double norm1b6c4 = 1.0/tauoneb6c4->Integral();
tauoneb6c4->Scale(norm1b6c4);
double norm2b6c1 = 1.0/tautwob6c1->Integral();
tautwob6c1->Scale(norm2b6c1);
double norm2b6c2 = 1.0/tautwob6c2->Integral();
tautwob6c2->Scale(norm2b6c2);
double norm2b6c3 = 1.0/tautwob6c3->Integral();
tautwob6c3->Scale(norm2b6c3);
double norm2b6c4 = 1.0/tautwob6c4->Integral();
tautwob6c4->Scale(norm2b6c4);
double norm3b6c1 = 1.0/tauthreeb6c1->Integral();
tauthreeb6c1->Scale(norm3b6c1);
double norm3b6c2 = 1.0/tauthreeb6c2->Integral();
tauthreeb6c2->Scale(norm3b6c2);
double norm3b6c3 = 1.0/tauthreeb6c3->Integral();
tauthreeb6c3->Scale(norm3b6c3);
double norm3b6c4 = 1.0/tauthreeb6c4->Integral();
tauthreeb6c4->Scale(norm3b6c4);
double norm4b6c1 = 1.0/tautworb6c1->Integral();
tautworb6c1->Scale(norm4b6c1);
double norm4b6c2 = 1.0/tautworb6c2->Integral();
tautworb6c2->Scale(norm4b6c2);
double norm4b6c3 = 1.0/tautworb6c3->Integral();
tautworb6c3->Scale(norm4b6c3);
double norm4b6c4 = 1.0/tautworb6c4->Integral();
tautworb6c4->Scale(norm4b6c4);
double norm5b6c1 = 1.0/tauthreerb6c1->Integral();
tauthreerb6c1->Scale(norm5b6c1);
double norm5b6c2 = 1.0/tauthreerb6c2->Integral();
tauthreerb6c2->Scale(norm5b6c2);
double norm5b6c3 = 1.0/tauthreerb6c3->Integral();
tauthreerb6c3->Scale(norm5b6c3);
double norm5b6c4 = 1.0/tauthreerb6c4->Integral();
tauthreerb6c4->Scale(norm5b6c4);
outf->cd();
outf->Write();
outf->Close();
}
int main(int argc, char *argv[])
{
gen();
return 0;
}