]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PWGCF/Correlations/JCORRAN/AliJCorrelations.h
JCORRAN code update from DongJo
[u/mrichter/AliRoot.git] / PWGCF / Correlations / JCORRAN / AliJCorrelations.h
1 /* Copyright(c) 1998-2014, ALICE Experiment at CERN, All rights reserved. *
2  * See cxx source for full Copyright notice */
3
4 // Short comment describing what this class does needed!
5
6 //===========================================================
7 // AliJCorrelations.h
8 //   Created  Thu Apr 17 12:40:29 EEST 2008  by classmaker
9 //   Jan Rak
10 //===========================================================
11
12 #ifndef ALIJCORRELATIONS_H
13 #define ALIJCORRELATIONS_H
14
15 #include <iostream>
16 #include <fstream>
17 #include <stdlib.h>
18 #include <stdio.h>
19 #include <TRandom3.h>  //FK//
20
21 #include  <AliJConst.h>
22
23 using namespace std;
24
25 class AliJCorrelations;
26 class AliJHistos;
27 class AliJBaseTrack;
28 class AliJCard;
29
30 class AliJCorrelations {
31   
32 public:
33   
34   AliJCorrelations( AliJCard *cardIn, AliJHistos *histosIn);
35   
36   virtual ~AliJCorrelations(){;}    //destructor
37   AliJCorrelations();
38   AliJCorrelations(const AliJCorrelations& in);
39   AliJCorrelations& operator=(const AliJCorrelations& obj);
40   
41   void PrintOut(){cout<<"Real correl = "<<fnReal<<"  mixed = "<<fnMix<<endl;}
42   
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);
45   
46   double GetGeoAccCorrFlat(double deltaEta);
47   double GetGeoAccCorrIncl(double deltaEta);
48   
49   void SetSampligInclusive(){fsamplingMethod = 1;}
50   
51   
52   double DeltaPhi(double phi1, double phi2);
53   
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 ;
58   //}
59   
60 protected:
61   
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
73   
74   int fRSignalBin; // comment me
75   
76   TRandom3 *frandom; // comment me
77   
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
90   
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
99   
100   double fGeometricAcceptanceCorrection;  // Acceptance correction due to the detector geometry
101   
102 private:
103   
104   void FillPairPtAndCosThetaStarHistograms(fillType fTyp, AliJBaseTrack *ftk1, AliJBaseTrack *ftk2);
105   void FillXeHistograms(fillType fTyp);
106   void FillJtHistograms(fillType fTyp, AliJBaseTrack *ftk1, AliJBaseTrack *ftk2, bool fill2DBackground);
107   void FillDeltaEtaHistograms(fillType fTyp, int zBin);
108   void FillDeltaPhiHistograms(fillType fTyp);
109   void FillPtaHistograms(fillType fTyp);
110   void FillIAAAndMoonHistograms(fillType fTyp, int zBin);
111 };
112
113 #endif
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135