-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathShortPlotFromTreePtBinned.C
More file actions
4570 lines (3983 loc) · 213 KB
/
Copy pathShortPlotFromTreePtBinned.C
File metadata and controls
4570 lines (3983 loc) · 213 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
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 <TBrowser.h>
#include <TBufferFile.h>
#include <TCanvas.h>
#include <TClass.h>
#include <TMath.h>
#include <TLatex.h>
#include <TObject.h>
#include <TClonesArray.h>
#include <TFile.h>
#include <TTree.h>
#include <TFitResultPtr.h>
#include <TPaveText.h>
#include <TGraph.h>
#include <TMatrixD.h>
#include <TLorentzVector.h>
#include <string>
#include <vector>
//#include "TTreeReader.h"
//#include "Event.h"
# include "TF1.h"
# include "TF2.h"
# include "TProfile.h"
# include "TVirtualFitter.h"
# include "TBackCompFitter.h"
# include "TGraphErrors.h"
# include "TFitter.h"
# include "TMinuit.h"
# include "TRandom.h"
# include <iostream>
# include <fstream>
# include <string>
# include "TH1F.h"
# include "TH1D.h"
# include "TH2F.h"
# include "Scripts/AliAnalysisTaskMyMuonTree_AOD.h"
// Code d'analyse complet
// FUNCTIONS
void ShortPlotFromTreePtBinned();
Double_t FourierV2_WrtInvMass(Double_t *x,Double_t *par);
Double_t FourierV2_WrtInvMassIntegrated(Double_t *x,Double_t *par);
Double_t BackFcnV2(Double_t *x,Double_t *par);
Double_t BackFcnV2Poly(Double_t *x,Double_t *par);
Double_t SignalFcnJPsiV2(Double_t *x,Double_t *par);
Double_t FourierV2(Double_t *x,Double_t *par);
Double_t FourierV5(Double_t *x,Double_t *par);
Double_t TwoCBE2E(Double_t *x,Double_t *par);
Double_t ExpBkg(Double_t *x,Double_t *par);
Double_t JPsiCrystalBallExtended(Double_t *x,Double_t *par);
Double_t Psi2SCrystalBallExtended(Double_t *x,Double_t *par);
TFitResultPtr FittingAllInvMass(const char *histoname, TCanvas *canvas);
TFitResultPtr FittingAllInvMassBin(const char *histoname, TCanvas *canvas, int i);
void FcnCombinedAllMass(Int_t & /*nPar*/, Double_t * /*grad*/ , Double_t &fval, Double_t *p, Int_t /*iflag */ );
int GetCent(int cent);
int GetCentPM(int Ntkl, float SPDTrackletsPer, float SPDClustersPer, float V0MPer, int zvtx_idx, int groupnumber);
int GetCentCvetan(float V0MPer);
bool isCentral(int centint);
bool isPeripheral(int centint);
int GetPtBin(double pt);
int GetMassBin(double mass);
Double_t myEtaLow(double x);
Double_t myEtaHigh(double x);
Double_t fitPLL(Double_t *x, Double_t *par);
Double_t fitLin(Double_t *x, Double_t *par);
Double_t mDiff = 0.589188;
// Centrality bins:
//0: 0-1%
//1: 1-3%
//2: 3-5%
//3: 5-10%
//4: 10-15%
//5: 15-20%
//6: 20-30%
//7: 30-40%
//8: 40-50%
//9: 50-60%
//10: 60-70%
//11: 70-80%
//12: 80-90%
//13: 90-100%
// Definition of centrality classes
int CentralLowBound = 0;
int CentralHighBound = 5;
int PeripheralLowBound = 8;
int PeripheralHighBound = 13;
//CentralityEstimator to be used
string centralityMethod = "V0MPercentile";
//Do you want to run an analysis to get the V2 wrt number of tracklets ?
bool isMultiplicityStudy = kFALSE;
//Useless
int NtklCentralLowBound = 6;
int NtklCentralHighBound = 12;
int NtklPeripheralLowBound = 0;
int NtklPeripheralHighBound = 6;
//Define the pT binning, number of bins, min, max
double PtBins[] = {0,2,3,6,8};
const int NbPtBins = 4;
double LowDimuPtCut = 0;
double HighDimuPtCut = 8;
//Define the invariant mass binning, number of bins, min, max, range to be used for fitting the invariant mass, number of bins in invariant mass fit
double MassBins[] = {1.0,1.5,1.9,2.3,2.7,3.0,3.3,3.7,4.1,4.5,5.0};
//double MassBins[] = {1.0,5.0};
const int NbinsInvMass = 10;
double MinInvMass = 1.;
double MaxInvMass = 5.;
double MinInvMassFit = 1.5;
double MaxInvMassFit = 4.5;
const int NbinsDimuInvMass = 400; //Manu 300 ?
//Function to say if a centrality bin falls in the central class
bool isCentral(int centint){
if((centint>=CentralLowBound)&&(centint<=CentralHighBound))
return kTRUE;
else{
return kFALSE;
}
}
//Function to say if a centrality bin falls in the peripheral class
bool isPeripheral(int centint){
if((centint>=PeripheralLowBound)&&(centint<=PeripheralHighBound))
return kTRUE;
else{
return kFALSE;
}
}
// Matrix used to define centrality classes bounds in terms of #SPDTracklets when estimators were not yet calibrated
TH1D* hStatic3;
Double_t mJpsi = 3.096916;
Double_t mPsip = 3.686108;
// Double_t ratMass = 1.01;
Double_t ratSigma = 1.05;
Int_t npfits;
TH1F* hnseg(NULL);
TH1F* V2JPsiTkl(NULL);
double V2_Ext1[NbPtBins] = {0};
double V2_Ext2[NbPtBins] = {0};
double errV2_Ext1[NbPtBins] = {0};
double errV2_Ext2[NbPtBins] = {0};
//Function called to do the Jpsi/tkl analysis
void ShortPlotFromTreePtBinned(){
// freopen( "logPlotFromTreeJavier16h_NoDPhiCut_NoConstraintPileUp.txt", "w", stdout );
TH1::SetDefaultSumw2();
bool doTracklets = kFALSE; //Do tracklet-tracklet analysis ? Obsolete now
bool isCMSMethod = kFALSE; //Do CMS way of getting to the V2 ?
bool doMixedEvents = kTRUE; //Do event mixing ?
bool KeepOnlyOne = kFALSE; //Useless
int valueOnlyOne = 3; //Useless
bool AdditionalCutNtkl = kFALSE; //Do you add a cut on the number of tracklets ? Remove very periph events
int valueAdditionalCutNtkl = 3; //<=
int preciseZbinFocus = 10; //Useless
int preciseCentFocus = 0; //Useless
bool PtBinned = kTRUE; //Have you defined pT bins ?
// ************************************
// Définitions de paramètres *
// ************************************
double ZvtxCut = 10; //Cut on z_vtx (in cm)
double SigmaZvtxCut = 0.25; //Cut on resolution on z_vtx
double DPhiCut = 0.005; //0.01 Cut on DeltaPhi of tracklets
double TklEtaCut = 1; //Cut on Tracklet Eta (used for centrality estimation when estimators were not calibrated)
double LowDimuYCut = -4; //Rapidity cuts on dimuon
double HighDimuYCut = -2.5;
// double MinMultCentral = 37;
// double MaxMultPeriph = 23;
double LowJPsiMass = 3.0; //Useless
double HighJPsiMass = 3.3;
// const int NbinsInvMass = 10; //FIXME
// double SizeBinInvMass = (MaxInvMass-MinInvMass)/NbinsInvMass;
//Define the binning in Deltaphi
double MinDeltaPhi = 0;//-TMath::Pi()/2;
double MaxDeltaPhi = TMath::Pi();//1.5*TMath::Pi();
const int NbinsDeltaPhi = 6; //12
double SizeBinDeltaPhi = (MaxDeltaPhi-MinDeltaPhi)/NbinsDeltaPhi;
int BinZeroLeft = 1;//floor((0-MinDeltaPhi)*NbinsDeltaPhi/(TMath::Pi())); // 2 What is the value of the bin on the left of 0 ? Used for baseline
//Define the binning in DeltaEta
double MinDeltaEta = 0;
double MaxDeltaEta = 5;
const int NbinsDeltaEta = 10;
double DeltaEtaDimuCut = 1.5;//1.5
double SizeBinDeltaEta = (MaxDeltaEta-MinDeltaEta)/NbinsDeltaEta;
//Define the binning in DeltaEta for tracklets
double MinDeltaEtaTKL = -2.4; //1.2 //2.4
double MaxDeltaEtaTKL = 2.4;
const int NbinsDeltaEtaTKL = 48; //24
double DeltaEtaTKLCut = 1.2; //1.2 //1.2
double SizeBinDeltaEtaTKL = (MaxDeltaEtaTKL-MinDeltaEtaTKL)/NbinsDeltaEtaTKL;
//Define the binning in Deltaphi for tracklets
const int NbinsDeltaPhiTKL = 48;
double SizeBinDeltaPhiTKL = (MaxDeltaPhi-MinDeltaPhi)/NbinsDeltaPhiTKL;
int BinZeroLeftTKL = floor((0-MinDeltaPhi)*NbinsDeltaPhiTKL/(2*TMath::Pi()));
//Define the number of centrality bins and z_vtx bins used in the analysis
const int NbBinsCent = 14;
const int NbBinsZvtx = 20;
//Define the radii of SPD layers to get the corrective factor on tracklet Deltaphi
double R_SPD1 = 3.9;
double R_SPD2 = 7.6;
double corrFactorDeltaPhi = R_SPD1/(R_SPD2-R_SPD1);
//Define the list of periods to look at
// Char_t Group_Period[50] = "Group1";
// Char_t *arrayOfPeriods[] = {"Group1_LHC16h","Group1_LHC16j","Group1_LHC16k","Group1_LHC16o","Group1_LHC16p","Group1_LHC17i","Group1_LHC17k","Group1_LHC17l","Group2_LHC17h","Group3_LHC17h","Group4_LHC17k","Group4_LHC18l","Group4_LHC18m","Group4_LHC18o","Group4_LHC18p","Group5_LHC17l","Group5_LHC17m","Group5_LHC17o","Group5_LHC17r","Group5_LHC18c","Group5_LHC18d","Group5_LHC18e","Group5_LHC18f","Group6_LHC18m","Group7_LHC18m","Group8_LHC18m","Group9_LHC18m","Group10_LHC18m","Group11_LHC18m","Group12_LHC18m"};
// Char_t *arrayOfPeriods[] = {"Group1_LHC16h","Group1_LHC16j","Group1_LHC16k","Group1_LHC16o","Group1_LHC16p","Group1_LHC17i","Group1_LHC17k","Group1_LHC17l"};
// Char_t *arrayOfPeriods[] = {"Group1_LHC16h"};
Char_t *arrayOfPeriods[] = {"Cvetan16r_PhySelTRUEe_Vertexer"};
// Char_t *arrayOfPeriods[] = {"Group1_LHC16h_CMUL_MULi_Match2TrigMULMLL","Group1_LHC16j_CMUL_MULi_Match2TrigMULMLL","Group1_LHC16o_CMUL_MULi_Match2TrigMULMLL","Group1_LHC16p_CMUL_MULi_Match2TrigMULMLL","Group1_LHC17i_CMUL_MULi_Match2TrigMULMLL","Group4_LHC17k_CMUL_MULi_Match2TrigMULMLL","Group4_LHC18o_CMUL_MULi_Match2TrigMULMLL"};
// Char_t *arrayOfPeriods[] = {"Group1_LHC16h","Group1_LHC16j"};
// Char_t *arrayOfPeriods[] = {"Group8_LHC18m_CvetanPU_OnlyMuonTrackCutsApplied"};
int numberOfPeriods = sizeof(arrayOfPeriods) / sizeof(arrayOfPeriods[0]);
const double binsCent[6] = {0,1,10,20,40,100};//Useless
Char_t fileInLoc[500];
Char_t FolderName[500];
Char_t CanvasName[500];
Char_t FitFileName[500];
// Char_t AssociateFileName[200];
//Define the location and name of the .root file storing the plots
sprintf(FitFileName,"~/../../Volumes/Transcend2/ppAnalysis/Scripts/FitFile_NewAnalysisAllEst_Cvetan16r_TRUEe_Vertexer_NoPsi2s_TailspPb_Eta1.5-5_Q0lin_Elagued_V0MPercentile_0-20_40-100_pt0-2-3-6-8_0612e_pichanged_VWGVarChange_strictcent_rang1.5-4.5_invmassnotinboucle_restrictesSBfit_IAll.root");
// sprintf(FitFileName,"~/../../Volumes/Transcend2/ppAnalysis/Scripts/Systematics/FitFile_TKL_DPhi10mrad_PercentileMethodSPDTracklets_EtaGap1.2_Zcut10.root");
// sprintf(AssociateFileName,"~/../../Volumes/Transcend2/ppAnalysis/Scripts/Systematics/AssociateFile_TKL_DPhi10mrad_PercentileMethodSPDTracklets_EtaGap1.2_Zcut10.txt");
//Define the location and name of the folder storing the .pdf plots
sprintf(FolderName,"~/Desktop/ImagesJavierAnalysis/2021novembre/NewAnalysisAllEst_Cvetan16r_TRUEe_Vertexer_NoPsi2s_TailspPb_Eta1.5-5_Q0lin_Elagued_V0MPercentile_0-20_40-100_pt0-2-3-6-8_0612e_pichanged_VWGVarChange_strictcent_rang1.5-4.5_invmassnotinboucle_restrictesSBfit_IAll");
// *************************
// Initialiser les graphes *
// *************************
TH1F* ScaledME1a(NULL);
TH1F* SE1a(NULL);
TH2F* hsingletrac(NULL);
TH1I* hnseg;
TH1F* hnseg2(NULL);
TH1F* hnseg3(NULL);
TH1F* hnseg4(NULL);
TH1F* hnseg5(NULL);
TH1F* hnseg6(NULL);
TH1F* hnseg7(NULL);
TH2F* hnseg8(NULL);
TH2F* hnsegSigma(NULL);
TH1F* hnseg8_proj_tampon(NULL);
TH1F* hnseg8Tkl_proj_tampon(NULL);
TH1F* hnseg8_proj(NULL);
TH1F* hnseg8Tkl_proj(NULL);
TH2F* hnseg8ME(NULL);
TH1F* hnseg8ME_proj_tampon(NULL);
TH1F* hnseg8TklME_proj_tampon(NULL);
TH1D* hnseg8ME_proj(NULL);
TH1D* hnseg8TklME_proj(NULL);
TH1F* ME_proj_tampon(NULL);
TH1F* ProjCopy(NULL);
TH1F* ProjCopy2(NULL);
TH1F* ProjCopyTkl(NULL);
TH1F* ProjCopy2Tkl(NULL);
TH1F* ME_proj_Tkl_tampon(NULL);
TH1F* ME_proj(NULL);
TH1F* SE_proj_tampon(NULL);
TH1I* SE_proj_Tkl_tampon(NULL);
TH1F* SE_proj(NULL);
TH1F* Sijk(NULL);
TH1F* Mijk(NULL);
TH1F* SoverMijk(NULL);
TH1F* SoverMik(NULL);
TH1F* Sij(NULL);
TH1F* Mij(NULL);
TH1F* SoverMij(NULL);
TH1F* SoverMi(NULL);
TH1F* Yields[NbBinsCent][NbinsInvMass]{ NULL };
TH1F* YieldsTkl[NbBinsCent]{ NULL };
TH1F* YieldsTklShortCMS[NbBinsCent]{ NULL };
TH1F* YieldsTklLongCMS[NbBinsCent]{ NULL };
TH2F* Correlations[NbBinsCent][NbBinsZvtx][NbinsInvMass]{ NULL };
TH2I* CorrelationsTkl[NbBinsCent][NbBinsZvtx]{ NULL };
TH2I* CorrelationsTklShortCMS[NbBinsCent][NbBinsZvtx]{ NULL };
TH2I* CorrelationsTklLongCMS[NbBinsCent][NbBinsZvtx]{ NULL };
TH2I* CorrelationsME[NbBinsCent][NbBinsZvtx][NbinsInvMass]{ NULL };
TH2I* CorrelationsTklME[NbBinsCent][NbBinsZvtx]{ NULL };
TH2I* CorrelationsTklMEShortCMS[NbBinsCent][NbBinsZvtx]{ NULL };
TH2I* CorrelationsTklMELongCMS[NbBinsCent][NbBinsZvtx]{ NULL };
TH2F* CorrelationsMEScaled[NbBinsCent][NbBinsZvtx][NbinsInvMass]{ NULL };
TH2F* CorrelationsTklMEScaled[NbBinsCent][NbBinsZvtx]{ NULL };
TH2F* CorrelationsTklMEScaledShortCMS[NbBinsCent][NbBinsZvtx]{ NULL };
TH2F* CorrelationsTklMEScaledLongCMS[NbBinsCent][NbBinsZvtx]{ NULL };
TH1F* Yield_tampon(NULL);
TH1F* YieldTkl_tampon(NULL);
TH1F* YieldWrtMass_tampon(NULL);
TH1F* Yield_allC(NULL);
TH1F* Yield_Central(NULL);
TH1F* Yield_Periph(NULL);
TH1F* Yield_Difference(NULL);
TH1F* YieldTkl_allC(NULL);
TH1F* YieldTkl_Central(NULL);
TH1F* YieldTkl_Periph(NULL);
TH1F* YieldTkl_Difference(NULL);
TH1F* YieldTkl_allCShortCMS(NULL);
TH1F* YieldTkl_CentralShortCMS(NULL);
TH1F* YieldTkl_PeriphShortCMS(NULL);
TH1F* YieldTkl_DifferenceShortCMS(NULL);
TH1F* YieldTkl_allCLongCMS(NULL);
TH1F* YieldTkl_CentralLongCMS(NULL);
TH1F* YieldTkl_PeriphLongCMS(NULL);
TH1F* YieldTkl_DifferenceLongCMS(NULL);
TH1F* Yield_Central_MassBin[NbinsInvMass] = { NULL };
TH1F* Yield_Periph_MassBin[NbinsInvMass] = { NULL };
TH1F* Yield_Difference_MassBin[NbinsInvMass] = { NULL };
TH1F* Yields_PhiBin[NbBinsCent][NbinsDeltaPhi]{ NULL };
TH1F* YieldWrtMass_allC[NbinsDeltaPhi]{ NULL };
TH1F* YieldWrtMass_Central[NbinsDeltaPhi]{ NULL };
TH1F* YieldWrtMass_Periph[NbinsDeltaPhi]{ NULL };
// Plots added for Pt Binning
TH1F* YieldsPtBinned[NbBinsCent][NbinsInvMass][NbPtBins]{ NULL };//
TH2F* YieldsPtBinned1a[NbBinsCent][NbinsInvMass][NbPtBins]{ NULL };//
TH2I* CorrelationsMEPtBinned[NbBinsCent][NbBinsZvtx][NbinsInvMass][NbPtBins]{ NULL };//
TH2I* CorrelationsMEPtBinnedBigClasses[3][NbBinsZvtx][NbinsInvMass][NbPtBins]{ NULL };//
TH2F* CorrelationsPtBinned[NbBinsCent][NbBinsZvtx][NbinsInvMass][NbPtBins]{ NULL };//
TH2F* CorrelationsMEScaledPtBinned[NbBinsCent][NbBinsZvtx][NbinsInvMass][NbPtBins]{ NULL };//
TH2F* CorrelationsPtBinnedBigClasses[3][NbBinsZvtx][NbinsInvMass][NbPtBins]{ NULL };//
TH2F* CorrelationsMEScaledPtBinnedBigClasses[3][NbBinsZvtx][NbinsInvMass][NbPtBins]{ NULL };//
TH1F* Yield_Central_MassBinPtBinned[NbinsInvMass][NbPtBins] = { NULL };//
TH1F* Yield_Periph_MassBinPtBinned[NbinsInvMass][NbPtBins] = { NULL };//
TH1F* Yield_Difference_MassBinPtBinned[NbinsInvMass][NbPtBins] = { NULL };//
TH1F* Yields_PhiBinPtBinned[NbBinsCent][NbinsDeltaPhi][NbPtBins]{ NULL };//
TH1F* YieldWrtMass_allCPtBinned[NbinsDeltaPhi][NbPtBins]{ NULL };//
TH1F* YieldWrtMass_CentralPtBinned[NbinsDeltaPhi][NbPtBins]{ NULL };//
TH1F* YieldWrtMass_PeriphPtBinned[NbinsDeltaPhi][NbPtBins]{ NULL };//
TH1F* baselines0PtBinned[NbPtBins]{ NULL };
TH1F* coefficients0PtBinned[NbPtBins]{ NULL };
TH1F* coefficients1PtBinned[NbPtBins]{ NULL };
TH1F* coefficients2PtBinned[NbPtBins]{ NULL };
TH1F* c2b0PtBinned[NbPtBins]{ NULL };
TH1F* V2JPsiTklPtBinned[NbPtBins]{ NULL };
TH1F* Yields_Central_1PtBinned[NbPtBins]{ NULL };
TH1F* Yields_Periph_1PtBinned[NbPtBins]{ NULL };
TH1F* Yields_Difference_1PtBinned[NbPtBins]{ NULL };
// Try plots 2D DetaDphi
TH2F* YCentral(NULL);
TH2F* YPeriph(NULL);
TH2F* YDifference(NULL);
TH2F* YTklCentral(NULL);
TH2I* YTklCentralME(NULL);
TH2F* YTklPeriph(NULL);
TH2I* YTklPeriphME(NULL);
TH2F* YTklDifference(NULL);
TH1D* YTklCentral_proj_tampon(NULL);
TH1D* Correl_tampon(NULL);
TH1D* YTklPeriph_proj_tampon(NULL);
TH1D* YTklDifference_proj_tampon(NULL);
TH1D* YTklCentralME_proj_tampon(NULL);
TH1D* YTklPeriphME_proj_tampon(NULL);
ScaledME1a = new TH1F("ScaledME1a",
"ScaledME1a",
NbBinsZvtx, -1*int(ZvtxCut), int(ZvtxCut));
ScaledME1a->SetXTitle("Zvtx");
SE1a = new TH1F("SE1a",
"SE1a",
NbBinsZvtx, -1*int(ZvtxCut), int(ZvtxCut));
SE1a->SetXTitle("Zvtx");
hsingletrac = new TH2F("hsingletrac",
"Single tracklet #eta,#phi distribution",
NbinsDeltaPhi,0,MaxDeltaPhi-MinDeltaPhi,40,-2,2);
hsingletrac->SetXTitle("Tkl #phi (rad)");
hsingletrac->SetYTitle("Tkl #eta");
YCentral = new TH2F("YCentral",
"Yield dimuon-tkl #Delta#eta wrt #Delta#phi - Central",
NbinsDeltaPhi,MinDeltaPhi,MaxDeltaPhi,NbinsDeltaEta,MinDeltaEta,MaxDeltaEta);
YCentral->SetXTitle("Correlation #Delta#phi (rad)");
YCentral->SetYTitle("Correlation #Delta#eta");
YPeriph = new TH2F("YPeriph",
"Yield dimuon-tkl #Delta#eta wrt #Delta#phi - Periph",
NbinsDeltaPhi,MinDeltaPhi,MaxDeltaPhi,NbinsDeltaEta,MinDeltaEta,MaxDeltaEta);
YPeriph->SetXTitle("Correlation #Delta#phi (rad)");
YPeriph->SetYTitle("Correlation #Delta#eta");
YDifference = new TH2F("YDifference",
"Yield dimuon-tkl #Delta#eta wrt #Delta#phi - Difference",
NbinsDeltaPhi,MinDeltaPhi,MaxDeltaPhi,NbinsDeltaEta,MinDeltaEta,MaxDeltaEta);
YDifference->SetXTitle("Correlation #Delta#phi (rad)");
YDifference->SetYTitle("Correlation #Delta#eta");
YTklCentral = new TH2F("YTklCentral",
"Yield #Delta#eta wrt #Delta#phi - Tkl Central",
NbinsDeltaPhiTKL,MinDeltaPhi,MaxDeltaPhi,NbinsDeltaEtaTKL,MinDeltaEtaTKL,MaxDeltaEtaTKL);
YTklCentral->SetXTitle("Correlation #Delta#phi (rad)");
YTklCentral->SetYTitle("Correlation #Delta#eta");
YTklPeriph = new TH2F("YTklPeriph",
"Yield #Delta#eta wrt #Delta#phi - Tkl Periph",
NbinsDeltaPhiTKL,MinDeltaPhi,MaxDeltaPhi,NbinsDeltaEtaTKL,MinDeltaEtaTKL,MaxDeltaEtaTKL);
YTklPeriph->SetXTitle("Correlation #Delta#phi (rad)");
YTklPeriph->SetYTitle("Correlation #Delta#eta");
YTklDifference = new TH2F("YTklDifference",
"Yield #Delta#eta wrt #Delta#phi - Tkl Difference",
NbinsDeltaPhiTKL,MinDeltaPhi,MaxDeltaPhi,NbinsDeltaEtaTKL,MinDeltaEtaTKL,MaxDeltaEtaTKL);
YTklDifference->SetXTitle("Correlation #Delta#phi (rad)");
YTklDifference->SetYTitle("Correlation #Delta#eta");
YTklCentralME = new TH2I("YTklCentralME",
"Yield #Delta#eta wrt #Delta#phi - Tkl Central ME",
NbinsDeltaPhiTKL,MinDeltaPhi,MaxDeltaPhi,NbinsDeltaEtaTKL,MinDeltaEtaTKL,MaxDeltaEtaTKL);
YTklCentralME->SetXTitle("Correlation #Delta#phi (rad)");
YTklCentralME->SetYTitle("Correlation #Delta#eta");
YTklPeriphME = new TH2I("YTklPeriphME",
"Yield #Delta#eta wrt #Delta#phi - Tkl Periph ME",
NbinsDeltaPhiTKL,MinDeltaPhi,MaxDeltaPhi,NbinsDeltaEtaTKL,MinDeltaEtaTKL,MaxDeltaEtaTKL);
YTklPeriphME->SetXTitle("Correlation #Delta#phi (rad)");
YTklPeriphME->SetYTitle("Correlation #Delta#eta");
// AE
TH2F* hnseg9(NULL);
TH2F* hnseg10(NULL);
TH1F* hDPhi(NULL);
TH2F* hPtWrtMassInv[3]{NULL};
TH1D *hPtWrtMassInvSliced[3][NbPtBins]= {NULL};
TH1D *hPtWrtMassInvSlicedRebinned[3][NbPtBins]= {NULL};
TH1F* CentV0M(NULL);
TH1F* CentTKL(NULL);
TH1F* CentCL0(NULL);
TH1F* CentCL1(NULL);
TH1F* CentSPDTracklets(NULL);
TH1F* CentSPDClusters(NULL);
TH2F* CentV0Mwrttkl(NULL);
TH2F* CentTKLwrttkl(NULL);
TH2F* CentCL0wrttkl(NULL);
TH2F* CentCL1wrttkl(NULL);
TH2F* CentSPDTrackletswrttkl(NULL);
TH2F* CentSPDClusterswrttkl(NULL);
TH1F* Yields_Central_1(NULL);
TH1F* Yields_Periph_1(NULL);
TH1F* Yields_Difference_1(NULL);
TH1F* coefficients0(NULL);
TH1F* coefficients1(NULL);
TH1F* coefficients2(NULL);
TH1F* baselines0(NULL);
TH1F* c2b0(NULL);
ProjCopy = new TH1F("ProjCopy",
"ProjCopy",
NbinsDeltaPhi,MinDeltaPhi,MaxDeltaPhi);
ProjCopy->SetXTitle("Correlation #Delta#phi (rad)");
ProjCopy->SetYTitle("Correlation #Delta#eta");
ProjCopy2 = new TH1F("ProjCopy2",
"ProjCopy2",
NbinsDeltaPhi,MinDeltaPhi,MaxDeltaPhi);
ProjCopy2->SetXTitle("Correlation #Delta#phi (rad)");
ProjCopy2->SetYTitle("Correlation #Delta#eta");
ProjCopyTkl = new TH1F("ProjCopyTkl",
"ProjCopyTkl",
NbinsDeltaPhiTKL,MinDeltaPhi,MaxDeltaPhi);
ProjCopyTkl->SetXTitle("Correlation #Delta#phi (rad)");
ProjCopyTkl->SetYTitle("Correlation #Delta#eta");
ProjCopy2Tkl = new TH1F("ProjCopy2Tkl",
"ProjCopy2Tkl",
NbinsDeltaPhiTKL,MinDeltaPhi,MaxDeltaPhi);
ProjCopy2Tkl->SetXTitle("Correlation #Delta#phi (rad)");
ProjCopy2Tkl->SetYTitle("Correlation #Delta#eta");
Yields_Central_1 = new TH1F("Yields_Central_1",
"Yield of J/#psi-tkl in Central collisions wrt #Delta#phi",
NbinsDeltaPhi,MinDeltaPhi,MaxDeltaPhi);
Yields_Central_1->SetXTitle("#Delta#phi of the correlation (rad)");
Yields_Central_1->SetYTitle("Yield_{Central}");
Yields_Periph_1 = new TH1F("Yields_Periph_1",
"Yield of J/#psi-tkl in Periph collisions wrt #Delta#phi",
NbinsDeltaPhi,MinDeltaPhi,MaxDeltaPhi);
Yields_Periph_1->SetXTitle("#Delta#phi of the correlation (rad)");
Yields_Periph_1->SetYTitle("Yield_{Periph}");
Yields_Difference_1 = new TH1F("Yields_Difference_1",
"Subtracted yield of J/#psi-tkl (Central-Periph) wrt #Delta#phi",
NbinsDeltaPhi,MinDeltaPhi,MaxDeltaPhi);
Yields_Difference_1->SetXTitle("#Delta#phi of the correlation (rad)");
Yields_Difference_1->SetYTitle("Yield_{Subtracted}");
coefficients0 = new TH1F("coefficients0",
"0^{th} Fourier coefficient wrt dimuon mass",
NbinsInvMass,MassBins);
coefficients0->SetXTitle("Mass of dimuon (GeV/c^{2})");
coefficients0->SetYTitle("0^{th} Fourier coefficient");
coefficients1 = new TH1F("coefficients1",
"1^{st} Fourier coefficient wrt dimuon mass",
NbinsInvMass,MassBins);
coefficients1->SetXTitle("Mass of dimuon (GeV/c^{2})");
coefficients1->SetYTitle("1^{st} Fourier coefficient");
coefficients2 = new TH1F("coefficients2",
"2^{nd} Fourier coefficient wrt dimuon mass",
NbinsInvMass,MassBins);
coefficients2->SetXTitle("Mass of dimuon (GeV/c^{2})");
coefficients2->SetYTitle("2^{nd} Fourier coefficient");
baselines0 = new TH1F("baselines0",
"Baseline_{Periph} wrt dimuon mass",
NbinsInvMass,MassBins);
baselines0->SetXTitle("Mass of dimuon (GeV/c^{2})");
baselines0->SetYTitle("Baseline_{Periph}");
c2b0 = new TH1F("c2b0",
"2^{nd} Fourier coefficient + Baseline_{Periph} wrt dimuon mass",
NbinsInvMass,MassBins);
c2b0->SetXTitle("Mass of dimuon (GeV/c^{2})");
c2b0->SetYTitle("2^{nd} Fourier coefficient + Baseline_{Periph}");
V2JPsiTkl = new TH1F("V2JPsiTkl",
"V_{2,J/#psi-tkl} wrt dimuon mass",
NbinsInvMass,MassBins);
V2JPsiTkl->SetXTitle("Mass of dimuon (GeV/c^{2})");
V2JPsiTkl->SetYTitle("V_{2,J/#psi-tkl}");
char hname[200];
char hname1[200];
char hname2[200];
for (int j=0; j <NbinsInvMass; j++){
sprintf(hname1,"Projected yield in Mass Bin %f GeV to %f GeV - Central",MassBins[j],MassBins[j+1]);
sprintf(hname2,"Projected yield in Mass Bin, #m_{#mu#mu} #in [%.2f,%.2f] GeV/c^{2} - Central",MassBins[j],MassBins[j+1]);
Yield_Central_MassBin[j] = new TH1F(hname1, hname2,NbinsDeltaPhi,MinDeltaPhi,MaxDeltaPhi);
}
for (int j=0; j <NbinsInvMass; j++){
sprintf(hname1,"Projected yield in Mass Bin %f GeV to %f GeV - Periph",MassBins[j],MassBins[j+1]);
sprintf(hname2,"Projected yield in Mass Bin, #m_{#mu#mu} #in [%.2f,%.2f] GeV/c^{2} - Periph",MassBins[j],MassBins[j+1]);
Yield_Periph_MassBin[j] = new TH1F(hname1, hname2,NbinsDeltaPhi,MinDeltaPhi,MaxDeltaPhi);
}
for (int j=0; j <NbinsInvMass; j++){
sprintf(hname1,"Projected yield in Mass Bin %f GeV to %f GeV - Difference",MassBins[j],MassBins[j+1]);
sprintf(hname2,"Projected yield in Mass Bin, #m_{#mu#mu} #in [%.2f,%.2f] GeV/c^{2} - Difference",MassBins[j],MassBins[j+1]);
Yield_Difference_MassBin[j] = new TH1F(hname1, hname2,NbinsDeltaPhi,MinDeltaPhi,MaxDeltaPhi);
}
TH1I* InvMass_Central(NULL);
TH1I* InvMass_Periph(NULL);
TH1I* InvMass_Neither(NULL);
// TH1F* YieldWrtMass_PhiBin_Central[NbinsDeltaPhi] = { NULL };
// TH1F* YieldWrtMass_PhiBin_Periph[NbinsDeltaPhi] = { NULL };
//
// for (int j=0; j<NbinsDeltaPhi; j++){
// sprintf(hname,"Yield wrt Mass, Phi: %d pi/6 to %d pi/6 - Central",j-3,j-2);
// sprintf(hname2,"YieldWrtMassPhiBin_Central_%d",j);
// YieldWrtMass_PhiBin_Central[j] = new TH1F(hname2, hname,NbinsInvMass,MinInvMass,MaxInvMass);
// }
//
// for (int j=0; j<NbinsDeltaPhi; j++){
// sprintf(hname,"Yield wrt Mass, Phi: %d pi/6 to %d pi/6 - Periph",j-3,j-2);
// sprintf(hname2,"YieldWrtMassPhiBin_Periph_%d",j);
// YieldWrtMass_PhiBin_Periph[j] = new TH1F(hname2, hname,NbinsInvMass,MinInvMass,MaxInvMass);
// }
for(int i=0; i<NbBinsCent; i++){
for(int k=0; k<NbinsInvMass; k++){
char hname[200];
sprintf(hname,"Yields %d %d ",i,k);
Yields[i][k] = new TH1F(hname,
"Yields Correlation wrt #Delta#phi",
NbinsDeltaPhi,MinDeltaPhi,MaxDeltaPhi);
Yields[i][k]->SetXTitle("Correlation #Delta#phi (rad)");
for(int j=0; j<NbBinsZvtx; j++){
sprintf(hname,"Correlations %d %d %d ",i,j,k);
Correlations[i][j][k] = new TH2F(hname,
"Correlation #Delta#eta wrt #Delta#phi",
NbinsDeltaPhi,MinDeltaPhi,MaxDeltaPhi,NbinsDeltaEta,MinDeltaEta,MaxDeltaEta);
Correlations[i][j][k]->SetXTitle("Correlation #Delta#phi (rad)");
Correlations[i][j][k]->SetYTitle("Correlation #Delta#eta");
sprintf(hname,"CorrelationsME %d %d %d ",i,j,k);
CorrelationsME[i][j][k] = new TH2I(hname,
"MixedEvent Correlation #Delta#eta wrt #Delta#phi",
NbinsDeltaPhi,MinDeltaPhi,MaxDeltaPhi,NbinsDeltaEta,MinDeltaEta,MaxDeltaEta);
CorrelationsME[i][j][k]->SetXTitle("Correlation #Delta#phi (rad)");
CorrelationsME[i][j][k]->SetYTitle("Correlation #Delta#eta");
sprintf(hname,"CorrelationsMEScaled %d %d %d ",i,j,k);
CorrelationsMEScaled[i][j][k] = new TH2F(hname,
"MixedEvent Correlation #Delta#eta wrt #Delta#phi - Scaled",
NbinsDeltaPhi,MinDeltaPhi,MaxDeltaPhi,NbinsDeltaEta,MinDeltaEta,MaxDeltaEta);
CorrelationsMEScaled[i][j][k]->SetXTitle("Correlation #Delta#phi (rad)");
CorrelationsMEScaled[i][j][k]->SetYTitle("Correlation #Delta#eta");
}
}
}
for(int i=0; i<NbBinsCent; i++){
char hname[200];
sprintf(hname,"Yields Tkl %d ",i);
YieldsTkl[i] = new TH1F(hname,
"Yields Correlation Tkl wrt #Delta#phi",
NbinsDeltaPhiTKL,MinDeltaPhi,MaxDeltaPhi);
YieldsTkl[i]->SetXTitle("Correlation #Delta#phi (rad)");
sprintf(hname,"Yields Tkl ShortCMS %d ",i);
YieldsTklShortCMS[i] = new TH1F(hname,
"Yields Correlation Tkl ShortCMS wrt #Delta#phi",
NbinsDeltaPhiTKL,MinDeltaPhi,MaxDeltaPhi);
YieldsTklShortCMS[i]->SetXTitle("Correlation #Delta#phi (rad)");
sprintf(hname,"Yields Tkl LongCMS %d ",i);
YieldsTklLongCMS[i] = new TH1F(hname,
"Yields Correlation Tkl LongCMS wrt #Delta#phi",
NbinsDeltaPhiTKL,MinDeltaPhi,MaxDeltaPhi);
YieldsTklLongCMS[i]->SetXTitle("Correlation #Delta#phi (rad)");
for(int j=0; j<NbBinsZvtx; j++){
sprintf(hname,"Correlations Tkl %d %d ",i,j);
CorrelationsTkl[i][j] = new TH2I(hname,
"Correlation Tkl #Delta#eta wrt #Delta#phi",
NbinsDeltaPhiTKL,MinDeltaPhi,MaxDeltaPhi,NbinsDeltaEtaTKL,MinDeltaEtaTKL,MaxDeltaEtaTKL);
CorrelationsTkl[i][j]->SetXTitle("Correlation #Delta#phi (rad)");
CorrelationsTkl[i][j]->SetYTitle("Correlation #Delta#eta");
sprintf(hname,"CorrelationsME Tkl %d %d ",i,j);
CorrelationsTklME[i][j] = new TH2I(hname,
"MixedEvent Correlation Tkl #Delta#eta wrt #Delta#phi",
NbinsDeltaPhiTKL,MinDeltaPhi,MaxDeltaPhi,NbinsDeltaEtaTKL,MinDeltaEtaTKL,MaxDeltaEtaTKL);
CorrelationsTklME[i][j]->SetXTitle("Correlation #Delta#phi (rad)");
CorrelationsTklME[i][j]->SetYTitle("Correlation #Delta#eta");
sprintf(hname,"CorrelationsMEScaled Tkl %d %d ",i,j);
CorrelationsTklMEScaled[i][j] = new TH2F(hname,
"MixedEvent Correlation Tkl #Delta#eta wrt #Delta#phi - Scaled",
NbinsDeltaPhiTKL,MinDeltaPhi,MaxDeltaPhi,NbinsDeltaEtaTKL,MinDeltaEtaTKL,MaxDeltaEtaTKL);
CorrelationsTklMEScaled[i][j]->SetXTitle("Correlation #Delta#phi (rad)");
CorrelationsTklMEScaled[i][j]->SetYTitle("Correlation #Delta#eta");
sprintf(hname,"Correlations Tkl ShortCMS %d %d ",i,j);
CorrelationsTklShortCMS[i][j] = new TH2I(hname,
"Correlation Tkl ShortCMS #Delta#eta wrt #Delta#phi",
NbinsDeltaPhiTKL,MinDeltaPhi,MaxDeltaPhi,NbinsDeltaEtaTKL,MinDeltaEtaTKL,MaxDeltaEtaTKL);
CorrelationsTklShortCMS[i][j]->SetXTitle("Correlation #Delta#phi (rad)");
CorrelationsTklShortCMS[i][j]->SetYTitle("Correlation #Delta#eta");
sprintf(hname,"CorrelationsME Tkl ShortCMS %d %d ",i,j);
CorrelationsTklMEShortCMS[i][j] = new TH2I(hname,
"MixedEvent Correlation Tkl ShortCMS #Delta#eta wrt #Delta#phi",
NbinsDeltaPhiTKL,MinDeltaPhi,MaxDeltaPhi,NbinsDeltaEtaTKL,MinDeltaEtaTKL,MaxDeltaEtaTKL);
CorrelationsTklMEShortCMS[i][j]->SetXTitle("Correlation #Delta#phi (rad)");
CorrelationsTklMEShortCMS[i][j]->SetYTitle("Correlation #Delta#eta");
sprintf(hname,"CorrelationsME Tkl ShortCMS Scaled %d %d ",i,j);
CorrelationsTklMEScaledShortCMS[i][j] = new TH2F(hname,
"MixedEvent Correlation Tkl ShortCMS #Delta#eta wrt #Delta#phi - Scaled",
NbinsDeltaPhiTKL,MinDeltaPhi,MaxDeltaPhi,NbinsDeltaEtaTKL,MinDeltaEtaTKL,MaxDeltaEtaTKL);
CorrelationsTklMEScaledShortCMS[i][j]->SetXTitle("Correlation #Delta#phi (rad)");
CorrelationsTklMEScaledShortCMS[i][j]->SetYTitle("Correlation #Delta#eta");
sprintf(hname,"Correlations Tkl LongCMS %d %d ",i,j);
CorrelationsTklLongCMS[i][j] = new TH2I(hname,
"Correlation Tkl LongCMS #Delta#eta wrt #Delta#phi",
NbinsDeltaPhiTKL,MinDeltaPhi,MaxDeltaPhi,NbinsDeltaEtaTKL,MinDeltaEtaTKL,MaxDeltaEtaTKL);
CorrelationsTklLongCMS[i][j]->SetXTitle("Correlation #Delta#phi (rad)");
CorrelationsTklLongCMS[i][j]->SetYTitle("Correlation #Delta#eta");
sprintf(hname,"CorrelationsME Tkl LongCMS %d %d ",i,j);
CorrelationsTklMELongCMS[i][j] = new TH2I(hname,
"MixedEvent Correlation Tkl LongCMS #Delta#eta wrt #Delta#phi",
NbinsDeltaPhiTKL,MinDeltaPhi,MaxDeltaPhi,NbinsDeltaEtaTKL,MinDeltaEtaTKL,MaxDeltaEtaTKL);
CorrelationsTklMELongCMS[i][j]->SetXTitle("Correlation #Delta#phi (rad)");
CorrelationsTklMELongCMS[i][j]->SetYTitle("Correlation #Delta#eta");
sprintf(hname,"CorrelationsME Tkl LongCMS Scaled %d %d ",i,j);
CorrelationsTklMEScaledLongCMS[i][j] = new TH2F(hname,
"MixedEvent Correlation Tkl LongCMS #Delta#eta wrt #Delta#phi - Scaled",
NbinsDeltaPhiTKL,MinDeltaPhi,MaxDeltaPhi,NbinsDeltaEtaTKL,MinDeltaEtaTKL,MaxDeltaEtaTKL);
CorrelationsTklMEScaledLongCMS[i][j]->SetXTitle("Correlation #Delta#phi (rad)");
CorrelationsTklMEScaledLongCMS[i][j]->SetYTitle("Correlation #Delta#eta");
}
}
for(int i=0; i<NbBinsCent; i++){
for(int p=0; p<NbinsDeltaPhi; p++){
char hname[200];
sprintf(hname,"Yields PhiBin %d %d ",i,p);
Yields_PhiBin[i][p] = new TH1F(hname,
"Yields Correlation wrt dimuon mass",
NbinsInvMass,MassBins);
Yields_PhiBin[i][p]->SetXTitle("Correlation dimuon Inv Mass (GeV/c^{2})");
}
}
for(int p=0; p<NbinsDeltaPhi; p++){
char hname[200];
char hname2[200];
sprintf(hname,"Yields PhiBin %d All C",p);
YieldWrtMass_allC[p] = new TH1F(hname,
"Yields dimuon-tkl wrt dimuon mass, all C",
NbinsInvMass,MassBins);
YieldWrtMass_allC[p]->SetXTitle("Correlation dimuon Inv Mass (GeV/c^{2})");
sprintf(hname,"Yields PhiBin %d Periph",p);
sprintf(hname2,"Yields dimuon-tkl wrt wrt dimuon mass, Periph, #Delta#phi #in [#frac{%d#pi}{6},#frac{%d#pi}{6}]",p-3, p-2);
YieldWrtMass_Periph[p] = new TH1F(hname,
hname2,
NbinsInvMass,MassBins);
YieldWrtMass_Periph[p]->SetXTitle("Correlation dimuon Inv Mass (GeV/c^{2})");
sprintf(hname,"Yields PhiBin %d Central",p);
sprintf(hname2,"Yields dimuon-tkl wrt wrt dimuon mass, Central, #Delta#phi #in [#frac{%d#pi}{6},#frac{%d#pi}{6}]",p-3, p-2);
YieldWrtMass_Central[p] = new TH1F(hname,
hname2,
NbinsInvMass,MassBins);
YieldWrtMass_Central[p]->SetXTitle("Correlation dimuon Inv Mass (GeV/c^{2})");
}
Yield_allC = new TH1F("Yield_allC",
"Yields dimuon-tkl wrt #Delta#phi, all C, all mass",
NbinsDeltaPhi,MinDeltaPhi,MaxDeltaPhi);
Yield_allC->SetXTitle("#Delta#phi (rad)");
Yield_allC->SetYTitle("Yields");
Yield_Central = new TH1F("Yield_Central",
"Yields dimuon-tkl wrt #Delta#phi, Central, 3.0-3.25 GeV",
NbinsDeltaPhi,MinDeltaPhi,MaxDeltaPhi);
Yield_Central->SetXTitle("#Delta#phi (rad)");
Yield_Central->SetYTitle("Yields_{Central}");
Yield_Periph = new TH1F("Yield_Periph",
"Yields dimuon-tkl wrt #Delta#phi, Periph, 3.0-3.25 GeV",
NbinsDeltaPhi,MinDeltaPhi,MaxDeltaPhi);
Yield_Periph->SetXTitle("#Delta#phi (rad)");
Yield_Periph->SetYTitle("Yields_{Periph}");
Yield_Difference = new TH1F("Yield_Difference",
"Yields dimuon-tkl wrt #Delta#phi, Central-Periph, all mass",
NbinsDeltaPhi,MinDeltaPhi,MaxDeltaPhi);
Yield_Difference->SetXTitle("#Delta#phi (rad)");
Yield_Difference->SetXTitle("Yields_{Subtracted}");
Yield_tampon = new TH1F("Yield_tampon",
"Yields dimuon-tkl wrt #Delta#phi, all C, all mass",
NbinsDeltaPhi,MinDeltaPhi,MaxDeltaPhi);
Yield_tampon->SetXTitle("#Delta#phi (rad)");
Yield_tampon->SetYTitle("Yields");
YieldWrtMass_tampon = new TH1F("YieldWrtMass_tampon",
"Yields dimuon-tkl wrt dimuon mass",
NbinsInvMass,MassBins);
YieldWrtMass_tampon->SetXTitle("Correlation dimuon Inv Mass (GeV/c^{2})");
YieldWrtMass_tampon->SetYTitle("Yields");
YieldTkl_allC = new TH1F("YieldTkl_allC",
"Yields tkl-tkl wrt #Delta#phi, all C, all mass",
NbinsDeltaPhiTKL,MinDeltaPhi,MaxDeltaPhi);
YieldTkl_allC->SetXTitle("#Delta#phi (rad)");
YieldTkl_allC->SetXTitle("Yields");
YieldTkl_Central = new TH1F("YieldTkl_Central",
"Yields tkl-tkl wrt #Delta#phi, Central",
NbinsDeltaPhiTKL,MinDeltaPhi,MaxDeltaPhi);
YieldTkl_Central->SetXTitle("#Delta#phi (rad)");
YieldTkl_Central->SetYTitle("Yields_{Central}");
YieldTkl_Periph = new TH1F("YieldTkl_Periph",
"Yields tkl-tkl wrt #Delta#phi, Periph",
NbinsDeltaPhiTKL,MinDeltaPhi,MaxDeltaPhi);
YieldTkl_Periph->SetXTitle("#Delta#phi (rad)");
YieldTkl_Periph->SetYTitle("Yields_{Periph}");
YieldTkl_Difference = new TH1F("YieldTkl_Difference",
"Yields tkl-tkl wrt #Delta#phi, Central-Periph, all mass",
NbinsDeltaPhiTKL,MinDeltaPhi,MaxDeltaPhi);
YieldTkl_Difference->SetXTitle("#Delta#phi (rad)");
YieldTkl_Difference->SetYTitle("Yields_{Subtracted}");
YieldTkl_tampon = new TH1F("YieldTkl_tampon",
"Yields tkl-tkl wrt #Delta#phi, all C, all mass",
NbinsDeltaPhiTKL,MinDeltaPhi,MaxDeltaPhi);
YieldTkl_tampon->SetXTitle("#Delta#phi (rad)");
YieldTkl_tampon->SetYTitle("Yields");
YieldTkl_allCShortCMS = new TH1F("YieldTkl_allCShortCMS",
"Yields Correlation Tkl ShortCMS wrt #Delta#phi, all C, all mass",
NbinsDeltaPhiTKL,MinDeltaPhi,MaxDeltaPhi);
YieldTkl_allCShortCMS->SetXTitle("Correlation #Delta#phi (rad)");
YieldTkl_CentralShortCMS = new TH1F("YieldTkl_CentralShortCMS",
"Yields Correlation Tkl ShortCMS wrt #Delta#phi, Central",
NbinsDeltaPhiTKL,MinDeltaPhi,MaxDeltaPhi);
YieldTkl_CentralShortCMS->SetXTitle("Correlation #Delta#phi (rad)");
YieldTkl_PeriphShortCMS = new TH1F("YieldTkl_PeriphShortCMS",
"Yields Correlation Tkl ShortCMS wrt #Delta#phi, Periph",
NbinsDeltaPhiTKL,MinDeltaPhi,MaxDeltaPhi);
YieldTkl_PeriphShortCMS->SetXTitle("Correlation #Delta#phi (rad)");
YieldTkl_DifferenceShortCMS = new TH1F("YieldTkl_DifferenceShortCMS",
"Yields Correlation Tkl ShortCMS wrt #Delta#phi, Central-Periph, all mass",
NbinsDeltaPhiTKL,MinDeltaPhi,MaxDeltaPhi);
YieldTkl_DifferenceShortCMS->SetXTitle("Correlation #Delta#phi (rad)");
YieldTkl_allCLongCMS = new TH1F("YieldTkl_allCLongCMS",
"Yields Correlation Tkl LongCMS wrt #Delta#phi, all C, all mass",
NbinsDeltaPhiTKL,MinDeltaPhi,MaxDeltaPhi);
YieldTkl_allCLongCMS->SetXTitle("Correlation #Delta#phi (rad)");
YieldTkl_CentralLongCMS = new TH1F("YieldTkl_CentralLongCMS",
"Yields Correlation Tkl LongCMS wrt #Delta#phi, Central",
NbinsDeltaPhiTKL,MinDeltaPhi,MaxDeltaPhi);
YieldTkl_CentralLongCMS->SetXTitle("Correlation #Delta#phi (rad)");
YieldTkl_PeriphLongCMS = new TH1F("YieldTkl_PeriphLongCMS",
"Yields Correlation Tkl LongCMS wrt #Delta#phi, Periph",
NbinsDeltaPhiTKL,MinDeltaPhi,MaxDeltaPhi);
YieldTkl_PeriphLongCMS->SetXTitle("Correlation #Delta#phi (rad)");
YieldTkl_DifferenceLongCMS = new TH1F("YieldTkl_DifferenceLongCMS",
"Yields Correlation Tkl LongCMS wrt #Delta#phi, Central-Periph, all mass",
NbinsDeltaPhiTKL,MinDeltaPhi,MaxDeltaPhi);
YieldTkl_DifferenceLongCMS->SetXTitle("Correlation #Delta#phi (rad)");
char haxis[200];
sprintf(haxis, "Count within bin of %d MeV/c^{2}", 1000*(MaxInvMass-MinInvMass)/NbinsDimuInvMass);
hnseg = new TH1I("hnseg",
"Invariant mass of dimuon",
NbinsDimuInvMass,MinInvMass,MaxInvMass);
hnseg->SetXTitle("Mass of dimuon (GeV/c^{2})");
hnseg->SetYTitle(haxis);
hDPhi = new TH1F("hDPhi",
"#Delta#Phi of Tracklet",
10000,-TMath::Pi(),TMath::Pi());
hDPhi->SetXTitle("Tracklet #Delta#Phi (rad)");
hDPhi->SetYTitle("Count");
InvMass_Central = new TH1I("InvMass_Central",
"Invariant mass of dimuon - Central",
NbinsDimuInvMass,MinInvMass,MaxInvMass);
InvMass_Central->SetXTitle("Mass of dimuon (GeV/c^{2})");
InvMass_Central->SetYTitle(haxis);
InvMass_Periph = new TH1I("InvMass_Periph",
"Invariant mass of dimuon - Periph",
NbinsDimuInvMass,MinInvMass,MaxInvMass);
InvMass_Periph->SetXTitle("Mass of dimuon (GeV/c^{2})");
InvMass_Periph->SetYTitle(haxis);
InvMass_Neither = new TH1I("InvMass_Neither",
"Invariant mass of dimuon - Neither",
NbinsDimuInvMass,MinInvMass,MaxInvMass);
InvMass_Neither->SetXTitle("Mass of dimuon (GeV/c^{2})");
InvMass_Neither->SetYTitle(haxis);
hnseg2 = new TH1F("hnseg2",
"p_{T} of dimuon",
100,0,10);
hnseg2->SetXTitle("Dimuon p_{T} (GeV/c)");
hnseg2->SetYTitle("Count");
hnseg3 = new TH1F("hnseg3",
"#eta of dimuon",
1000,-10,0);
hnseg3->SetXTitle("Dimuon #eta");
hnseg3->SetYTitle("Count");
hnseg4 = new TH1F("hnseg4",
"y of dimuon",
1000,-2.4,-4.2);
hnseg4->SetXTitle("Dimuon y");
hnseg4->SetYTitle("Count");
hnseg5 = new TH1F("hnseg5",
"#phi of dimuon",
1000,0, 2*TMath::Pi());
hnseg5->SetXTitle("Dimuon #phi (rad)");
hnseg5->SetYTitle("Count");
hnseg6 = new TH1F("hnseg6",
"Correlation #Delta#phi",
1000,MinDeltaPhi,MaxDeltaPhi);
hnseg6->SetXTitle("Correlation #Delta#phi (rad)");
hnseg6->SetYTitle("Count");
hnseg7 = new TH1F("hnseg7",
"Correlation #Delta#eta",
1000,MinDeltaEta,MaxDeltaEta);
hnseg7->SetXTitle("Correlation #Delta#eta");
hnseg7->SetYTitle("Count");
hnsegSigma = new TH2F("hnsegSigma",
"Z_{vtx} resolution wrt NContributors",
60,0,60,1000,0,10);
hnsegSigma->SetXTitle("NContributors");
hnsegSigma->SetYTitle("Z_{vtx} Resolution (SPD)");
hnseg8 = new TH2F("hnseg8",
"Correlation #Delta#eta wrt #Delta#phi",
NbinsDeltaPhi,MinDeltaPhi,MaxDeltaPhi,NbinsDeltaEta,MinDeltaEta,MaxDeltaEta);
hnseg8->SetXTitle("Correlation #Delta#phi (rad)");
hnseg8->SetYTitle("Correlation #Delta#eta");
hnseg8ME = new TH2F("hnseg8ME",
"MixedEvent Correlation #Delta#eta wrt #Delta#phi",
NbinsDeltaPhi,MinDeltaPhi,MaxDeltaPhi,NbinsDeltaEta,MinDeltaEta,MaxDeltaEta);
hnseg8ME->SetXTitle("Correlation #Delta#phi (rad)");
hnseg8ME->SetYTitle("Correlation #Delta#eta");
hnseg8_proj = new TH1F("hnseg8_proj", "Correlation wrt #Delta#eta, projection",NbinsDeltaEta,MinDeltaEta,MaxDeltaEta);
hnseg8_proj->SetXTitle("Correlation #Delta#eta");
hnseg8_proj->SetYTitle("Correlation mean");
hnseg8Tkl_proj = new TH1F("hnseg8Tkl_proj", "Correlation tkl-tkl wrt #Delta#eta, projection",NbinsDeltaEtaTKL,MinDeltaEtaTKL,MaxDeltaEtaTKL);
hnseg8Tkl_proj->SetXTitle("Correlation #Delta#eta");
hnseg8Tkl_proj->SetYTitle("Correlation mean");
hnseg8ME_proj = new TH1D("hnseg8ME_proj", "MixedEvent Correlation wrt #Delta#eta, projection",NbinsDeltaEta,MinDeltaEta,MaxDeltaEta);
hnseg8ME_proj->SetXTitle("Correlation #Delta#eta");
hnseg8ME_proj->SetYTitle("Correlation mean");
hnseg8TklME_proj = new TH1D("hnseg8TklME_proj", "MixedEvent Correlation tkl-tkl wrt #Delta#eta, projection",NbinsDeltaEtaTKL,MinDeltaEtaTKL,MaxDeltaEtaTKL);
hnseg8TklME_proj->SetXTitle("Correlation #Delta#eta");
hnseg8TklME_proj->SetYTitle("Correlation mean");
Sijk = new TH1F("Sijk",
"Sijk",
NbinsDeltaPhi,MinDeltaPhi,MaxDeltaPhi);
Sijk->SetXTitle("Correlation #Delta#phi (rad)");
Mijk = new TH1F("Mijk",
"Mijk",
NbinsDeltaPhi,MinDeltaPhi,MaxDeltaPhi);
Mijk->SetXTitle("Correlation #Delta#phi (rad)");
SoverMijk = new TH1F("SoverMijk",
"SoverMijk",
NbinsDeltaPhi,MinDeltaPhi,MaxDeltaPhi);
SoverMijk->SetXTitle("Correlation #Delta#phi (rad)");
SoverMik = new TH1F("SoverMik",
"SoverMik",
NbinsDeltaPhi,MinDeltaPhi,MaxDeltaPhi);
SoverMik->SetXTitle("Correlation #Delta#phi (rad)");
Sij = new TH1F("Sij",
"Sij",
NbinsDeltaPhiTKL,MinDeltaPhi,MaxDeltaPhi);
Sij->SetXTitle("Correlation #Delta#phi (rad)");
Mij = new TH1F("Mij",
"Mij",
NbinsDeltaPhiTKL,MinDeltaPhi,MaxDeltaPhi);
Mij->SetXTitle("Correlation #Delta#phi (rad)");
SoverMij = new TH1F("SoverMij",
"SoverMij",
NbinsDeltaPhiTKL,MinDeltaPhi,MaxDeltaPhi);
SoverMij->SetXTitle("Correlation #Delta#phi (rad)");
SoverMi = new TH1F("SoverMi",
"SoverMi",
NbinsDeltaPhiTKL,MinDeltaPhi,MaxDeltaPhi);
SoverMi->SetXTitle("Correlation #Delta#phi (rad)");
hnseg9 = new TH2F("hnseg9",
"Tracklet #eta wrt z_{vtx}",
100,-15,15,100,-2.5,2.5);
hnseg9->SetXTitle("Z_{vtx} (cm)");
hnseg9->SetYTitle("Tracklet #eta");
hnseg10 = new TH2F("hnseg10",
"Number of tracklets wrt V0M percentile",
100,0,100,100,0,400);
hnseg10->SetXTitle("V0M Percentile");
hnseg10->SetYTitle("Tracklet count");
// Double_t binsPt[7] = {0,2,3,4,6,8,12};
hPtWrtMassInv[0] = new TH2F("hPtWrtMassInv_0",
"p_{T} wrt dimuon inv mass - All centralities",
NbinsDimuInvMass,MinInvMass,MaxInvMass,NbPtBins,PtBins);
hPtWrtMassInv[0]->SetXTitle("Dimuon inv mass (GeV/c^{2})");
hPtWrtMassInv[0]->SetYTitle("p_{T} (GeV/c)");
hPtWrtMassInv[1] = new TH2F("hPtWrtMassInv_1",
"p_{T} wrt dimuon inv mass - Central",
NbinsDimuInvMass,MinInvMass,MaxInvMass,NbPtBins,PtBins);
hPtWrtMassInv[1]->SetXTitle("Dimuon inv mass (GeV/c^{2})");
hPtWrtMassInv[1]->SetYTitle("p_{T} (GeV/c)");
hPtWrtMassInv[2] = new TH2F("hPtWrtMassInv_2",
"p_{T} wrt dimuon inv mass - Periph",
NbinsDimuInvMass,MinInvMass,MaxInvMass,NbPtBins,PtBins);
hPtWrtMassInv[2]->SetXTitle("Dimuon inv mass (GeV/c^{2})");
hPtWrtMassInv[2]->SetYTitle("p_{T} (GeV/c)");
CentV0M = new TH1F("CentV0M",
"Distribution of CentV0M",
100,0,100);
CentV0M->SetXTitle("CentV0M");
CentV0M->SetYTitle("Count");
CentTKL = new TH1F("CentTKL",
"Distribution of CentTKL",
100,0,100);
CentTKL->SetXTitle("CentTKL");
CentTKL->SetYTitle("Count");
CentCL0 = new TH1F("CentCL0",
"Distribution of CentCL0",
100,0,100);
CentCL0->SetXTitle("CentCL0");
CentCL0->SetYTitle("Count");
CentCL1 = new TH1F("CentCL1",
"Distribution of CentCL1",
100,0,100);
CentCL1->SetXTitle("CentCL1");
CentCL1->SetYTitle("Count");
CentSPDTracklets = new TH1F("CentSPDTracklets",
"Distribution of CentSPDTracklets",
100,0,100);
CentSPDTracklets->SetXTitle("CentSPDTracklets");
CentSPDTracklets->SetYTitle("Count");
CentSPDClusters = new TH1F("CentSPDClusters",