Populating QA reference data (Yves)
[u/mrichter/AliRoot.git] / PWG2 / FLOW / AliFlowCommon / AliFlowAnalysisWithLYZEventPlane.h
CommitLineData
f1d945a1 1/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
2* See cxx source for full Copyright notice */
3/* $Id$ */
4
5#ifndef AliFlowAnalysisWithLYZEventPlane_H
6#define AliFlowAnalysisWithLYZEventPlane_H
7
8class AliFlowVector;
9class AliFlowTrackSimple;
10class AliFlowEventSimple;
11class AliFlowCommonHist;
12class AliFlowCommonHistResults;
13class AliFlowLYZEventPlane;
14
15class TString;
16class TFile;
17class TProfile;
18class TH1F;
19class TH1D;
28ca24ad 20class TList;
21class 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
28class 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; }
44 Double_t GetQ2sum() { return this->fQ2sum; }
28ca24ad 45
46 //output
9d062fe3 47 TList* GetHistList() const {return this->fHistList; }
48 AliFlowCommonHist* GetCommonHists() const { return this->fCommonHists; }
49 void SetCommonHists(AliFlowCommonHist* aCommonHist)
50 { this->fCommonHists = aCommonHist; }
51 AliFlowCommonHistResults* GetCommonHistsRes() const
52 { return this->fCommonHistsRes; }
53 void SetCommonHistsRes(AliFlowCommonHistResults* aCommonHistResult)
54 { this->fCommonHistsRes = aCommonHistResult; }
55
56 // !!!!! make getters and setters for all histograms
57 TProfile* GetSecondReDtheta() {return this->fSecondReDtheta; }
58 void SetSecondReDtheta(TProfile* aSecondReDtheta)
59 {this->fSecondReDtheta = aSecondReDtheta; }
60 TProfile* GetSecondImDtheta() {return this->fSecondImDtheta; }
61 void SetSecondImDtheta(TProfile* aSecondImDtheta)
62 {this->fSecondImDtheta = aSecondImDtheta; }
63 TProfile* GetFirstr0theta() {return this->fFirstr0theta; }
64 void SetFirstr0theta(TProfile* aFirstr0theta)
65 {this->fFirstr0theta = aFirstr0theta; }
66 TProfile* GetHistProFlow() {return this->fHistProFlow;}
67 void SetHistProFlow(TProfile* aHistProFlow)
68 {this->fHistProFlow =aHistProFlow; }
69 TProfile* GetHistProFlow2() {return this->fHistProFlow2;}
70 void SetHistProFlow2(TProfile* aHistProFlow2)
71 {this->fHistProFlow2 = aHistProFlow2; }
72 TProfile* GetHistProWr() {return this->fHistProWr; }
73 void SetHistProWr(TProfile* aHistProWr)
74 {this->fHistProWr = aHistProWr; }
75 TProfile* GetHistProWrCorr() {return this->fHistProWrCorr; }
76 void SetHistProWrCorr(TProfile* aHistProWrCorr)
77 {this->fHistProWrCorr = aHistProWrCorr; }
78 TH1F* GetHistQsumforChi() {return this->fHistQsumforChi; }
79 void SetHistQsumforChi(TH1F* aHistQsumforChi)
80 {this->fHistQsumforChi = aHistQsumforChi; }
81 TH1F* GetHistDeltaPhi() {return this->fHistDeltaPhi; }
82 void SetHistDeltaPhi(TH1F* aHistDeltaPhi)
83 {this->fHistDeltaPhi = aHistDeltaPhi; }
84 TH1F* GetHistDeltaPhi2() {return this->fHistDeltaPhi2; }
85 void SetHistDeltaPhi2(TH1F* aHistDeltaPhi2)
86 {this->fHistDeltaPhi2 = aHistDeltaPhi2; }
87 TH1F* GetHistDeltaPhihere() {return this->fHistDeltaPhihere; }
88 void SetHistDeltaPhihere(TH1F* aHistDeltaPhihere)
89 {this->fHistDeltaPhihere = aHistDeltaPhihere; }
90 TH1F* GetHistPhiEP() {return this->fHistPhiEP; }
91 void SetHistPhiEP(TH1F* aHistPhiEP)
92 {this->fHistPhiEP = aHistPhiEP; }
93 TH1F* GetHistPhiEPhere() {return this->fHistPhiEPhere; }
94 void SetHistPhiEPhere(TH1F* aHistPhiEPhere)
95 {this->fHistPhiEPhere = aHistPhiEPhere; }
96 TH1F* GetHistPhiLYZ() {return this->fHistPhiLYZ; }
97 void SetHistPhiLYZ(TH1F* aHistPhiLYZ)
98 {this->fHistPhiLYZ = aHistPhiLYZ; }
99 TH1F* GetHistPhiLYZ2() {return this->fHistPhiLYZ2;}
100 void SetHistPhiLYZ2(TH1F* aHistPhiLYZ2)
101 {this->fHistPhiLYZ2 = aHistPhiLYZ2; }
f1d945a1 102
9d062fe3 103 //input
104 void SetSecondRunList(TList* list) { this->fSecondRunList = list; }
105 TList* GetSecondRunList() { return this->fSecondRunList; }
f1d945a1 106
107 private:
108
882ffd6a 109 AliFlowAnalysisWithLYZEventPlane(const AliFlowAnalysisWithLYZEventPlane& aAnalysis); // copy constructor
110 AliFlowAnalysisWithLYZEventPlane& operator=(const AliFlowAnalysisWithLYZEventPlane& aAnalysis); // assignment operator
af795c87 111
f1d945a1 112 //histograms
28ca24ad 113 TList* fHistList; //list ro hold all histograms
9d062fe3 114 TList* fSecondRunList; //list from Second LYZ run output
f1d945a1 115 //input
882ffd6a 116 TProfile* fSecondReDtheta; // input profile
117 TProfile* fSecondImDtheta; // input profile
118 TProfile* fFirstr0theta; // input profile
f1d945a1 119 //output
882ffd6a 120 TProfile* fHistProFlow; //
121 TProfile* fHistProFlow2; //
122 TProfile* fHistProWr; //
123 TProfile* fHistProWrCorr; //
9d062fe3 124 TH1F* fHistQsumforChi; //
882ffd6a 125 TH1F* fHistDeltaPhi; //
126 TH1F* fHistDeltaPhi2; //
127 TH1F* fHistDeltaPhihere; //
128 TH1F* fHistPhiEP; //
129 TH1F* fHistPhiEPhere; //
130 TH1F* fHistPhiLYZ; //
131 TH1F* fHistPhiLYZ2; //
f1d945a1 132
882ffd6a 133 AliFlowCommonHist* fCommonHists; //
134 AliFlowCommonHistResults* fCommonHistsRes; //
f1d945a1 135
882ffd6a 136 Int_t fEventNumber; // event counter
af795c87 137
28ca24ad 138 TVector2 *fQsum; // flow vector sum
139 Double_t fQ2sum; // flow vector sum squared
882ffd6a 140
f1d945a1 141
9d062fe3 142 ClassDef(AliFlowAnalysisWithLYZEventPlane, 1); // lyz analysis
f1d945a1 143};
144
145 #endif
882ffd6a 146