]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PWGCF/Correlations/JCORRAN/AliJCorrelations.h
Merge branch 'feature-movesplit'
[u/mrichter/AliRoot.git] / PWGCF / Correlations / JCORRAN / AliJCorrelations.h
CommitLineData
9dc4f671 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
23using namespace std;
24
25class AliJCorrelations;
26class AliJHistos;
27class AliJBaseTrack;
28class AliJCard;
29
30class AliJCorrelations {
31
32public:
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
60protected:
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
692f6d75 99
100 bool fIsLikeSign; // True = like sign correlation, false = unlike sign correlation
9dc4f671 101
102 double fGeometricAcceptanceCorrection; // Acceptance correction due to the detector geometry
103
104private:
105
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);
113};
114
115#endif
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137