]>
Commit | Line | Data |
---|---|---|
f456b167 | 1 | /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * |
2 | * See cxx source for full Copyright notice */ | |
3 | ||
29b61d43 | 4 | /* $Id: AliFlowLYZHist2.h 29627 2008-10-31 10:30:41Z snelling $ */ |
f456b167 | 5 | |
6 | #ifndef AliFlowLYZHist2_H | |
7 | #define AliFlowLYZHist2_H | |
8 | ||
f456b167 | 9 | #include "TProfile.h" //no forward declaration possible because of inline functions |
10 | ||
448e8856 | 11 | class TComplex; |
f456b167 | 12 | class TProfile2D; |
8de6876d | 13 | class TCollection; |
14 | class TList; | |
9d062fe3 | 15 | class TBrowser; |
f456b167 | 16 | |
17 | // Description: Class to organise histograms for Flow | |
18 | // by the LeeYangZeros method in the second run. | |
19 | // Also contains methods to get values from the histograms | |
20 | // which are called in AliFlowLeeYandZerosMaker::Finish(). | |
21 | ||
22 | ||
9d062fe3 | 23 | class AliFlowLYZHist2: public TNamed { |
f456b167 | 24 | |
25 | public: | |
26 | ||
8de6876d | 27 | AliFlowLYZHist2(); //default constructor |
0c380f17 | 28 | AliFlowLYZHist2(Int_t theta, const char *selection = "POI", const char *name = "AliFlowLYZHist2" , Bool_t useSum = kTRUE); //constructor |
448e8856 | 29 | virtual ~AliFlowLYZHist2(); //destructor |
30 | ||
9d062fe3 | 31 | Bool_t IsFolder() const {return kTRUE;}; |
32 | void Browse(TBrowser *b); | |
33 | ||
8de6876d | 34 | void Fill(Double_t d1,Double_t d2, TComplex c); //fill the histograms |
35 | Int_t GetNbinsX() | |
882ffd6a | 36 | {Int_t iMaxEtaBins = fHistProReNumer->GetNbinsX(); return iMaxEtaBins;} |
8de6876d | 37 | Int_t GetNbinsXPt() |
882ffd6a | 38 | {Int_t iMaxPtBins = fHistProReNumerPt->GetNbinsX(); return iMaxPtBins;} |
448e8856 | 39 | Double_t GetBinCenter(Int_t i) |
882ffd6a | 40 | {Double_t dEta = fHistProReNumer->GetXaxis()->GetBinCenter(i); return dEta;} |
448e8856 | 41 | Double_t GetBinCenterPt(Int_t i) |
882ffd6a | 42 | {Double_t dPt = fHistProReNumerPt->GetXaxis()->GetBinCenter(i); return dPt;} |
43 | TComplex GetNumerEta(Int_t i); //get numerator for diff. flow (eta) | |
44 | TComplex GetNumerPt(Int_t i); //get numerator for diff. flow (pt) | |
88e00a8a | 45 | |
46 | TProfile* GetHistProReNumer() {return this->fHistProReNumer;} | |
47 | TProfile* GetHistProImNumer() {return this->fHistProImNumer;} | |
48 | TProfile* GetHistProReNumerPt() {return this->fHistProReNumerPt;} | |
49 | TProfile* GetHistProImNumerPt() {return this->fHistProImNumerPt;} | |
50 | TProfile2D* GetHistProReNumer2D() {return this->fHistProReNumer2D;} | |
51 | TProfile2D* GetHistProImNumer2D() {return this->fHistProImNumer2D;} | |
52 | TList* GetHistList() {return this->fHistList;} | |
448e8856 | 53 | |
0c380f17 | 54 | virtual Double_t Merge(TCollection *aList); //merge function |
55 | void Print(Option_t* option = "") const; //method to print stats | |
9d062fe3 | 56 | |
f456b167 | 57 | private: |
af795c87 | 58 | |
882ffd6a | 59 | AliFlowLYZHist2(const AliFlowLYZHist2& aAnalysis); //copy constructor |
60 | AliFlowLYZHist2& operator=(const AliFlowLYZHist2& aAnalysis); //assignment operator | |
f456b167 | 61 | |
8de6876d | 62 | TProfile* fHistProReNumer; //holds Re of Numerator(eta) |
63 | TProfile* fHistProImNumer; //holds Im of Numerator(eta) | |
64 | TProfile* fHistProReNumerPt; //holds Re of Numerator(pt) | |
65 | TProfile* fHistProImNumerPt; //holds Im of Numerator(pt) | |
66 | TProfile2D* fHistProReNumer2D; //holds Re of Numerator | |
67 | TProfile2D* fHistProImNumer2D; //holds Im of Numerator | |
68 | TList* fHistList; //list to hold all histograms | |
69 | ||
9d062fe3 | 70 | ClassDef(AliFlowLYZHist2,1) // macro for rootcint |
f456b167 | 71 | }; |
72 | ||
73 | ||
74 | #endif |