-
Notifications
You must be signed in to change notification settings - Fork 0
/
TestGen.cc
3886 lines (3144 loc) · 153 KB
/
TestGen.cc
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
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
#include "TestGen.h"
// struct of hists and files
TestGen::kin_hist my; // Struct holds all Kinematics plots and files
TestGen::ltimeEvt Lt; // Large time >= 10ns Evts
TestGen::svtxEvt Sv; // Single Vertex Evts
TestGen::Halogamma Hg; // Halo Gamma Gamma Evts
float Time_Array[32] = { -6.0, -5.0, -4.0, -3.0, -2.0, -1.0, 0.0, 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0,10.0, 11.0, 12.0, 13.0, 14.0, 15.0, 16.0, 17.0, 18.0, 19.0, 20.0, 21.0, 22.0, 23.0, 24.0, 25.0 };
string name1 = "CSCdphiInTimeSliceEB_";
string name2 = "NCrysInTimeSliceEB_";
std::string hname1[32];
std::string hname2[32];
int nEregA = 0, nEregB = 0, nEregC = 0, nEregD = 0, nEregAp = 0, nEregBp = 0, nEreg = 0;
//TFile *f = new TFile("gmsb_180_DP_gammaTriggger.root","recreate");
TFile *f = new TFile("JetTiming_DPTrigger_Displaced_Photon_outputfile.root","recreate");
TestGen::TestGen( string datacardfile ){
Input = new AnaInput( datacardfile );
Input->GetParameters("PlotType", &plotType ) ;
Input->GetParameters("Path", &hfolder ) ;
Input->GetParameters("RootFiles", &rfolder ) ;
Input->GetParameters("ProcessEvents", &ProcessEvents ) ;
Input->GetParameters("JetCuts", &jetCuts );
Input->GetParameters("TrigCut", &trigCut );
Input->GetParameters("photonCuts", &photonCuts);
Input->GetParameters("MetCuts", &metCut);
Input->GetParameters("HaloCuts", &HaloCuts);
Input->GetParameters("photonIso", &photonIso);
Input->GetParameters("JetIdCuts", &JetIdCuts);
}
TestGen::~TestGen(){
delete Input ;
cout<<" done ! "<<endl ;
}
// function to convert Int to String
std::string TestGen::Int2String(int num){
stringstream mystream ;
mystream << num;
return mystream.str();
}
//
//
//Function to Initialize Histograms
//
//
void TestGen::InitHist() {
// Initial Time_Window hists
for( int ii = 0; ii < 32; ii++){
hname1[ii] = name1 + Int2String(ii);
hname2[ii] = name2 + Int2String(ii);
my.cscdphiInTimeSlice[ii] = new TH1D( hname1[ii].c_str(), hname1[ii].c_str(), 100, 0.0, 3.5);
my.NCrysInTimeSlice[ii] = new TH1D( hname2[ii].c_str(), hname2[ii].c_str(), 50, 0.0, 50.0);
}
my.phoTimeVsNCrys = new TH2D("my.phoTimeVsNCrys","Photon Time Vs NCrys",50, 0.0, 50.0, 50, -25.0, 25.0);
my.phoTimeVsPt = new TH2D("my.phoTimeVsPt","Time^{#gamma} Vs P_{T}^{#gamma}",200, 0.0, 2000.0, 100, -25.0, 25.0);
my.phoTimeVsMet = new TH2D("my.phoTimeVsMet","Time^{#gamma} Vs E_{T}^{Miss}",100, 0.0, 1500.0, 100, -25.0, 25.0);
my.NCrysVsCSCdphi = new TH2D("my.NcrysVsCSCdphi","NCrys Vs #delta #phi{CSCSeg,#gamma}",100, 0.0, 3.5, 50, 0.0, 50.0);
my.phoPtVsMet = new TH2D("my.phoPtVsMet"," P_{T}^{#gamma} Vs E_{T}^{Miss}",100, 0.0, 2000.0, 100, 0.0, 2000.0);
my.phoEtaVsNCrys = new TH2D("my.phoEtaVsNCrys","#eta_{#gamma} Vs NCrys",50, 0.0, 50.0, 100, -3.2, 3.2);
my.phoPhiVsNCrys = new TH2D("my.phoPhiVsNCrys","#phi_{#gamma} Vs NCrys",50, 0.0, 50.0, 100, -3.2, 3.2);
my.phoPtVsNCrys = new TH2D("my.phoPtVsNCrys","P_{T}^{#gamma} Vs NCrys",50, 0.0, 50.0, 200, 0.0, 2000.0);
my.MetVsNCrys = new TH2D("my.MetVsNCrys","E_{T}^{Miss} Vs NCrys",50, 0.0, 50.0, 200, 0.0, 2000.0);
my.phoEtaVsCSCdphi = new TH2D("my.phoEtaVsCSCdphi","#eta_{#gamma} Vs #delta #phi(CSC Seg, #gamma)",100, 0.0, 3.2, 100, -3.2, 3.2);
my.phoPhiVsCSCdphi = new TH2D("my.phoPhiVsCSCdphi","#phi_{#gamma} Vs #delta #phi(CSC Seg, #gamma)",100, 0.0, 3.2, 100, -3.2, 3.2);
my.MetVsCSCdphi = new TH2D("my.MetVsCSCdphi","E_{T}^{Miss} Vs #delta #phi(CSC Seg, #gamma)",100, 0.0, 3.2, 200, 0.0, 2000.0);
my.phoPtVsCSCdphi = new TH2D("my.phoPtVsCSCdphi","P_{T}^{#gamma} Vs #delta #phi(CSC Seg, #gamma)",100, 0.0, 3.2, 200, 0.0, 2000.0);
my.h_Time = new TH1D("my.h_Time", "Photon Time(ns)", 100, -25.0, 25.0);
my.h_g1Pt = new TH1D("my.h_g1Pt", "Leading Photon Pt(GeV) ", 200, 0, 4000);
my.WAveSeedBCphotime = new TH1D("my.WAveSeedBCphotime", "Photon (W Ave Seed BC) Time(ns)", 100, -25.0, 25.0);
my.AveSCphotime = new TH1D("my.AveSCphotime", "Photon (W Ave SC) Time(ns)", 100, -25.0, 25.0);
my.evt_met = new TH1D("my.evt_met", "Missing Energy(GeV)", 200, 0, 4000);
my.ph_smin = new TH1D("my.ph_smin", "Shower Width Along Cluster Minor Axis", 100,0,5);
my.ph_smaj = new TH1D("my.ph_smaj", "Shower Width Along Cluster Major Axis", 100,0,5);
my.ph_e = new TH1D("my.ph_e","#gamma^{1}Energy(GeV)", 200, 0, 4000);
my.ph_z = new TH1D("my.ph_z", "Z Vextex Position of Photon(cm)", 4000, -50.0, 50.0);
my.ph_eta = new TH1D("my.ph_eta","#eta^{#gamma^{1}}", 100, -3.2, 3.2);
my.ph_phi = new TH1D("my.ph_phi", "#phi^{#gamma^{1}}", 100, -3.2, 3.2);
my.jet_eta = new TH1D("my.jet_eta", "#eta^{Jet^{1}}", 100, -3.2, 3.2);
my.jet_phi = new TH1D("my.jet_phi", "#phi^{Jet^{1}}", 100, -3.2, 3.2);
my.jp_deta = new TH1D("my.jp_deta", "Jet^{1}-#gamma^{1} #delta#eta", 100, -3.2, 3.2);
my.jp_dphi = new TH1D("my.jp_dphi", "Jet^{1}-#gamma^{1} #delta#phi", 100, -10, 10);
my.njets = new TH1D("my.njets", "Jet Multiplicity", 20, 0, 20);
my.npho = new TH1D("my.npho", "#gamma Multiplicity in Event", 10, 0, 10);
my.pu_vtx = new TH1D("my.pu_vtx", "PVs Multiplicity", 1000, 0, 50);
my.j_pt = new TH1D("my.j_pt", "Jet^{1} Pt(GeV)", 200, 0, 2000);
my.ph_HoverE = new TH1D("my.ph_HoverE", "#gamma H/E", 20, -5.0, 5.0);
my.mettheta = new TH1D("my.mettheta", "#theta^{gravitino}", 100, -10.0, 10.0);
my.phomet_thetadiff = new TH1D("my.phomet_thetadiff", "#delta #theta(#gamma , Met)", 100, -10.0, 10.0);
my.MassNt = new TH1D("my.MassNt", "Mass_{T}(GeV)", 100, 0.0, 2500.0);
my.pho_angle = new TH1D("my.pho_angle","#theta_{#gamma}(Radians)", 200, -10.0, 10.0);
my.metVsPU = new TH2D("my.metVsPU","MET Vs PU",100, 0, 40, 200, 0,2500);
my.photimeVsPU = new TH2D("my.photimeVsPU","PV Vs Time",100, 0, 400, 500, -25.0, 25.0);
my.pho_Ecal_IsoVsPU = new TH2D("my.phoEcal_IsoVsPU","EcalIso Vs PU", 100, 0.0, 40.0, 100, 0.0, 10.0);
my.pho_Trk_IsoVsPU = new TH2D("my.phoTrk_IsoVsPU","TrackIso Vs PU", 100, 0.0, 40.0, 100, 0.0, 10.0);
my.pho_Hcal_IsoVsPU = new TH2D("my.phoHcal_IsoVsPU","HcalIso Vs PU", 100, 0.0, 40.0, 100, 0.0, 10.0);
// my.Hcal_IsoVsPU = new TH2D("my.Hcal_IsoVsPU","2012 HcalIso Vs PU", 100, 0.0, 40.0, 100, 0.0, 10.0);
my.sMinorVsPU = new TH2D("my.sMinorVsPU","sMinor Vs PU", 100, 0.0, 40.0, 100, 0.0, 1.0);
my.phoTimeVsEta = new TH2D("my.phoTimeVsEta","Photon Time Vs Eta",100, -3.0, 3.0, 100, -25.0, 25.0);
my.phoTimeVsE = new TH2D("my.phoTimeVsE","Photon Time Vs Energy", 400, 0.0, 4000.0, 100, -25.0, 25.0);
my.phoTimeVsPhi = new TH2D("my.phoTimeVsPhi","Photon Time Vs Phi",100, -3.2, 3.2, 100, -25.0, 25.0);
// Photon Iso studies
my.pho_EcalIso = new TH1D("my.pho_EcalIso","Photon EcalIso", 100, 0.0, 10.0);
my.pho_HcalIso = new TH1D("my.pho_HcalIso", "Photon HcalIso", 100, 0.0, 10.0);
// my.hcal_Iso = new TH1D("my.hcal_Iso", "2012 Photon HcalIso", 100, 0.0, 10.0);
my.pho_TrkIso = new TH1D("my.pho_TrkIso","Photon Track Iso", 100, 0.0, 10.0);
my.evtMetVsTime = new TH2D("my.evtMetVsTime", "MET Vs Time'", 200, 0, 1000, 100, -25.0, 25.0);
my.evtMetVsEta = new TH2D("my.evtMetVsEta", "MET Vs #eta_{#gamma}'", 200, 0, 1500, 170, -3.2, 3.2);
my.evtMetVsPhi = new TH2D("my.evtMetVsPhi", "MET Vs #phi_{#gamma}'", 200, 0, 1500, 360, -3.2, 3.2);
my.evtMetVsPt = new TH2D("my.evtMetVsPt", "MET Vs Pt_{#gamma}'", 200, 0,1500, 100, 0.0, 1000.0);
// Photon 1D plots
my.phoCSCtime = new TH1D("my.phoCSCtime","Time of CSC #gamma", 1000, -100.0, 100.0);
my.phonBC = new TH1D("my.phonBC","Seed BC in #gamma SC", 100, 0.0, 100.0);
my.phonXtalEB = new TH1D("my.phonXtalEB","No. Of Crys in #gamma SC ", 100, 0.0, 100.0);
my.pho_SSXEB = new TH1D("my.pho_SSXEB","seed SwissX Of #gamma SC ", 100, -10.0, 10.0);
my.pho_sigmaIeta = new TH1D("my.pho_sigmaIeta","#sigma^{#gamma}_{i#eta,i#eta}", 100, 0.0, 10.0);
my.phoetaVsphi = new TH2D("my.phoetaVsphi","#eta_{#gamma} Vs #phi_{#gamma} ", 100, -3.0, 3.0, 100, -3.50, 3.50);
my.pho_timeVsEtaEB = new TH2D("my.pho_timeVsEtaEB","ECAL Time^{#gamma} Vs #eta EB",170, -3.2, 3.2, 100, -25.0, 25.0);
my.pho_timeVsEtaEE = new TH2D("my.pho_timeVsEtaEE","ECAL Time^{#gamma} Vs #eta EE",170, -3.2, 3.2, 100, -25.0, 25.0);
my.pho_timeVsPhiEB = new TH2D("my.pho_timeVsPhiEB","ECAL Time^{#gamma} Vs #phi EB",360, -3.2, 3.2, 100, -25.0, 25.0);
my.pho_timeVsPhiEE = new TH2D("my.pho_timeVsPhiEE","ECAL Time^{#gamma} Vs #phi EE",360, -3.2, 3.2, 100, -25.0, 25.0);
my.pho_timeEB = new TH1D("my.pho_timeEB", "ECAL Time^{#gamma}(ns) EB", 100, -25.0, 25.0);
my.phoTimeNegPhi_3WinEB = new TH1D("my.phoTimeNegPhi_3WinEB", "ECAL Time^{#gamma}, #phi in[-3, -2] EB", 100, -25.0, 25.0);
my.phoTimePosPhi_3WinEB = new TH1D("my.phoTimePosPhi_3WinEB", "ECAL Time^{#gamma}, #phi in[2, 3] EB", 100, -25.0, 25.0);
my.phoTimePhi_ZeroWinEB = new TH1D("my.phoTimePhi_ZeroWinEB", "ECAL Time^{#gamma}, #phi in[-0.5, 0.5] EB",100, -25.0, 25.0);
my.pho_timeEE = new TH1D("my.pho_timeEE", "ECAL Time^{#gamma}(ns) EE", 100, -25.0, 25.0);
my.pho_sminorEB = new TH1D("my.pho_sminorEB", "SMinor EB", 100, 0,5);
my.pho_smajorEB = new TH1D("my.pho_smajorEB", "SMajor EB", 100, 0,5);
my.pho_sigmaEtaEB = new TH1D("my.pho_sigmaEtaEB", "#sigma^{#gamma}_{#eta,#eta} EB", 20,0, 10);
my.pho_sminorEE = new TH1D("my.pho_sminorEE", "SMinor EE", 20, 0,5);
my.pho_smajorEE = new TH1D("my.pho_smajorEE", "SMajor EE", 20,0, 5);
my.pho_sigmaEtaEE = new TH1D("my.pho_sigmaEtaEE", "#sigma^{#gamma}_{#eta,#eta} EE", 20,0, 10);
my.pho_timeVsCSCdphi = new TH2D("my.pho_timeVsCSCdphi","ECAL Time^{#gamma} Vs CSC |#delta #phi|",100, -3.20, 3.20, 100, -25.0, 25.0);
my.pho_CSCdphi = new TH1D("my.pho_CSCdphi","|#delta #phi|(#gmma, CSCSeg)", 100, -3.20, 3.20);
my.pho_num_jetEB = new TH1D("my.pho_num_jetEB", "Jets Multiplicity EB ", 20, 0, 20);
my.pho_num_phoEB = new TH1D("my.pho_num_phoEB", "Photon Multiplicity EB ", 10, 0, 10);
my.pho_num_jetEE = new TH1D("my.pho_num_jetEE", "Jet Multiplicity EE ", 20, 0, 20);
my.pho_num_phoEE = new TH1D("my.pho_num_phoEE", "Photon Multiplicity EE ", 10, 0, 10);
my.pho_LN2timeEB = new TH1D("my.pho_LN2timeEB", "ECAL Time^{#gamma} < -2ns EB", 100, -25.0, 25.0);
my.pho_LN2timeEE = new TH1D("my.pho_LN2timeEE", "ECAL Time^{#gamma} < -2ns EE", 100, -25.0, 25.0);
my.pho_LN2GP2timeEB = new TH1D("my.pho_LN2GP2timeEB", "-2ns < ECAL Time^{#gamma} < 2ns EB", 100, -25.0, 25.0);
my.pho_LN2GP2timeEE = new TH1D("my.pho_LN2GP2timeEE", "-2ns < ECAL Time^{#gamma} < 2ns EE", 100, -25.0, 25.0);
my.pho_GP2timeEB = new TH1D("my.pho_GP2timeEB", "ECAL Time^{#gamma} > 2ns EB", 100, -25.0, 25.0);
my.pho_GP2timeEE = new TH1D("my.pho_GP2timeEE", "ECAL Time^{#gamma} > 2ns EE", 100, -25.0, 25.0);
my.pho_ATG2_smajorEB = new TH1D("my.pho_ATG2_smajorEB", "SMajor EB, |Time| > 2ns", 100,0, 5);
my.pho_ATG2_smajorEE = new TH1D("my.pho_ATG2_smajorEE", "SMajor EE, |Time| > 2ns", 100,0, 5);
my.pho_ATG2_sminorEB = new TH1D("my.pho_ATG2_sminorEB", "SMinor EB, |Time| > 2ns", 100, 0,5);
my.pho_ATG2_sminorEE = new TH1D("my.pho_ATG2_sminorEE", "SMinor EE, |Time| > 2ns", 100, 0,5);
my.pho_ATG2_sigmaEtaEB = new TH1D("my.pho_ATG2_sigmaEtaEB", "#sigma_{#eta,#eta} EB |Time| > 2ns", 20,0, 10);
my.pho_ATG2_sigmaEtaEE = new TH1D("my.pho_ATG2_sigmaEtaEE", "#sigma_{#eta,#eta} EE |Time| > 2ns", 20,0, 10);
/*HEHalo stuff */
my.HEhalo_timeVsHEdphi = new TH2D("my.HEhalo_timeVsHEdphi","Photon Time Vs #delta #phi(HE, #gamma)",100, -3.20, 3.20, 100, -25.0, 25.0);
my.HEhalo_timeVsHEGdphi = new TH2D("my.HEhalo_timeVsHEGdphi","Photon Time Vs #delta #phi(HE, #gamma) Def2",100, -3.20, 3.20, 100, -25.0, 25.0);
my.HEhalo_timeVsHEradius = new TH2D("my.HEhalo_timeVsHEradius","Photon Time Vs HE Radius",100, 0.0, 50.0, 100, -25.0, 25.0);
my.HEhalo_timeVsHErho = new TH2D("my.HEhalo_timeVsHErho","Photon Time Vs HE #rho",100, -10.0, 10.0, 100, -25.0, 25.0);
my.HEtimeVsPhophi = new TH2D("my.HEtimeVsPhophi","HE Time Vs Photon #phi",100, -3.50, 3.50, 200, -100.0, 100.0);
my.HEtimeVsPhoeta = new TH2D("my.HEtimeVsPhoeta","HE Time Vs Photon #eta",100, -3.0, 3.0, 500, -100.0, 100.0);
my.HEhalo_timeVsHEdphiEB = new TH2D("my.HEhalo_timeVsHEdphiEB","Photon Time Vs HE-Pho #delta #phi EB",100, -3.50, 3.50, 100, -25.0, 25.0);
my.HEhalo_timeVsHEdphiEE = new TH2D("my.HEhalo_timeVsHEdphiEE","Photon Time Vs HE-Pho #delta #phi EE",100, -3.50, 3.50, 100, -25.0, 25.0);
my.HEtime = new TH1D("my.HEtime","HE Time",500, -100.0, 100.0);
my.TimeREEHE = new TH1D("my.TimeREEHE","Ratio EE Over HE Time",500, -100.0, 100.0);
my.HEradius = new TH1D("my.HEradius","HE Radius",100, 0.0, 50.0);
my.HEenergy = new TH1D("my.HEenergy","HE Energy",10000, 0.0, 4000.0);
my.HErho = new TH1D("my.HErho","HE #rho",100, 0.0, 50.0);
my.HEdphi = new TH1D("my.HEdphi","#delta #phi{HE, #gamma}",100, -3.50, 3.50);
my.HEdphiEB = new TH1D("my.HEdphiEB","#delta #phi{HE, #gamma} EB",100, -3.50, 3.50);
my.HEdphiEE = new TH1D("my.HEdphiEE","#delta #phi{HE, #gamma} EE",100, -3.50, 3.50);
my.halo_phodrho = new TH1D("my.halo_phodrho"," #delta#rho of 0.4 Halo Muon & Photon",100, 0.0, 10.0);
my.halo_phodphi = new TH1D("my.halo_phodphi"," #delta#phi of 0.4 Muon & Photon",100, -3.50, 3.50);
my.pho_halodphi = new TH1D("my.pho_halodphi"," #delta#phi of CSC Seg & Photon",100, -3.50, 3.50);
my.pho_halodrho = new TH1D("my.pho_halodrho"," #delta R of CSC Seg & Photon",100, -3.50, 3.50);
// Halo Plots
Hg.halo_etaVsphi = new TH2D("Hg.halo_etaVsphi","Halo #gamma #eta Vs #phi",100, -3.0, 3.0, 100, -3.50, 3.50);
Hg.halo_phiVsStime = new TH2D("Hg.halo_phiVsStime","Halo Photon Seed Xtal Time Vs Phi",100, -3.5, 3.5, 500, -25.0, 25.0);
Hg.halo_phiVsBCtime = new TH2D("Hg.halo_phiVsBCtime","Halo Photon W.Ave BC Time Vs Phi",100, -3.5, 3.5, 250, -25.0, 25.0);
Hg.halo_phiVsSCtime = new TH2D("Hg.halo_phiVsSCtime","Halo Photon W.Ave SC Time Vs Phi",100, -3.5, 3.5, 500, -25.0, 25.0);
Hg.halo_etaVsStime = new TH2D("Hg.halo_etaVsStime","Halo Photon Eta Vs Seed Xtal Time",100, -3.0, 3.0, 500, -25.0, 25.0);
Hg.halo_etaVsBCtime = new TH2D("Hg.halo_etaVsBCtime","Halo Photon Eta Vs W.Ave BC Time",100, -3.0, 3.0, 500, -25.0, 25.0);
Hg.halo_etaVsSCtime = new TH2D("Hg.halo_etaVsSCtime","Halo Photon Eta Vs W.Ave SC Time",100, -3.0, 3.0, 500, -25.0, 25.0);
Hg.halo_rhoVsphi = new TH2D("Hg.halo_rhoVsphi","Halo Photon #rho Vs #phi",100, 0.0, 5.0, 100, -3.5, 3.5);
// 1 d plots
Hg.halo_nBC = new TH1D("Hg.halo_nBC","No Basic Clusters of Halo Photon",100, 0.0, 100.0);
Hg.halo_nXtalEB = new TH1D("Hg.halo_nXtalEB","No Crys in Halo Photon",100, 0.0, 100.0);
Hg.halo_SSXEB = new TH1D("Hg.halo_SSXEB","SeedCrys SwissX in Halo Photon SC",100, -5.0, 5.0);
Hg.halo_rho = new TH1D("Hg.halo_rho","Halo #gamma #rho",100, 0.0, 10.0);
Hg.halo_phi = new TH1D("my.halo_phi","Halo #gamma #phi",100, -3.50, 3.50);
Hg.halo_sigmaIeta = new TH1D("Hg.halo_sigmaIeta","#sigma_{i#eta,i#eta} of Halo Photon",1000, 0.0, 10.0);
// Hg.halo_phonBCratio = new TH1D("Hg.halo_phonBCratio","Ratio of No. Halo Photon to Photon Basic Clusters",100, 0.0, 10.0);
// Hg.halo_phonXtalEBratio = new TH1D("Hg.halo_phonXtalEBratio","Ratio of Halo Photon to Photon No. Crys",100, 0.0, 10.0);
Hg.halo_seedTime = new TH1D("Hg.halo_seedTime","ECAL Time^{Halo #gamma} ",100, -25.0, 25.0);
Hg.halo_wavBCtime = new TH1D("Hg.halo_wavBCtime","BC WAve Time^{Halo #gamma}",100, -25.0,25.0);
Hg.halo_wavSCtime = new TH1D("Hg.halo_wavSCtime","SC WAve Time^{Halo #gamma}",100, -25.0, 25.0);
Hg.halo_timeVsEtaEB = new TH2D("Hg.halo_timeVsEtaEB","ECAL Time^{Halo #gamma} Vs #eta EB",100, -3.2, 3.2, 100, -25.0, 25.0);
Hg.halo_timeVsEtaEE = new TH2D("Hg.halo_timeVsEtaEE","ECAL Time^{Halo #gamma} Vs #eta EE",100, -3.2, 3.2, 100, -25.0, 25.0);
Hg.halo_timeVsPhiEB = new TH2D("Hg.halo_timeVsPhiEB","ECAL Time^{Halo #gamma} Vs #phi EB",100, -3.2, 3.2, 100, -25.0, 25.0);
Hg.halo_timeVsPhiEE = new TH2D("Hg.halo_timeVsPhiEE","ECAL Time^{Halo #gamma}Vs #phi EE",100, -3.2, 3.2, 100, -25.0, 25.0);
Hg.halo_timeEB = new TH1D("Hg.halo_timeEB", "ECAL Time^{Halo #gamma}(ns) EB", 100, -25.0, 25.0);
Hg.halo_timeEE = new TH1D("Hg.halo_timeEE", "ECAL Time^{Halo #gamma}(ns) EE", 100, -25.0, 25.0);
Hg.halo_sminorEB = new TH1D("Hg.halo_sminorEB", "SMinor^{Halo #gamma} EB", 100, 0,5);
Hg.halo_smajorEB = new TH1D("Hg.halo_smajorEB", "SMajor^{Halo #gamma} EB", 100, 0,5);
Hg.halo_sigmaEtaEB = new TH1D("Hg.halo_sigmaEtaEB", "#sigma^{Halo #gamma}_{#eta,#eta} EB", 20,0, 10);
Hg.halo_sminorEE = new TH1D("Hg.halo_sminorEE", "SMinor^{Halo #gamma} EE", 20, 0,5);
Hg.halo_smajorEE = new TH1D("Hg.halo_smajorEE", "SMajor^{Halo #gamma} EE", 20,0, 5);
Hg.halo_sigmaEtaEE = new TH1D("Hg.halo_sigmaEtaEE", "#sigma^{Halo #gamma}_{#eta,#eta} EB", 20,0, 10);
Hg.halo_timeVsCSCdphi = new TH2D("Hg.halo_timeVsCSCdphi","ECAL Time^{Halo #gamma} Vs CSCSeg #delta #phi|",100, -3.20, 3.20, 100, -25.0, 25.0);
Hg.halo_CSCdphi = new TH1D("Hg.halo_CSCdphi","|#delta #phi|^{Halo #gamma}",100, -3.20, 3.20);
Hg.halo_num_jetEB = new TH1D("Hg.halo_num_jetEB", "Jets Multiplicity^{Halo #gamma Events} EB", 20, 0, 20);
Hg.halo_num_phoEB = new TH1D("Hg.halo_num_phoEB", "Photon Multiplicity^{Halo #gamma Events} EB", 10, 0, 10);
Hg.halo_num_jetEE = new TH1D("Hg.halo_num_jetEE", "Jet Multiplicity^{Halo #gamma Events} EE", 20, 0, 20);
Hg.halo_num_phoEE = new TH1D("Hg.halo_num_phoEE", "Photon Multiplicity^{Halo #gamma Events}EE", 10, 0, 10);
Hg.halo_LN2timeEB = new TH1D("Hg.halo_LN2timeEB", "ECAL Time^{Halo #gamma} < -2ns EB", 100, -25.0, 25.0);
Hg.halo_LN2timeEE = new TH1D("Hg.halo_LN2timeEE", "ECAL Time^{Halo #gamma} < -2ns EE", 100, -25.0, 25.0);
Hg.halo_LN2GP2timeEB = new TH1D("Hg.halo_LN2GP2timeEB", "-2ns < ECAL Time^{Halo #gamma} < 2ns EB", 100, -25.0, 25.0);
Hg.halo_LN2GP2timeEE = new TH1D("Hg.halo_LN2GP2timeEE", "-2ns < ECAL Time^{Halo #gamma} < 2ns EE", 100, -25.0, 25.0);
Hg.halo_GP2timeEB = new TH1D("Hg.halo_GP2timeEB", "ECAL Time > 2ns EB", 100, -25.0, 25.0);
Hg.halo_GP2timeEE = new TH1D("Hg.halo_GP2timeEE", "ECAL Time > 2ns EE", 100, -25.0, 25.0);
Hg.halo_ATG2_smajorEB = new TH1D("Hg.halo_ATG2_smajorEB", "SMajor^{Halo #gamma} EB |Time| > 2ns", 100,0, 5);
Hg.halo_ATG2_smajorEE = new TH1D("Hg.halo_ATG2_smajorEE", "SMajor^{Halo #gamma} EE |Time| > 2ns", 100,0, 5);
Hg.halo_ATG2_sminorEB = new TH1D("Hg.halo_ATG2_sminorEB", "SMinor^{Halo #gamma} EB |Time| > 2ns", 100, 0,5);
Hg.halo_ATG2_sminorEE = new TH1D("Hg.halo_ATG2_sminorEE", "SMinor^{Halo #gamma} EE |Time| > 2ns", 100, 0,5);
Hg.halo_ATG2_sigmaEtaEB = new TH1D("Hg.halo_ATG2_sigmaEtaEB", "#sigma^{Halo #gamma}_{#eta,#eta} EB |Time| > 2ns", 20,0, 10);
Hg.halo_ATG2_sigmaEtaEE = new TH1D("Hg.halo_ATG2_sigmaEtaEE", "#sigma^{Halo #gamma}_{#eta,#eta} EE |Time| > 2ns", 20,0, 10);
Hg.halo_TrksSbeta = new TH1D("Hg.halo_TrksSbeta","Halo Tracks With Small Beta", 100, 0.0, 100);
Hg.halo_nhalosegs = new TH1D("Hg.halo_nhalosegs","Number Halo Segments",100, 0.0, 10.0);
Hg.halo_nOThits = new TH1D("Hg.halo_nOThits","Number of OutOfTime Halo Hits",100, 0.0, 100);
Hg.halo_nhalotrk = new TH1D("Hg.halo_nhalotrk","Number of Halo Track",100, 0.0, 100);
// Define Large Time Events
Lt.ltvtxX = new TH1D("Lt.ltvtxX","-10.0 < PhotonTime(ns) < 10.0 X Vertex Distribution", 100, -25.0, 25.0);
Lt.ltvtxY = new TH1D("Lt.ltvtxY","-10.0 < PhotonTime(ns) < 10.0 Y Vertex Distribution", 500, -25.0, 25.0);
Lt.ltvtxZ = new TH1D("Lt.ltvtxZ","-10.0 < PhotonTime(ns) < 10.0 Z Vertex Distribution", 500, -25.0, 25.0);
Lt.ltnjets = new TH1D("Lt.ltnjets","-10.0 < PhotonTime(ns) < 10.0 Number of Jets", 20, 0.0, 20.0);
Lt.ltnpho = new TH1D("Lt.ltnpho","-10.0 < PhotonTime(ns) < 10.0 Number of #gamma", 10, 0.0, 10.0);
Lt.ltEvtmet = new TH1D("Lt.ltEvtmet","-10.0 < PhotonTime(ns) < 10.0 MET Distribution", 200, 0.0, 2500.0);
Lt.ltEvtpt = new TH1D("Lt.ltEvtpt","-10.0 < PhotonTime(ns) < 10.0 Leading #gamma Pt Distribution", 200, 0.0, 2250.0);
Lt.ltphoE = new TH1D("Lt.ltphoE","-10.0 < PhotonTime(ns) < 10.0 Leading #gamma Energy Distribution", 400, 0.0, 4000.0);
Lt.lteta = new TH1D("Lt.lteta","-10.0 < PhotonTime(ns) < 10.0 Leading #gamma #eta Distribution", 100, -3.0, 3.0);
Lt.ltphi = new TH1D("Lt.ltphi","-10.0 < PhotonTime(ns) < 10.0 Leading #gamma #phi Distribution", 100, -4.0, 4.0);
Lt.ltnvtx = new TH1D("Lt.ltnvtx","-10.0 < PhotonTime(ns) < 10.0 Number of Vertices", 25, 0.0, 50.0);
// Define Single Vertex Events
Sv.svtxX = new TH1D("Sv.svtxX","X Single Vertex Distribution", 1000, -25.0, 25.0);
Sv.svtxY = new TH1D("Sv.svtxY","Y Single Vertex Distribution", 1000, -25.0, 25.0);
Sv.svtxZ = new TH1D("Sv.svtxZ","Z Single Vertex Distribution", 1000, -25.0, 25.0);
Sv.svtxnjets = new TH1D("Sv.svtxnjets","Number of Jets in Single Vertex Events", 20, 0.0, 20.0);
Sv.svtxnpho = new TH1D("Sv.svtxnpho","Number of #gamma in Single Vertetx Events", 10, 0.0, 10.0);
Sv.svtxEvtmet = new TH1D("Sv.svtxEvtmet","MET Distribution in Single Vertex Events", 200, 0.0, 2500.0);
Sv.svtxEvtpt = new TH1D("Sv.svtxEvtpt","Leading #gamma Pt Distribution in Single Vertex Events", 200, 0.0, 2500.0);
Sv.svtxeta = new TH1D("Sv.svtxeta","Leading #gamma #eta Distribution in Single Vertex Events", 100, -3.0, 3.0);
Sv.svtxphi = new TH1D("Sv.svtxtphi","Leading #gamma #phi Distribution in Single Vertex Events", 100, -4.0, 4.0);
Sv.svtxnvtx = new TH1D("Sv.svtxnvtx","Number of Vertices ", 50, 0.0, 50.0);
// Seed Time Vs nVtx dists
my.tV1 = new TH1D("my.tV1", "0<= nVtx< 5 Photon ( Seed Xtal) Timing Dist", 500, -25.0, 25.0);
my.tV2 = new TH1D("my.tV2", "5< nVtx <= 10 Photon( Seed Xtal) Timing Dist", 500, -25.0, 25.0);
my.tV3 = new TH1D("my.tV3", "10 < nVtx <=15 Photon( Seed Xtal) Timing Dist", 500, -25.0, 25.0);
my.tV4 = new TH1D("my.tV4", "15 < nVtx <= 20 Photon( Seed Xtal) Timing Dist", 500, -25.0, 25.0);
my.tV5 = new TH1D("my.tV5", "20< nVtx <=25 Photon(Seed Xtal) Timing(Seed Xtal) Dist", 500, -25.0, 25.0);
my.tV6 = new TH1D("my.tV6", "25 < nVtx <=30 Photon(Seed Xtal) Timing Dist", 500, -25.0, 25.0);
my.tV7 = new TH1D("my.tV7", "30 < nVtx <= 35 Photon(Seed Xtal) Timing Dist", 500, -25.0, 25.0);
// W. AVe SC
my.tV12 = new TH1D("my.tV12", "0<= nVtx <= 5 Photon(W. Ave SC) Timing Dist", 500, -25.0, 25.0);
my.tV13 = new TH1D("my.tV13", "5 < nVtx<=10 Photon(W.Ave SC) Timing Dist", 500, -25.0, 25.0);
my.tV14 = new TH1D("my.tV14", "10 < nVtx<= 15 Photon(W. AVe SC) Timing Dist", 500, -25.0, 25.0);
my.tV15 = new TH1D("my.tV15", "15 < nVtx <= 20 Photon(W. Ave SC) Timing Dist", 500, -25.0, 25.0);
my.tV16 = new TH1D("my.tV16", "20 < nVtx <= 25 Photon(W. Ave SC) Timing Dist", 500, -25.0, 25.0);
my.tV17 = new TH1D("my.tV17", "25 < nVtx <= 30 Photon(W. Ave SC) Timing Dist", 500, -25.0, 25.0);
my.tV18 = new TH1D("my.tV18", "30 < nVtx <= 35 Photon(W. AVe SC) Timing Dist", 500, -25.0, 25.0);
my.py13 = new TH1D("my.py13", "45 < nVtx <= 55 Photon(W. Ave Seed BC) Timing Dist", 500, -25.0, 25.0);
my.py14 = new TH1D("my.py14", "35 < nVtx <= 45 Photon(W. Ave Seed BC) Timing Dist", 500, -25.0, 25.0);
my.py15 = new TH1D("my.py15", "24 < nVtx <= 35 Photon(W. Ave Seed BC) Timing Dist", 500, -25.0, 25.0);
my.py16 = new TH1D("my.py16", "18 < nVtx <= 24 Photon(W. Ave Seed BC) Timing Dist", 500, -25.0, 25.0);
my.py17 = new TH1D("my.py17", "12 < nVtx <= 18 Photon(W. Ave Seed BC) Timing Dist", 500, -25.0, 25.0);
my.py18 = new TH1D("my.py18", "6 < nVtx <= 12 Photon(W. Ave Seed BC) Timing Dist", 500, -25.0, 25.0);
my.py19 = new TH1D("my.py19", "0 <= nVtx <= 6 Photon(W. Ave Seed BC) Timing Dist", 500, -25.0, 25.0);
// Background Estimation Photon
//
//
my.eb_ptime = new TH1D("my.eb_ptime", "EB Time", 50, -25.0, 0.0 );
my.eb_hptime = new TH1D("my.eb_hptime", "EB Halo #gamma Time", 50, -25.0, 0.0 );
my.eb_spike_ptime = new TH1D("my.eb_spike_ptime", "EB Spike #gamma Time", 50, -25.0, 0.0 );
my.eb_qcd_ptime = new TH1D("my.eb_qcd_ptime", "EB QCD #gamma Time", 50, -25.0, 0.0 );
my.eb_low_metTime = new TH1D("my.eb_low_metTime", "ECAL Time, MET < 60.0 GeV EB", 50, -25.0, 0.0);
my.eb_high_metTime = new TH1D("my.eb_high_metTime", "ECAL Time MET > 60.0 GeV EB ", 50, -25.0, 0.0);
my.eb_pSWX = new TH1D("my.eb_pSWX", "Seed Xtal SwissCross of #gamma SC", 100, -5.0, 10);
my.eb_hpSWX = new TH1D("my.eb_hpSWX", "Seed Xtal Swiss X of Halo #gamma SC", 100, -5.0, 10);
my.eb_spike_pSWX = new TH1D("my.eb_spike_pSWX", "Seed Xtal SwissCross of Spike ", 100, -5.0, 10);
my.eb_qcd_pSWX = new TH1D("my.eb_qcd_pSWX", "Seed Xtal SwissCross of QCD #gamma SC", 100, -5.0, 10);
my.eb_pnXtal = new TH1D("my.eb_pnXtal", "No. Xtals #gamma SC", 50, 0.0, 50.0);
my.eb_hpnXtal = new TH1D("my.eb_hpnXtal", "No. Xtals Halo #gamma SC", 50, 0.0, 50.0);
my.eb_spike_pnXtal = new TH1D("my.eb_spike_pnXtal", "No. Xtals of Spike ", 50, 0.0, 50.0);
my.eb_qcd_pnXtal = new TH1D("my.eb_qcd_pnXtal", "No. Xtals of QCD #gamma SC", 50, 0.0, 50.0);
my.eb_pcscdPhi = new TH1D("my.eb_pcscdPhi", "CSC-#gamma |#delta #phi|", 100, 0.0, 5.0);
my.eb_hpcscdPhi = new TH1D("my.eb_hpcscdPhi", "CSC-#gamma |#delta #phi|", 100, 0.0, 5.0);
my.eb_spike_pcscdPhi = new TH1D("my.eb_spike_pcscdPhi", "CSC-#gamma |#delta #phi|", 100, 0.0, 5.0);
my.eb_qcd_pcscdPhi = new TH1D("my.eb_qcd_pcscdPhi", "CSC-#gamma |#delta #phi|", 100, 0.0, 5.0);
my.eb_met0 = new TH1D("my.eb_met0", "MET of 0-Jet Events", 4000, 0 , 4000);
my.eb_met1 = new TH1D("my.eb_met1", "MET of 1-Jet Events", 4000, 0 , 4000);
my.eb_met2 = new TH1D("my.eb_met2", "MET of 2-Jet Events", 4000, 0 , 4000);
my.eb_met3 = new TH1D("my.eb_met3", "MET of >=3-Jet Events", 4000, 0 , 4000);
my.eb_time0 = new TH1D("my.eb_time0", "Time of 0-Jet Events", 100, -25.0 ,25.0);
my.eb_time1 = new TH1D("my.eb_time1", "Time of 1-Jet Events", 100, -25.0 ,25.0);
my.eb_time2 = new TH1D("my.eb_time2", "Time of 2-Jet Events", 100, -25.0 , 25.0);
my.eb_time3 = new TH1D("my.eb_time3", "Time of >= 3-Jet Events", 100,-25.0, 25.0);
my.eb_reg = new TH2D("my.eb_reg", "MET Vs ECAL Time", 100, 0 , 1500, 100, -25.0, 25.0);
my.eb_regA = new TH2D("my.eb_regA", "MET Vs ECAL Time RegA", 100, 0 , 1500, 100, -25.0, 25.0);
my.eb_regB = new TH2D("my.eb_regB", "MET Vs ECAL Time RegB", 100, 0 , 1500, 100, -25.0, 25.0);
my.eb_regC = new TH2D("my.eb_regC", "MET Vs ECAL Time RegC", 100, 0 , 1500, 100, -25.0, 25.0);
my.eb_regD = new TH2D("my.eb_regD", "MET Vs ECAL Time RegD", 100, 0 , 1500, 100, -25.0, 25.0);
my.eb_regAprime = new TH2D("my.eb_regAprime", "MET Vs ECAL Time Reg A'", 100, 0 , 1500, 100, -25.0, 25.0);
my.eb_regBprime = new TH2D("my.eb_regBprime", "MET Vs ECAL Time Reg B'", 100, 0 , 1500, 100, -25.0, 25.0);
my.eb_pPt = new TH1D("my.eb_pPt", "Pt_{#gamma} of 0-Jet Events", 4000, 0 , 4000);
my.eb_hpPt = new TH1D("my.eb_hpPt", "Pt_{Halo #gamma} of 0-Jet Events", 4000, 0 , 4000);
my.eb_spike_pPt = new TH1D("my.eb_spike_pPt", "Pt_{Spike #gamma} of 0-Jet Events", 4000, 0 , 4000);
my.eb_qcd_pPt = new TH1D("my.eb_qcd_pPt", "Pt_{QCD #gamma} of 0-Jet Events", 4000, 0 , 4000);
my.eb_pMET = new TH1D("my.eb_pMET", "MET_{#gamma} of 0-Jet Events", 4000, 0 , 4000);
my.eb_hpMET = new TH1D("my.eb_hpMET", "MET_{Halo #gamma} of 0-Jet Events", 4000, 0 , 4000);
my.eb_spike_pMET = new TH1D("my.eb_spike_pMET", "MET_{Spike #gamma} of 0-Jet Events", 4000, 0 , 4000);
my.eb_qcd_pMET = new TH1D("my.eb_qcd_pMET", "MET_{QCD #gamma} of 0-Jet Events", 4000, 0 , 4000);
my.eb_pNjets = new TH1D("my.eb_pNjets", "No. 0f Jets", 20, 0, 20);
my.eb_hpNjets = new TH1D("my.eb_hpNjets", "No. 0f Jets Halo #gamma Event", 20, 0, 20);
my.eb_spike_pNjets = new TH1D("my.eb_spike_pNjets", "No. 0f Jets in Spike #gamma Event", 20, 0, 20);
my.eb_qcd_pNjets = new TH1D("my.eb_qcd_hpNjets", "No. 0f Jets QCD #gamma Event", 20, 0, 20);
my.eb_qcd_pNjets = new TH1D("my.eb_qcd_pNjets", "No. 0f Jets QCD #gamma Event", 20, 0, 20);
//Spike & Halo reg
my.eta_gVstimeEB = new TH2D("my.eta_gVstimeEB","#eta_{#gamma} Vs Time EB",100, -3.2, 3.2, 100, -25.0, 25.0) ;
my.pho_ptVscscdphiEB = new TH2D("my.pho_ptVscscdphiEB","Pt_{#gamma} Vs #delta #phi(CSCSeg,#gamma) EB",100, 0.0, 3.5, 200, 0.0, 4000.0) ;
my.n_gEB = new TH1D("my.n_gEB", "No. 0f #gamma EB ", 20, 0, 20);
my.n_jEB = new TH1D("my.n_jEB", "No. 0f Jets EB ", 20, 0, 20);
my.g_nCrysEB = new TH1D("my.g_nCrysEB", "No. 0f Crys EB ",100, 0, 50.0);
my.g_timeEB = new TH1D("my.g_timeEB", "Time_{#gamma} EB ", 500, -50, 50);
my.g_cscdphiEB = new TH1D("my.g_cscdphiEB", "#delta #phi(CSCSeg, #gamma) EB", 100, 0, 3.5);
my.g_ptEB = new TH1D("my.g_ptEB", "Pt_{#gamma} EB ", 4000, 0, 4000);
my.g_metEB = new TH1D("my.g_metEB", "E_{T}^{Miss} EB ", 4000, 0, 4000);
//Halo
my.eta_hVstimeEB = new TH2D("my.eta_hVstimeEB","#eta_{Halo #gamma} Vs Time EB",100, -3.2, 3.2, 100, -25.0, 25.0);
my.n_hEB = new TH1D("my.n_hEB", "No. of Halo #gamma EB ", 20, 0, 20);
my.n_jhEB = new TH1D("my.n_jhEB", "No. of Jets EB ", 20, 0, 20);
my.h_nCrysEB = new TH1D("my.h_nCrysEB", "No. of Crys EB ",100, 0, 50.0);
my.h_timeEB = new TH1D("my.h_timeEB", "Time_{Halo #gamma} EB ", 500, -50, 50);
my.h_cscdphiEB = new TH1D("my.h_cscdphiEB", "#delta #phi(CSCSeg, #gamma) EB", 100, 0, 3.5);
my.h_ptEB = new TH1D("my.h_ptEB", "Pt_{Halo #gamma} EB ", 4000, 0, 4000);
my.h_metEB = new TH1D("my.h_metEB", "E_{T}^{Miss} EB ", 4000, 0, 4000);
//Spikes
my.eta_spkVstimeEB = new TH2D("my.eta_spkVstimeEB","#eta_{Spike #gamma} Vs Time EB",100, -3.2, 3.2, 100, -25.0, 25.0);
my.n_spkEB = new TH1D("my.n_spkEB", "No. 0f Spike #gamma EB ", 20, 0, 20);
my.n_jspkEB = new TH1D("my.n_jspkEB", "No. 0f Jets EB ", 20, 0, 20);
my.spk_nCrysEB = new TH1D("my.spk_nCrysEB", "No. 0f Crys EB ",100, 0, 50);
my.spk_timeEB = new TH1D("my.spk_timeEB", "Time_{#gamma} EB ", 100, -15, 15);
my.spk_cscdphiEB = new TH1D("my.spk_cscdphiEB", "#delta #phi(CSCSeg, #gamma) EB", 100, 0, 3.5);
my.spk_ptEB = new TH1D("my.spk_ptEB", "Pt_{#gamma} EB ", 4000, 0, 4000);
my.spk_metEB = new TH1D("my.spk_metEB", "E_{T}^{Miss} EB ", 4000, 0, 4000);
//Spikes in Photon Reg
my.eta_spkInphoVstimeEB = new TH2D("my.eta_spkInphoVstimeEB","Spike in Photon Region #eta_{Spike} Vs Time EB",100, -3.2, 3.2, 100, -25.0, 25.0);
my.n_spkInphoEB = new TH1D("my.n_spkInphoEB", "No. 0f Spike In Photon Reg EB ", 20, 0, 20);
my.n_jspkInphoEB = new TH1D("my.n_jspkInphoEB", "No. 0f Jets EB ", 20, 0, 20);
my.spkInpho_nCrysEB = new TH1D("my.spkInpho_nCrysEB", "No. 0f Crys EB ",50, 0, 50);
my.spkInpho_timeEB = new TH1D("my.spkInpho_timeEB", "Time_{#gamma} EB ", 100, -25, 25);
my.spkInpho_cscdphiEB = new TH1D("my.spkInpho_cscdphiEB", "#delta #phi(CSCSeg, #gamma) EB", 100, 0, 3.5);
my.spkInpho_ptEB = new TH1D("my.spkInpho_ptEB", "Pt_{#gamma} EB ", 4000, 0, 4000);
my.spkInpho_metEB = new TH1D("my.spkInpho_metEB", "E_{T}^{Miss} EB ", 4000, 0, 4000);
//EEp & EEm
my.EEP_phoTimeVsRho = new TH2D("my.EEP_phoTimeVsRho", "#rho_{#gamma} Vs Time(ns) +EE", 100, 0.0, 100.0, 100, -25.0, 25.0);
my.EEM_phoTimeVsRho = new TH2D("my.EEM_phoTimeVsRho", "#rho_{#gamma} Vs Time(ns) -EE ",100, 0.0, 100.0, 100, -25.0, 25.0);
my.EEP_phoTimeVsR = new TH2D("my.EEP_phoTimeVsR", "Radius From Z_{#gamma} Vs Time(ns) +EE ",100, 0.0, 100.0, 100, -25.0, 25.0);
my.EEM_phoTimeVsR = new TH2D("my.EEM_phoTimeVsR", "Radius From Z_{#gamma} Vs Time(ns) -EE ",100, 0.0, 100.0, 100, -25.0, 25.0);
my.EEP_phoTimeVsPhi = new TH2D("my.EEP_phoTimeVsPhi", "#phi_{#gamma} Vs Time(ns) +EE ",100, -3.2, 3.2, 100, -25.0, 25.0);
my.EEM_phoTimeVsPhi = new TH2D("my.EEM_phoTimeVsPhi", "#phi_{#gamma} Vs Time(ns) -EE ",100, -3.2, 3.2, 100, -25.0, 25.0);
my.EEP_phoRho = new TH1D("my.EEP_phoRho", "#rho_{#gamma} +EE ",100, 0.0, 100.0);
my.EEM_phoRho = new TH1D("my.EEM_phoRho", "#rho_{#gamma} -EE ",100, 0.0, 100.0);
my.EEP_phoR = new TH1D("my.EEP_phoR", "Radius From Z_{#gamma} +EE ",100, 0.0, 100.0);
my.EEM_phoR = new TH1D("my.EEM_phoR", "Radius From Z_{#gamma} -EE ",100, 0.0, 100.0);
my.EEP_phoPhi = new TH1D("my.EEP_phoPhi", "#phi_{#gamma} +EE ",100, -3.2, 3.2);
my.EEM_phoPhi = new TH1D("my.EEM_phoPhi", "#phi_{#gamma} -EE ",100, -3.2, 3.2);
my.EEP_pho_eta = new TH1D("my.EEP_pho_eta", "#eta_{#gamma}+EE Excl #phi=0,#phi Events",300, -3.0, 3.0);
my.EEM_pho_eta = new TH1D("my.EEM_pho_eta", "#eta_{#gamma}-EE Excl #phi=0,#phi Events",300, -3.0, 3.0);
my.EEP_pho_time = new TH1D("my.EEP_pho_time", "Time_{#gamma}+EE Excl #phi=0,#phi photons",300, -5.0, 25.0);
my.EEM_pho_time = new TH1D("my.EEM_pho_time", "Time_{#gamma}-EE Excl #phi=0,#phi photons",300, -5.0, 25.0);
my.ALL_EEP_pho_eta = new TH1D("my.ALL_EEP_pho_eta", "#eta_{#gamma}+EE ALL Photons",300, -3.0, 3.0);
my.ALL_EEM_pho_eta = new TH1D("my.ALL_EEM_pho_eta", "#eta_{#gamma}-EE ALL Photons",300, -3.0, 3.0);
my.ALL_EEP_pho_time = new TH1D("my.ALL_EEP_pho_time", "Time_{#gamma}+EE ALL photons",300, -5.0, 25.0);
my.ALL_EEM_pho_time = new TH1D("my.ALL_EEM_pho_time", "Time_{#gamma}-EE ALL photons",300, -5.0, 25.0);
my.EEP_ZPphi_pho_eta = new TH1D("my.EEP_ZPphi_pho_eta", "#eta_{#gamma}+EE,,#phi=0,#phi Events",300, -3.0, 3.0);
my.EEM_ZPphi_pho_eta = new TH1D("my.EEM_ZPphi_pho_eta", "#eta_{#gamma}-EE, #phi=0,#phi Events",300, -3.0, 3.0);
my.EEP_ZPphi_pho_time = new TH1D("my.EEP_ZPphi_pho_time", "Time_{#gamma}+EE, #phi=0,#phi photons",300, -5.0, 25.0);
my.EEM_ZPphi_pho_time = new TH1D("my.EEM_ZPphi_pho_time", "Time_{#gamma}-EE #phi=0,#phi photons",300, -5.0, 25.0);
// EE
my.EEM_CSC_dphi_In_1ns = new TH1D("my.EEM_CSC_dphi_In_1ns", "#delta #phi(CSCSeg, #gamma) t in [-1, 1] -EE", 100, 0, 3.5);
my.EEM_CSC_dphi_NIn_1ns = new TH1D("my.EEM_CSC_dphi_NIn_1ns", "#delta #phi(CSCSeg, #gamma) t Not in [-1, 1] -EE", 100, 0, 3.5);
my.EEM_pho_time_NIn_Halo_Win = new TH1D("my.EEM_pho_time_NIn_Halo_Win", "Time , -EE, Non-Halo Region", 300, -5.0, 25.0);
my.EEM_pho_pt_NIn_Halo_Win = new TH1D("my.EEM_pho_pt_NIn_Halo_Win", "Pt_{#gamma} -EE, Non-Halo Region", 100, 0 , 4000);
my.EEM_pho_eta_NIn_Halo_Win = new TH1D("my.EEM_pho_eta_NIn_Halo_Win", "#eta_{#gamma} -EE, Non-Halo Region",300, -3.5, 3.5);
my.EEM_pho_ncrys_NIn_Halo_Win = new TH1D("my.EEM_pho_ncrys_NIn_Halo_Win", "NCrys, -EE Non-Halo Region ",50, 0, 50);
my.EEM_pho_time_In_Halo_Win = new TH1D("my.EEM_pho_time_In_Halo_Win", "Time , -EE, Halo Region", 300, -5.0, 25.0);
my.EEM_pho_pt_In_Halo_Win = new TH1D("my.EEM_pho_pt_In_Halo_Win", "Pt_{#gamma} -EE, Halo Region", 100, 0 , 4000);
my.EEM_pho_eta_In_Halo_Win = new TH1D("my.EEM_pho_eta_In_Halo_Win", "#eta_{#gamma} -EE, Halo Region",300, -3.5, 3.5);
my.EEM_pho_ncrys_In_Halo_Win = new TH1D("my.EEM_pho_ncrys_In_Halo_Win", "NCrys, -EE Halo Region ",50, 0, 50);
my.EEP_CSC_dphi_In_1ns = new TH1D("my.EEP_CSC_dphi_In_1ns", "#delta #phi(CSCSeg, #gamma) t in [-1, 1] +EE", 100, 0, 3.5);
my.EEP_CSC_dphi_NIn_1ns = new TH1D("my.EEP_CSC_dphi_NIn_1ns", "#delta #phi(CSCSeg, #gamma) t Not in [-1, 1] +EE", 100, 0, 3.5);
my.EEP_pho_time_NIn_Halo_Win = new TH1D("my.EEP_pho_time_NIn_Halo_Win", "Time , +EE, Non-Halo Region", 300, -5.0, 25.0);
my.EEP_pho_pt_NIn_Halo_Win = new TH1D("my.EEP_pho_pt_NIn_Halo_Win", "Pt_{#gamma} +EE, Non-Halo Region", 100, 0 , 4000);
my.EEP_pho_eta_NIn_Halo_Win = new TH1D("my.EEP_pho_eta_NIn_Halo_Win", "#eta_{#gamma} +EE, Non-Halo Region",300, -3.5, 3.5);
my.EEP_pho_ncrys_NIn_Halo_Win = new TH1D("my.EEP_pho_ncrys_NIn_Halo_Win", "NCrys +EE, Non-Halo Region ",50, 0, 50);
my.EEP_pho_time_In_Halo_Win = new TH1D("my.EEP_pho_time_In_Halo_Win", "Time , -EE, Halo Region", 300, -5.0, 25.0);
my.EEP_pho_pt_In_Halo_Win = new TH1D("my.EEP_pho_pt_In_Halo_Win", "Pt_{#gamma} -EE, Halo Region", 100, 0 , 4000);
my.EEP_pho_eta_In_Halo_Win = new TH1D("my.EEP_pho_eta_In_Halo_Win", "#eta_{#gamma} -EE, Halo Region",300, -3.5, 3.5);
my.EEP_pho_ncrys_In_Halo_Win = new TH1D("my.EEP_pho_ncrys_In_Halo_Win", "NCrys, -EE Halo Region ",50, 0, 50);
// Untaggeable Halo
my.EEP_Untag_Halo_pho_time = new TH1D("my.EEP_Untag_Halo_pho_time", "Time , EE+, Untagable Halo", 300, -5.0, 25.0);
my.EEM_Untag_Halo_pho_time = new TH1D("my.EEM_Untag_Halo_pho_time", "Time , EE-, Untagable Halo", 300, -5.0, 25.0);
my.EEP_Untag_Halo_pho_pt = new TH1D("my.EEP_Untag_halo_pho_pt", "Pt_{#gamma} EE+, Untagable Halo", 100, 0 , 4000);
my.EEM_Untag_Halo_pho_pt = new TH1D("my.EEM_Untag_halo_pho_pt", "Pt_{#gamma} EE-, Untagable Halo", 100, 0 , 4000);
my.EEM_Untag_Halo_pho_eta = new TH1D("my.EEM_Untag_halo_pho_eta", "#eta_{#gamma} EE-, Untagable Halo",300, -3.5, 3.5);
my.EEP_Untag_Halo_pho_eta = new TH1D("my.EEP_Untag_halo_pho_eta", "#eta_{#gamma} EE+, Untagable Halo",300, -3.5, 3.5);
my.EEM_Untag_Halo_pho_phi = new TH1D("my.EEM_Untag_halo_pho_phi", "#phi_{#gamma} EE-, Untagable Halo",300, -3.5, 3.5);
my.EEP_Untag_Halo_pho_phi = new TH1D("my.EEP_Untag_halo_pho_phi", "#phi_{#gamma} EE+, Untagable Halo",300, -3.5, 3.5);
my.EEP_Untag_Halo_pho_cscdphi = new TH1D("my.EEP_Untag_Halo_pho_cscdphi", "#delta #phi(CSCSeg, #gamma),EE+, Untagable Halo", 100, 0, 3.5);
my.EEM_Untag_Halo_pho_cscdphi = new TH1D("my.EEM_Untag_Halo_pho_cscdphi", "#delta #phi(CSCSeg, #gamma),EE-, Untagable Halo", 100, 0, 3.5);
my.EEP_Untag_Halo_pho_met = new TH1D("my.EEP_Untag_Halo_pho_met", "MET,EE+, Untagable Halo", 100, 0, 1000);
my.EEM_Untag_Halo_pho_met = new TH1D("my.EEM_Untag_Halo_pho_met", "MET,EE-, Untagable Halo", 50, 0, 700);
my.EEP_Untag_Halo_pho_ncrys = new TH1D("my.EEP_Untag_Halo_pho_ncrys", "NCrys,EE+, Untagable Halo", 100, 0, 50);
my.EEM_Untag_Halo_pho_ncrys = new TH1D("my.EEM_Untag_Halo_pho_ncrys", "NCrys,EE-, Untagable Halo", 100, 0, 50);
my.EEM_Untag_Halo_pho_metVstime = new TH2D("my.EEM_Untag_Halo_pho_metVstime","MET Vs Time, EE-, Untagable Halo",100, 0.0, 1000, 120, -30.0, 30.0);
my.EEP_Untag_Halo_pho_metVstime = new TH2D("my.EEP_Untag_Halo_pho_metVstime","MET Vs Time, EE+, Untagable Halo",100, 0.0, 1000, 120, -30.0, 30.0);
my.ebMetVsTime = new TH2D("my.ebMetVsTime","EB MET Vs Time",100, 0.0, 1500,100, -25.0, 25.0);
my.eeMetVsTime = new TH2D("my.eeMetVsTime","EE MET Vs Time",100, 0.0, 1500,100, -25.0, 25.0);
my.ebMetVsEta = new TH2D("my.ebMetVsEta","EB MET Vs Eta",100, 0.0, 1500,170, -3.2, 3.2);
my.eeMetVsEta = new TH2D("my.eeMetVsEta","EE MET Vs Eta",100, 0.0, 1500,170, -3.2, 3.2);
my.ebMetVsPhi = new TH2D("my.ebMetVsPhi","EB MET Vs Phi",100, 0.0, 1500,360, -3.2, 3.2);
my.eeMetVsPhi = new TH2D("my.eeMetVsPhi","EE MET Vs Phi",100, 0.0, 1500,360, -3.2, 3.2);
my.ebMet = new TH1D("my.ebMet","EB MET", 100, 0, 1000);
my.eeMet = new TH1D("my.eeMet","EE MET", 100, 0, 1000);
//Jet Timing
my.Jseedtime1= new TH1D("my.Jseedtime1", "Jet SeedTime Cleaned", 100, -25.0, 25.0);
my.Jseedtime2= new TH1D("my.Jseedtime2", "Jet SeedTime UnCleaned", 100, -25.0, 25.0);
my.JseedE= new TH1D("my.JseedE", "Jet Seed Energy", 500, -0.0, 500.0);
my.JEcalEmEr= new TH1D("my.JEcalEmEr", "Jet Em Eenergy", 500, -0.0, 500.0);
my.Jseedtime2VsPhi = new TH2D("my.seedtime2VsPhi", "#phi_{PFJet} Vs ECAL Time(ns)",100, -3.2, 3.2, 100, -25.0, 25.0);
my.Jseedtime2VsEta = new TH2D("my.seedtime2VsEta", "#eta_{PFJet} Vs ECAL Time(ns)",100, -3.5, 3.5, 100, -25.0, 25.0);
my.JSClusdR= new TH1D("my.JSClusdR", "#delta R(Jet, SC)", 100, 0.0, 10.0);
my.JseedBCtime = new TH1D("my.JseedBCtime", "Seed BC WAve.Time Uncleaned", 100, -25.0, 25.0);
my.JWaveBCtime = new TH1D("my.JWaveBCtime", "Seed BC WAve.Time Cleaned", 100, -25.0, 25.0);
my.JnCrys = new TH1D("my.JnCrys", "Seed BC NCrys", 50, 0.0, 50.0);
my.Jnspike = new TH1D("my.Jnspike", "NCrys with SwissX > 0.98", 50, 0.0, 50.0);
my.JseedtimeVsEnergy= new TH2D("my.JseedtimeVsEnergy", "Time_{seed} Vs Energy_{seed}", 500, 0.0, 500.0, 100, -25.0, 25.0);
my.JseedOOtChi2 = new TH1D("my.JseedOOtChi2", "OOT Chi2_{seed}", 100, -10.0, 90.0);
my.JseedtimeChi2 = new TH1D("my.JseedtimeChi2", "Time Chi2_{seed}", 100, -10.0, 90.0);
my.Jseedtime2VsBCEnergy= new TH2D("my.Jseedtime2VsBCEnergy", "Time_{seed} Vs BC_{seed} Energy", 500, 0.0, 500.0, 100, -25.0, 25.0);
my.Jseedtime2VsBCEt = new TH2D("my.Jseedtime2VsBCEt", "Time_{seed} Vs BC_{seed} E_{T}", 500, 0.0, 500.0, 100, -25.0, 25.0);
my.Jseedtime2VsBCPt = new TH2D("my.Jseedtime2VsBCPt", "Time_{seed} Vs BC_{seed} P_{T}", 500, 0.0, 500.0, 100, -25.0, 25.0);
my.JwavetimeVsBCEnergy= new TH2D("my.JwavetimeVsBCEnergy", "Seed BC WAve.Time Vs BC_{seed} Energy", 500, 0.0, 500.0, 100, -25.0, 25.0);
my.JseedEVsEta = new TH2D("my.JseedEVsEta", "Energy_{seed} Vs #eta ", 170, -3.2, 3.2, 500, 0.0, 500.0);
my.JseedBCEVsEta = new TH2D("my.JseedBCEVsEta", "BC_{seed} Energy Vs #eta ", 170, -3.2, 3.2, 500, 0.0, 500);
my.JseedBCEVsPhi = new TH2D("my.JseedBCEVsPhi", "BC_{seed} Energy Vs #phi", 360, -3.2, 3.2, 500, 0.0, 500);
my.JnUMjets = new TH1D("my.JnUMjets", "Jets(UnMatched)", 50, 0.0, 50.0) ;
my.Jseedtime2EB= new TH1D("my.Jseedtime2EB", "Jet ECAL Time_{seed} Uncleaned, EB", 100, -25.0, 25.0);
my.Jseedtime2EE= new TH1D("my.Jseedtime2EE", "Jet ECAL Time_{seed} Uncleaned, EE", 100, -25.0, 25.0);
my.Jseedtime2VsPseedtime = new TH2D("my.Jseedtime2VsPseedtime", "Jet ECAL Time_{seed} Vs Photon ECAL Time_{seed}", 100, -25.0, 25.0, 100, -25.0, 25.0);
my.Jseedtime2MPseedtime = new TH1D("my.Jseedtime2MPseedtime", "#delta t(Jet Time_{seed}, Photon Time_{seed})", 100, -25.0, 25.0);
} // End of Init Hist fuction
// Fxn 2 Write Hist
void TestGen::Writehists(){
f->cd();
neut = f->mkdir("NeutKin");
neut->cd();
my.h_g1Pt->GetXaxis()->SetTitle("Photon Pt(GeV)");
my.h_g1Pt->GetYaxis()->SetTitle("Event Number");
my.h_g1Pt->Draw();
my.h_g1Pt->Write();
my.h_Time->GetXaxis()->SetTitle("Photon Time(ns)");
my.h_Time->GetYaxis()->SetTitle("Event Number");
my.h_Time->Draw();
my.h_Time->Write();
my.WAveSeedBCphotime->GetXaxis()->SetTitle("Photon(W AVe Seed BC) Time(ns)");
my.WAveSeedBCphotime->GetYaxis()->SetTitle("Event Number");
my.WAveSeedBCphotime->Draw();
my.WAveSeedBCphotime->Write();
my.AveSCphotime->GetXaxis()->SetTitle("Photon (W Ave SC) Time(ns)");
my.AveSCphotime->GetYaxis()->SetTitle("Event Number");
my.AveSCphotime->Draw();
my.AveSCphotime->Write();
my.evtMetVsTime->GetXaxis()->SetTitle("MET(GeV)");
my.evtMetVsTime->GetYaxis()->SetTitle("Time(ns)");
my.evtMetVsTime->Draw();
my.evtMetVsTime->Write();
my.evtMetVsEta->GetXaxis()->SetTitle("MET(GeV)");
my.evtMetVsEta->GetYaxis()->SetTitle("#eta_{#gamma}");
my.evtMetVsEta->Draw();
my.evtMetVsEta->Write();
my.evtMetVsPhi->GetXaxis()->SetTitle("MET(GeV)");
my.evtMetVsPhi->GetYaxis()->SetTitle("#phi_{#gamma}");
my.evtMetVsPhi->Draw();
my.evtMetVsPhi->Write();
my.evtMetVsPt->GetXaxis()->SetTitle("MET(GeV)");
my.evtMetVsPt->GetYaxis()->SetTitle("Pt_{#gamma}");
my.evtMetVsPt->Draw();
my.evtMetVsPt->Write();
my.evt_met->GetXaxis()->SetTitle("MET(GeV)");
my.evt_met->GetYaxis()->SetTitle("Event Number");
my.evt_met->Draw();
my.evt_met->Write();
my.ph_smin->GetXaxis()->SetTitle("SMinor");
my.ph_smin->GetYaxis()->SetTitle("Event Number");
my.ph_smin->Draw();
my.ph_smin->Write();
my.ph_smaj->GetXaxis()->SetTitle("SMajor");
my.ph_smaj->GetYaxis()->SetTitle("Event Number");
my.ph_smaj->Draw();
my.ph_smaj->Write();
my.ph_e->GetXaxis()->SetTitle("Photon Energy(GeV)");
my.ph_e->GetYaxis()->SetTitle("Event Number");
my.ph_e->Draw();
my.ph_e->Write();
my.njets->GetXaxis()->SetTitle("Number of Jets");
my.njets->GetYaxis()->SetTitle("Event Number");
my.njets->Draw() ;
my.njets->Write();
my.pu_vtx->GetXaxis()->SetTitle("nVertices");
my.pu_vtx->GetYaxis()->SetTitle("Event Number");
my.pu_vtx->Draw() ;
my.pu_vtx->Write();
my.npho->GetXaxis()->SetTitle("Number of #gammas");
my.npho->GetYaxis()->SetTitle("Event Number");
my.npho->Draw();
my.npho->Write();
my.j_pt->GetXaxis()->SetTitle("JetPt(GeV)");
my.j_pt->GetYaxis()->SetTitle("Event Number");
my.j_pt->Draw();
my.j_pt->Write();
my.photimeVsPU->GetXaxis()->SetTitle("Number of Vertices");
my.photimeVsPU->GetYaxis()->SetTitle("Photon Time(ns)");
my.photimeVsPU->Draw("colz") ;
my.photimeVsPU->Write();
my.phoCSCtime->GetYaxis()->SetTitle("No. Events");
my.phoCSCtime->GetXaxis()->SetTitle("CSC Photon Time(ns)");
my.phoCSCtime->Draw();
my.phoCSCtime->Write();
my.phonBC->GetXaxis()->SetTitle("No. Of Basic Clusters");
my.phonBC->GetYaxis()->SetTitle("No. Events");
my.phonBC->Draw();
my.phonBC->Write();
// Photon Iso Variables
my.pho_EcalIso->GetXaxis()->SetTitle("#gamma EcalIso");
my.pho_EcalIso->GetYaxis()->SetTitle("Event Number");
my.pho_EcalIso->Draw();
my.pho_EcalIso->Write();
my.pho_HcalIso->GetXaxis()->SetTitle("#gamma HcalIso");
my.pho_HcalIso->GetYaxis()->SetTitle("Event Number");
my.pho_HcalIso->Draw();
my.pho_HcalIso->Write();
my.pho_TrkIso->GetXaxis()->SetTitle("#gamma TrackIso");
my.pho_TrkIso->GetYaxis()->SetTitle("Event Number");
my.pho_TrkIso->Draw();
my.pho_TrkIso->Write();
//my.hcal_Iso->GetXaxis()->SetTitle("#gamma 2012 HCALIso");
//my.hcal_Iso->GetYaxis()->SetTitle("Event Number");
//my.hcal_Iso->Draw();
//my.hcal_Iso->Write();
// PU ? Plots
my.py1 = my.photimeVsPU->ProjectionY("my.py1", 0, 10);
my.py1->SetTitle("1 Vertex ");
my.py1->Draw();
my.py1->Write();
my.py2 = my.photimeVsPU->ProjectionY("my.py2", 11, 21);
my.py2->SetTitle("2 Vertices");
my.py2->Draw();
my.py2->Write();
my.py3 = my.photimeVsPU->ProjectionY("my.py3", 22, 32);
my.py3->SetTitle("3 Vertices");
my.py3->Draw();
my.py3->Write();
my.py4 = my.photimeVsPU->ProjectionY("my.py4", 33, 43);
my.py4->SetTitle("4 Vertices");
my.py4->Draw();
my.py4->Write();
my.py5 = my.photimeVsPU->ProjectionY("my.py5", 44, 54);
my.py5->SetTitle("5 Vertices");
my.py5->Draw();
my.py5->Write();
my.py6 = my.photimeVsPU->ProjectionY("my.py6", 55, 65);
my.py6->SetTitle("6 Vertices");
my.py6->Draw();
my.py6->Write();
my.py7 = my.photimeVsPU->ProjectionY("my.py7", 66, 76);
my.py7->SetTitle("7 Vertices");
my.py7->Draw();
my.py7->Write();
my.py8 = my.photimeVsPU->ProjectionY("my.py8", 77, 87);
my.py8->SetTitle("8 Vertices");
my.py8->Draw();
my.py8->Write();
my.py9 = my.photimeVsPU->ProjectionY("my.py9", 88, 98);
my.py9->SetTitle("9 Vertices");
my.py9->Draw();
my.py9->Write();
my.py10 = my.photimeVsPU->ProjectionY("my.py10", 99, 101);
my.py10->SetTitle("10 Vertices");
my.py10->Draw();
my.py10->Write();
my.py11 = my.photimeVsPU->ProjectionY("my.py11", 102, 112);
my.py11->SetTitle("11 Vertices");
my.py11->Draw();
my.py11->Write();
my.py12 = my.photimeVsPU->ProjectionY("my.py12", 113, 123);
my.py12->SetTitle("12Vertices");
my.py12->Draw();
my.py12->Write();
my.py13->GetXaxis()->SetTitle("45 < nVtx <= 55");
my.py13->GetYaxis()->SetTitle("Event Number");
my.py13->SetTitle("45< nVtx <= 55 Photon Time(ns)");
my.py13->Draw();
my.py13->Write();
my.py14->GetXaxis()->SetTitle("35 < nVtx <= 45");
my.py14->GetYaxis()->SetTitle("Event Number");
my.py14->SetTitle("35< nVtx <=45 Photon Time(ns)");
my.py14->Draw();
my.py14->Write();
my.py15->GetXaxis()->SetTitle("24 < nVtx <= 35");
my.py15->GetYaxis()->SetTitle("Event Number");
my.py15->SetTitle("24< nVtx <= 35 Photon Time(ns)");
my.py15->Draw();
my.py15->Write();
my.py16->GetXaxis()->SetTitle("18 < nVtx <= 24");
my.py16->GetYaxis()->SetTitle("Event Number");
my.py16->SetTitle("18< nVtx <= 24 Photon Time(ns)");
my.py16->Draw();
my.py16->Write();
my.py17->GetXaxis()->SetTitle("12 < nVtx <= 18");
my.py17->GetYaxis()->SetTitle("Event Number");
my.py17->SetTitle("12 < nVtx <= 18 Photon Time(ns)");
my.py17->Draw();
my.py17->Write();
my.py18->GetXaxis()->SetTitle("6 < nVtx <= 12");
my.py18->GetYaxis()->SetTitle("Event Number");
my.py18->SetTitle("6< nVtx <= 12 Photon Time(ns)");
my.py18->Draw();
my.py18->Write();
my.py19->GetXaxis()->SetTitle("0 <= nVtx <= 6");
my.py19->GetYaxis()->SetTitle("Event Number");
my.py19->SetTitle("0<= nVtx <= 6 Photon Time(ns)");
my.py19->Draw();
my.py19->Write();
// Real Distribution of Photon Time Vs Vertices
my.tV1->GetXaxis()->SetTitle("0-7 Vtx");
my.tV1->GetYaxis()->SetTitle("No. Events");
my.tV1->Draw();
my.tV1->Write();
my.tV2->GetXaxis()->SetTitle("7-14 Vtx");
my.tV2->GetYaxis()->SetTitle("No. Events");
my.tV2->Draw();
my.tV2->Write();
my.tV3->GetXaxis()->SetTitle("14-21 Vtx");
my.tV3->GetYaxis()->SetTitle("No. Events");
my.tV3->Draw();
my.tV3->Write();
my.tV4->GetXaxis()->SetTitle("21-28 Vtx");
my.tV4->GetYaxis()->SetTitle("No. Events");
my.tV4->Draw();
my.tV4->Write();
my.tV5->GetXaxis()->SetTitle("28-35 Vtx");
my.tV5->GetYaxis()->SetTitle("No. Events");
my.tV5->Draw();
my.tV5->Write();
my.tV6->GetXaxis()->SetTitle("35-42 Vtx");
my.tV6->GetYaxis()->SetTitle("No. Events");
my.tV6->Draw();
my.tV6->Write();
my.tV7->GetXaxis()->SetTitle("42-49 Vtx");
my.tV7->GetYaxis()->SetTitle("No. Events");
my.tV7->Draw();
my.tV7->Write();
my.tV12->GetXaxis()->SetTitle("0-7 Vtx");
my.tV12->GetYaxis()->SetTitle("No. Events");
my.tV12->Draw();
my.tV12->Write();
my.tV13->GetXaxis()->SetTitle("7-14 Vtx");
my.tV13->GetYaxis()->SetTitle("No. Events");
my.tV13->Draw();
my.tV13->Write();
my.tV14->GetXaxis()->SetTitle("14-21 Vtx");
my.tV14->GetYaxis()->SetTitle("No. Events");
my.tV14->Draw();
my.tV14->Write();
my.tV15->GetXaxis()->SetTitle("21-28 Vtx");
my.tV15->GetYaxis()->SetTitle("No. Events");
my.tV15->Draw();
my.tV15->Write();
my.tV16->GetXaxis()->SetTitle("28-35 Vtx");
my.tV16->GetYaxis()->SetTitle("No. Events");
my.tV16->Draw();
my.tV16->Write();
my.tV17->GetXaxis()->SetTitle("35-42 Vtx");
my.tV17->GetYaxis()->SetTitle("No. Events");
my.tV17->Draw();
my.tV17->Write();
my.tV18->GetXaxis()->SetTitle("42-49 Vtx");
my.tV18->GetYaxis()->SetTitle("No. Events");
my.tV18->Draw();
my.tV18->Write();
my.metVsPU->GetXaxis()->SetTitle("Number of Vertices");
my.metVsPU->GetYaxis()->SetTitle("Event MET(GeV)");
my.metVsPU->Draw("colz");
my.metVsPU->Write();
my.pho_Ecal_IsoVsPU->GetXaxis()->SetTitle("nVtx");
my.pho_Ecal_IsoVsPU->GetYaxis()->SetTitle("EcalIso");
my.pho_Ecal_IsoVsPU->Draw("colz");
my.pho_Ecal_IsoVsPU->Write();
my.ecalIso = my.pho_Ecal_IsoVsPU->ProfileX("my.ecalIso", 1, -1);
my.ecalIso->SetTitle("EcalIso Vs PU");
my.ecalIso->GetYaxis()->SetTitle("EcalIso");
my.ecalIso->GetXaxis()->SetTitle("nVtx");
my.ecalIso->Draw();
my.ecalIso->Write();
my.pho_Hcal_IsoVsPU->GetXaxis()->SetTitle("nVtx");
my.pho_Hcal_IsoVsPU->GetYaxis()->SetTitle("HcalIso");
my.pho_Hcal_IsoVsPU->Draw("colz");
my.pho_Hcal_IsoVsPU->Write();
my.hcalIso = my.pho_Hcal_IsoVsPU->ProfileX("my.hcalIso", 1, -1);
my.hcalIso->SetTitle("HcalIso Vs PU");
my.hcalIso->GetYaxis()->SetTitle("HcalIso");
my.hcalIso->GetXaxis()->SetTitle("nVtx");
my.hcalIso->Draw();
my.hcalIso->Write();
my.pho_Trk_IsoVsPU->GetXaxis()->SetTitle("nVtx");
my.pho_Trk_IsoVsPU->GetYaxis()->SetTitle("TrkIso");
my.pho_Trk_IsoVsPU->Draw("colz");
my.pho_Trk_IsoVsPU->Write();
my.trkIso = my.pho_Trk_IsoVsPU->ProfileX("my.trkIso", 1, -1);
my.trkIso->SetTitle("TrackIso Vs PU");
my.trkIso->GetYaxis()->SetTitle("TrackIso");
my.trkIso->GetXaxis()->SetTitle("nVtx");
my.trkIso->Draw();
my.trkIso->Write();
//my.Hcal_IsoVsPU->GetXaxis()->SetTitle("nVtx");
//my.Hcal_IsoVsPU->GetYaxis()->SetTitle("2012 HcalIso");
//my.Hcal_IsoVsPU->Draw("colz");
//my.Hcal_IsoVsPU->Write();
//my.HcalIso = my.Hcal_IsoVsPU->ProfileX("my.HcalIso", 1, -1);
//my.HcalIso->SetTitle("2012 HcalIso Vs PU");
//my.HcalIso->GetYaxis()->SetTitle("2012 HcalIso");
//my.HcalIso->GetXaxis()->SetTitle("nVtx");
//my.HcalIso->Draw();
//my.HcalIso->Write();
my.sMinorVsPU->GetXaxis()->SetTitle("nVtx");
my.sMinorVsPU->GetYaxis()->SetTitle("sMinor");
my.sMinorVsPU->Draw("colz");
my.sMinorVsPU->Write();
my.sminor = my.sMinorVsPU->ProfileX("my.sminor", 1, -1);
my.sminor->SetTitle("sMinor Vs PU");
my.sminor->GetYaxis()->SetTitle("sMinor");
my.sminor->GetXaxis()->SetTitle("nVtx");
my.sminor->Draw();
my.sminor->Write();
// EB and EE Stuff
my.phonXtalEB->GetXaxis()->SetTitle("No. Of Crys in SC");
my.phonXtalEB->GetYaxis()->SetTitle("No. Events");
my.phonXtalEB->Draw();
my.phonXtalEB->Write();
my.pho_SSXEB->GetXaxis()->SetTitle("SeedXtal in SC SwissXC");
my.pho_SSXEB->GetYaxis()->SetTitle("No. Events");
my.pho_SSXEB->Draw();
my.pho_SSXEB->Write();
my.pho_num_phoEB->GetXaxis()->SetTitle("Number of #gamma s");
my.pho_num_phoEB->GetYaxis()->SetTitle("Event Number");
my.pho_num_phoEB->Draw() ;
my.pho_num_phoEB->Write();
my.pho_num_phoEE->GetXaxis()->SetTitle("Number of #gamma s");
my.pho_num_phoEE->GetYaxis()->SetTitle("Event Number");
my.pho_num_phoEE->Draw() ;
my.pho_num_phoEE->Write();
my.pho_num_jetEB->GetXaxis()->SetTitle("Number of jets");
my.pho_num_jetEB->GetYaxis()->SetTitle("Event Number");
my.pho_num_jetEB->Draw() ;
my.pho_num_jetEB->Write();
my.pho_num_jetEE->GetXaxis()->SetTitle("Number of jets");
my.pho_num_jetEE->GetYaxis()->SetTitle("Event Number");
my.pho_num_jetEE->Draw() ;
my.pho_num_jetEE->Write();
my.pho_timeVsEtaEB->GetXaxis()->SetTitle("#eta_{#gamma}");
my.pho_timeVsEtaEB->GetYaxis()->SetTitle("Seed crys Time(ns)");
my.pho_timeVsEtaEB->Draw("colz");
my.pho_timeVsEtaEB->Write();
my.pho_timeVsEtaEE->GetXaxis()->SetTitle("#eta_{#gamma}");
my.pho_timeVsEtaEE->GetYaxis()->SetTitle("Seed crys Time(ns)");
my.pho_timeVsEtaEE->Draw("colz");
my.pho_timeVsEtaEE->Write();
my.pho_timeVsPhiEB->GetXaxis()->SetTitle("#phi_{#gamma}");
my.pho_timeVsPhiEB->GetYaxis()->SetTitle("Seed Crys Time(ns)");
my.pho_timeVsPhiEB->Draw("colz");
my.pho_timeVsPhiEB->Write();
my.pho_timeVsPhiEE->GetXaxis()->SetTitle("#phi_{#gamma}");
my.pho_timeVsPhiEE->GetYaxis()->SetTitle("Seed Crys Time(ns)");
my.pho_timeVsPhiEE->Draw("colz");
my.pho_timeVsPhiEE->Write();
my.pho_sigmaEtaEB->GetXaxis()->SetTitle("#sigma_{i#eta i#eta}");
my.pho_sigmaEtaEB->GetYaxis()->SetTitle("No. Events");
my.pho_sigmaEtaEB->Draw();
my.pho_sigmaEtaEB->Write();
my.pho_sigmaEtaEE->GetXaxis()->SetTitle("#sigma_{i#eta i#eta}");
my.pho_sigmaEtaEE->GetYaxis()->SetTitle("No. Events");
my.pho_sigmaEtaEE->Draw();
my.pho_sigmaEtaEE->Write();
my.pho_sminorEB->GetXaxis()->SetTitle("SMinor");
my.pho_sminorEB->GetYaxis()->SetTitle("Event Number");
my.pho_sminorEB->Draw();
my.pho_sminorEB->Write();
my.pho_smajorEB->GetXaxis()->SetTitle("SMajor");