1 /* Copyright(c) 1998-2014, ALICE Experiment at CERN, All rights reserved. *
2 * See cxx source for full Copyright notice */
4 // Short comment describing what this class does needed!
6 //===========================================================
8 // Created Thu Apr 17 12:40:29 EEST 2008 by classmaker
10 //===========================================================
12 #ifndef ALIJCORRELATIONS_H
13 #define ALIJCORRELATIONS_H
19 #include <TRandom3.h> //FK//
21 #include <AliJConst.h>
25 class AliJCorrelations;
30 class AliJCorrelations {
34 AliJCorrelations( AliJCard *cardIn, AliJHistos *histosIn);
36 virtual ~AliJCorrelations(){;} //destructor
38 AliJCorrelations(const AliJCorrelations& in);
39 AliJCorrelations& operator=(const AliJCorrelations& obj);
41 void PrintOut(){cout<<"Real correl = "<<fnReal<<" mixed = "<<fnMix<<endl;}
43 void FillHisto(corrFillType cFTyp, fillType fTyp, int cBin, int zBin, AliJBaseTrack *ftk1, AliJBaseTrack *ftk2);
44 void FillAzimuthHistos (fillType fTyp, int cBin, int zBin, AliJBaseTrack *ftk1, AliJBaseTrack *ftk2);
46 double GetGeoAccCorrFlat(double deltaEta);
47 double GetGeoAccCorrIncl(double deltaEta);
49 void SetSampligInclusive(){fsamplingMethod = 1;}
52 double DeltaPhi(double phi1, double phi2);
54 //double DeltaPhi(double phi1, double phi2) {
55 // double res = atan2(sin(phi1-phi2), cos(phi1-phi2));
56 // //return res>-kJPi/3.0 ? res : kJTwoPi+res ;
57 // return res > dPhiRange ? res : kJTwoPi+res ;
62 AliJCard* fcard; // card
63 AliJHistos* fhistos; // histos
64 int fnReal; // comment me
65 int fnMix; // comment me
66 int fsumTriggerAndAssoc; // comment me
67 int fsamplingMethod; // comment me
68 int fIsHeavyIon; // comment me
69 double fawayPhiGap; // comment me
70 double fDPhiUERegion[2]; // comment me
71 double fRGap[30]; // comment me
72 double fmaxEtaRange; // comment me
74 int fRSignalBin; // comment me
76 TRandom3 *frandom; // comment me
78 double fptt; // pT of the trigger particle in the correlation loop
79 double fpta; // pT ot the asociated particle in the correlation loop
80 double fTrackPairEfficiency; // pair efficiency for the tracks in the correlation loop
81 bool fIsIsolatedTrigger; // Tells whether the trigger is isolated or not
82 int fpttBin; // Bin index for the trigger pT bin
83 int fptaBin; // Bin index for the associated pT bin
84 double fPhiTrigger; // Azimuthal angle of the trigger particle
85 double fPhiAssoc; // Asimuthal angle of the associated particle
86 double fDeltaPhi; // Difference of the azimuthal angles of trigger and associated particles
87 double fDeltaPhiPiPi; // The same as above but measured from -pi to pi
88 double fDeltaEta; // Difference of the pseudorapidities of the trigger and associated particles
89 double fXlong; // The xlong value of the trigger and associated particles
91 bool fNearSide; // true if near side correlation, false if away side
92 int fEtaGapBin; // Bin index for the current eta gap
93 int fPhiGapBinNear; // Bin index for the phi gap in the near side
94 int fPhiGapBinAway; // Bin index for the phi gap in the away side
95 int fRGapBinNear; // Bin index for the R gap in the near side
96 int fRGapBinAway; // Bin index for the R gap in the away side
97 int fCentralityBin; // Bin index for the centrality bin
98 int fXlongBin; // Bin index for xlong bin
100 bool fIsLikeSign; // True = like sign correlation, false = unlike sign correlation
102 double fGeometricAcceptanceCorrection; // Acceptance correction due to the detector geometry
106 void FillPairPtAndCosThetaStarHistograms(fillType fTyp, AliJBaseTrack *ftk1, AliJBaseTrack *ftk2);
107 void FillXeHistograms(fillType fTyp);
108 void FillJtHistograms(fillType fTyp, AliJBaseTrack *ftk1, AliJBaseTrack *ftk2, bool fill2DBackground);
109 void FillDeltaEtaHistograms(fillType fTyp, int zBin);
110 void FillDeltaPhiHistograms(fillType fTyp);
111 void FillPtaHistograms(fillType fTyp);
112 void FillIAAAndMoonHistograms(fillType fTyp, int zBin);