]>
Commit | Line | Data |
---|---|---|
f1d945a1 | 1 | /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * |
2 | * See cxx source for full Copyright notice */ | |
3 | ||
4 | /* $Id$ */ | |
5 | ||
6 | ||
45cdbef2 | 7 | #ifndef ALIFLOWANALYSISWITHMCEVENTPLANE_H |
8 | #define ALIFLOWANALYSISWITHMCEVENTPLANE_H | |
f1d945a1 | 9 | |
10 | #include "TVector2.h" //called explicitly | |
11 | #include "AliFlowVector.h" | |
12 | #include "TString.h" | |
13 | ||
14 | class AliFlowTrackSimple; | |
15 | class AliFlowEventSimple; | |
16 | class AliFlowCommonHist; | |
17 | class AliFlowCommonHistResults; | |
18 | ||
19 | class TH1F; | |
20 | class TH1D; | |
21 | class TProfile; | |
22 | class TProfile2D; | |
23 | class TObjArray; | |
24 | class TFile; | |
28ca24ad | 25 | class TList; |
f1d945a1 | 26 | class TComplex; |
27 | class Riostream; | |
28 | ||
29 | ||
30 | // Description: Maker to analyze Flow from the generated MC reaction plane. | |
31 | // This class is used to get the real value of the flow | |
32 | // to compare the other methods to when analysing simulated events. | |
33 | ||
34 | ||
35 | class AliFlowAnalysisWithMCEventPlane { | |
36 | ||
37 | public: | |
38 | ||
28ca24ad | 39 | AliFlowAnalysisWithMCEventPlane(); //default constructor |
f1d945a1 | 40 | virtual ~AliFlowAnalysisWithMCEventPlane(); //destructor |
41 | ||
bb26a78c | 42 | void WriteHistograms(TString* outputFileName); |
9d062fe3 | 43 | void Init(); //defines variables and histograms |
44 | void Make(AliFlowEventSimple* anEvent, Double_t aRP); //calculates variables and fills histograms | |
45 | void Finish(); //saves histograms | |
bb26a78c | 46 | |
9d062fe3 | 47 | void SetDebug(Bool_t kt) { this->fDebug = kt ; } |
48 | Bool_t GetDebug() const { return this->fDebug ; } | |
f1d945a1 | 49 | |
9d062fe3 | 50 | void SetEventNumber(Int_t n) { this->fEventNumber = n; } |
51 | Int_t GetEventNumber() const { return this->fEventNumber; } | |
f1d945a1 | 52 | |
53 | // Output | |
9d062fe3 | 54 | TList* GetHistList() const { return this->fHistList ; } |
55 | AliFlowCommonHist* GetCommonHists() const { return this->fCommonHists; } | |
56 | void SetCommonHists(AliFlowCommonHist* aCommonHist) | |
57 | { this->fCommonHists = aCommonHist; } | |
58 | AliFlowCommonHistResults* GetCommonHistsRes() const | |
59 | { return this->fCommonHistsRes; } | |
60 | void SetCommonHistsRes(AliFlowCommonHistResults* aCommonHistResult) | |
61 | { this->fCommonHistsRes = aCommonHistResult; } | |
f1d945a1 | 62 | |
9d062fe3 | 63 | //histograms |
64 | TProfile* GetHistProFlow() {return this->fHistProFlow; } | |
65 | void SetHistProFlow(TProfile* aHistProFlow) | |
66 | {this->fHistProFlow = aHistProFlow; } | |
67 | TH1F* GetHistRP() {return this->fHistRP; } | |
68 | void SetHistRP(TH1F* aHistRP) {this->fHistRP = aHistRP; } | |
45cdbef2 | 69 | |
70 | TProfile* GetHistProIntFlowRP() {return this->fHistProIntFlowRP; } | |
71 | void SetHistProIntFlowRP(TProfile* aHistProIntFlowRP) {this->fHistProIntFlowRP = aHistProIntFlowRP; } | |
72 | ||
73 | TProfile* GetHistProDiffFlowPtRP() {return this->fHistProDiffFlowPtRP; } | |
74 | void SetHistProDiffFlowPtRP(TProfile* aHistProDiffFlowPtRP) {this->fHistProDiffFlowPtRP = aHistProDiffFlowPtRP; } | |
75 | ||
76 | TProfile* GetHistProDiffFlowEtaRP() {return this->fHistProDiffFlowEtaRP; } | |
77 | void SetHistProDiffFlowEtaRP(TProfile* aHistProDiffFlowEtaRP) {this->fHistProDiffFlowEtaRP = aHistProDiffFlowEtaRP; } | |
78 | ||
79 | TProfile* GetHistProDiffFlowPtPOI() {return this->fHistProDiffFlowPtPOI; } | |
80 | void SetHistProDiffFlowPtPOI(TProfile* aHistProDiffFlowPtPOI) {this->fHistProDiffFlowPtPOI = aHistProDiffFlowPtPOI; } | |
81 | ||
82 | TProfile* GetHistProDiffFlowEtaPOI() {return this->fHistProDiffFlowEtaPOI; } | |
83 | void SetHistProDiffFlowEtaPOI(TProfile* aHistProDiffFlowEtaPOI) {this->fHistProDiffFlowEtaPOI = aHistProDiffFlowEtaPOI; } | |
9d062fe3 | 84 | |
f1d945a1 | 85 | private: |
af795c87 | 86 | |
00731146 | 87 | AliFlowAnalysisWithMCEventPlane(const AliFlowAnalysisWithMCEventPlane& aAnalysis); //copy constructor |
88 | AliFlowAnalysisWithMCEventPlane& operator=(const AliFlowAnalysisWithMCEventPlane& aAnalysis); //assignment operator | |
af795c87 | 89 | |
f1d945a1 | 90 | |
91 | #ifndef __CINT__ | |
00731146 | 92 | TVector2* fQsum; // flow vector sum |
93 | Double_t fQ2sum; // flow vector sum squared | |
f1d945a1 | 94 | #endif /*__CINT__*/ |
95 | ||
00731146 | 96 | Int_t fEventNumber; // event counter |
f1d945a1 | 97 | Bool_t fDebug ; //! flag for lyz analysis: more print statements |
98 | ||
28ca24ad | 99 | TList* fHistList; //list to hold all output histograms |
f1d945a1 | 100 | |
00731146 | 101 | AliFlowCommonHist* fCommonHists; // |
102 | AliFlowCommonHistResults* fCommonHistsRes; // | |
f1d945a1 | 103 | |
00731146 | 104 | TProfile* fHistProFlow; // |
105 | TH1F* fHistRP; // | |
45cdbef2 | 106 | |
107 | TProfile* fHistProIntFlowRP; //profile used to calculate the integrated flow of RP particles | |
108 | TProfile* fHistProDiffFlowPtRP; //profile used to calculate the differential flow (Pt) of RP particles | |
109 | TProfile* fHistProDiffFlowEtaRP; //profile used to calculate the differential flow (Eta) of RP particles | |
110 | ||
111 | TProfile* fHistProDiffFlowPtPOI; //profile used to calculate the differential flow (Pt) of POI particles | |
112 | TProfile* fHistProDiffFlowEtaPOI; //profile used to calculate the differential flow (Eta) of POI particles | |
113 | ||
9d062fe3 | 114 | ClassDef(AliFlowAnalysisWithMCEventPlane,1) // macro for rootcint |
f1d945a1 | 115 | }; |
116 | ||
117 | ||
118 | #endif | |
af795c87 | 119 | |
120 |