f1d945a1 |
1 | /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * |
2 | * See cxx source for full Copyright notice */ |
3 | /* $Id$ */ |
4 | |
11d3944d |
5 | #ifndef ALIFLOWANALYSISWITHLYZEVENTPLANE_H |
6 | #define ALIFLOWANALYSISWITHLYZEVENTPLANE_H |
f1d945a1 |
7 | |
8 | class AliFlowVector; |
9 | class AliFlowTrackSimple; |
10 | class AliFlowEventSimple; |
11 | class AliFlowCommonHist; |
12 | class AliFlowCommonHistResults; |
13 | class AliFlowLYZEventPlane; |
14 | |
15 | class TString; |
16 | class TFile; |
17 | class TProfile; |
18 | class TH1F; |
19 | class TH1D; |
28ca24ad |
20 | class TList; |
21 | class Riostream; |
f1d945a1 |
22 | |
23 | // AliFlowAnalysisWithLYZEventPlane: |
24 | // Class to do flow analysis with the event plane from the LYZ method |
25 | // author: N. van der Kolk (kolk@nikhef.nl) |
26 | |
27 | |
28 | class AliFlowAnalysisWithLYZEventPlane { |
28ca24ad |
29 | |
f1d945a1 |
30 | public: |
28ca24ad |
31 | |
32 | AliFlowAnalysisWithLYZEventPlane(); //default constructor |
33 | virtual ~AliFlowAnalysisWithLYZEventPlane(); //destructor |
f1d945a1 |
34 | |
35 | virtual void Init(); |
36 | virtual void Make(AliFlowEventSimple* fEvent, AliFlowLYZEventPlane* fLYZEP); |
37 | virtual void Finish(); |
1dfa3c16 |
38 | void WriteHistograms(TString* outputFileName); |
b0fda271 |
39 | void WriteHistograms(TString outputFileName); |
f1d945a1 |
40 | |
9d062fe3 |
41 | void SetEventNumber(Int_t n) { this->fEventNumber = n; } |
42 | Int_t GetEventNumber() const { return this->fEventNumber; } |
43 | void SetQ2sum(Double_t d) { this->fQ2sum = d; } |
11d3944d |
44 | Double_t GetQ2sum() const { return this->fQ2sum; } |
28ca24ad |
45 | |
46 | //output |
9d062fe3 |
47 | TList* GetHistList() const {return this->fHistList; } |
48 | AliFlowCommonHist* GetCommonHists() const { return this->fCommonHists; } |
11d3944d |
49 | void SetCommonHists(AliFlowCommonHist* const aCommonHist) |
9d062fe3 |
50 | { this->fCommonHists = aCommonHist; } |
51 | AliFlowCommonHistResults* GetCommonHistsRes() const |
52 | { return this->fCommonHistsRes; } |
11d3944d |
53 | void SetCommonHistsRes(AliFlowCommonHistResults* const aCommonHistResult) |
9d062fe3 |
54 | { this->fCommonHistsRes = aCommonHistResult; } |
55 | |
56 | // !!!!! make getters and setters for all histograms |
11d3944d |
57 | TProfile* GetSecondReDtheta() const {return this->fSecondReDtheta; } |
58 | void SetSecondReDtheta(TProfile* const aSecondReDtheta) |
9d062fe3 |
59 | {this->fSecondReDtheta = aSecondReDtheta; } |
11d3944d |
60 | TProfile* GetSecondImDtheta() const {return this->fSecondImDtheta; } |
61 | void SetSecondImDtheta(TProfile* const aSecondImDtheta) |
9d062fe3 |
62 | {this->fSecondImDtheta = aSecondImDtheta; } |
11d3944d |
63 | TProfile* GetFirstr0theta() const {return this->fFirstr0theta; } |
64 | void SetFirstr0theta(TProfile* const aFirstr0theta) |
9d062fe3 |
65 | {this->fFirstr0theta = aFirstr0theta; } |
80e93fef |
66 | |
11d3944d |
67 | TProfile* GetHistProVetaRP() const {return this->fHistProVetaRP;} |
68 | void SetHistProVetaRP(TProfile* const aHistProVetaRP) |
80e93fef |
69 | {this->fHistProVetaRP =aHistProVetaRP; } |
11d3944d |
70 | TProfile* GetHistProVetaPOI() const {return this->fHistProVetaPOI;} |
71 | void SetHistProVetaPOI(TProfile* const aHistProVetaPOI) |
80e93fef |
72 | {this->fHistProVetaPOI = aHistProVetaPOI; } |
11d3944d |
73 | TProfile* GetHistProVPtRP() const {return this->fHistProVPtRP;} |
74 | void SetHistProVPtRP(TProfile* const aHistProVPtRP) |
80e93fef |
75 | {this->fHistProVPtRP =aHistProVPtRP; } |
11d3944d |
76 | TProfile* GetHistProVPtPOI() const {return this->fHistProVPtPOI;} |
77 | void SetHistProVPtPOI(TProfile* const aHistProVPtPOI) |
80e93fef |
78 | {this->fHistProVPtPOI = aHistProVPtPOI; } |
11d3944d |
79 | TProfile* GetHistProWr() const {return this->fHistProWr; } |
80 | void SetHistProWr(TProfile* const aHistProWr) |
9d062fe3 |
81 | {this->fHistProWr = aHistProWr; } |
11d3944d |
82 | TProfile* GetHistProWrCorr() const {return this->fHistProWrCorr; } |
83 | void SetHistProWrCorr(TProfile* const aHistProWrCorr) |
9d062fe3 |
84 | {this->fHistProWrCorr = aHistProWrCorr; } |
11d3944d |
85 | TH1F* GetHistQsumforChi() const {return this->fHistQsumforChi; } |
86 | void SetHistQsumforChi(TH1F* const aHistQsumforChi) |
9d062fe3 |
87 | {this->fHistQsumforChi = aHistQsumforChi; } |
11d3944d |
88 | TH1F* GetHistDeltaPhi() const {return this->fHistDeltaPhi; } |
89 | void SetHistDeltaPhi(TH1F* const aHistDeltaPhi) |
9d062fe3 |
90 | {this->fHistDeltaPhi = aHistDeltaPhi; } |
11d3944d |
91 | TH1F* GetHistDeltaPhi2() const {return this->fHistDeltaPhi2; } |
92 | void SetHistDeltaPhi2(TH1F* const aHistDeltaPhi2) |
9d062fe3 |
93 | {this->fHistDeltaPhi2 = aHistDeltaPhi2; } |
11d3944d |
94 | TH1F* GetHistDeltaPhihere() const {return this->fHistDeltaPhihere; } |
95 | void SetHistDeltaPhihere(TH1F* const aHistDeltaPhihere) |
9d062fe3 |
96 | {this->fHistDeltaPhihere = aHistDeltaPhihere; } |
11d3944d |
97 | TH1F* GetHistPhiEP() const {return this->fHistPhiEP; } |
98 | void SetHistPhiEP(TH1F* const aHistPhiEP) |
9d062fe3 |
99 | {this->fHistPhiEP = aHistPhiEP; } |
11d3944d |
100 | TH1F* GetHistPhiEPhere() const {return this->fHistPhiEPhere; } |
101 | void SetHistPhiEPhere(TH1F* const aHistPhiEPhere) |
9d062fe3 |
102 | {this->fHistPhiEPhere = aHistPhiEPhere; } |
11d3944d |
103 | TH1F* GetHistPhiLYZ() const {return this->fHistPhiLYZ; } |
104 | void SetHistPhiLYZ(TH1F* const aHistPhiLYZ) |
9d062fe3 |
105 | {this->fHistPhiLYZ = aHistPhiLYZ; } |
11d3944d |
106 | TH1F* GetHistPhiLYZ2() const {return this->fHistPhiLYZ2;} |
107 | void SetHistPhiLYZ2(TH1F* const aHistPhiLYZ2) |
9d062fe3 |
108 | {this->fHistPhiLYZ2 = aHistPhiLYZ2; } |
f1d945a1 |
109 | |
9d062fe3 |
110 | //input |
11d3944d |
111 | void SetSecondRunList(TList* const list) { this->fSecondRunList = list; } |
112 | TList* GetSecondRunList() const { return this->fSecondRunList; } |
f1d945a1 |
113 | |
114 | private: |
115 | |
882ffd6a |
116 | AliFlowAnalysisWithLYZEventPlane(const AliFlowAnalysisWithLYZEventPlane& aAnalysis); // copy constructor |
117 | AliFlowAnalysisWithLYZEventPlane& operator=(const AliFlowAnalysisWithLYZEventPlane& aAnalysis); // assignment operator |
af795c87 |
118 | |
f1d945a1 |
119 | //histograms |
28ca24ad |
120 | TList* fHistList; //list ro hold all histograms |
9d062fe3 |
121 | TList* fSecondRunList; //list from Second LYZ run output |
80e93fef |
122 | |
f1d945a1 |
123 | //input |
882ffd6a |
124 | TProfile* fSecondReDtheta; // input profile |
125 | TProfile* fSecondImDtheta; // input profile |
126 | TProfile* fFirstr0theta; // input profile |
80e93fef |
127 | |
f1d945a1 |
128 | //output |
80e93fef |
129 | TProfile* fHistProVetaRP; // |
130 | TProfile* fHistProVetaPOI; // |
131 | TProfile* fHistProVPtRP; // |
132 | TProfile* fHistProVPtPOI; // |
882ffd6a |
133 | TProfile* fHistProWr; // |
134 | TProfile* fHistProWrCorr; // |
9d062fe3 |
135 | TH1F* fHistQsumforChi; // |
882ffd6a |
136 | TH1F* fHistDeltaPhi; // |
137 | TH1F* fHistDeltaPhi2; // |
138 | TH1F* fHistDeltaPhihere; // |
139 | TH1F* fHistPhiEP; // |
140 | TH1F* fHistPhiEPhere; // |
141 | TH1F* fHistPhiLYZ; // |
142 | TH1F* fHistPhiLYZ2; // |
f1d945a1 |
143 | |
882ffd6a |
144 | AliFlowCommonHist* fCommonHists; // |
145 | AliFlowCommonHistResults* fCommonHistsRes; // |
f1d945a1 |
146 | |
882ffd6a |
147 | Int_t fEventNumber; // event counter |
af795c87 |
148 | |
28ca24ad |
149 | TVector2 *fQsum; // flow vector sum |
150 | Double_t fQ2sum; // flow vector sum squared |
882ffd6a |
151 | |
f1d945a1 |
152 | |
9d062fe3 |
153 | ClassDef(AliFlowAnalysisWithLYZEventPlane, 1); // lyz analysis |
f1d945a1 |
154 | }; |
155 | |
156 | #endif |
882ffd6a |
157 | |