]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PWG2/FLOW/AliFlowLYZHist2.h
Moved old reacton plane code to /oldcode
[u/mrichter/AliRoot.git] / PWG2 / FLOW / AliFlowLYZHist2.h
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 #ifndef AliFlowLYZHist2_H
7 #define AliFlowLYZHist2_H
8
9 #include "TProfile.h"   //no forward declaration possible because of inline functions
10
11 class TComplex;
12 class TProfile2D;
13
14
15 // Description: Class to organise histograms for Flow
16 //              by the LeeYangZeros method in the second run.
17 //              Also contains methods to get values from the histograms
18 //              which are called in AliFlowLeeYandZerosMaker::Finish().
19
20
21 class AliFlowLYZHist2 {
22
23  public:
24
25   AliFlowLYZHist2(Int_t theta);                     //constructor
26   virtual  ~AliFlowLYZHist2();                      //destructor
27   
28   void Fill(Double_t f1,Double_t f2, TComplex C);   //fill the histograms
29   Int_t GetNbinsX()                
30     {Int_t fMaxEtaBins = fHistProReNumer->GetNbinsX();  return fMaxEtaBins;}     
31   Int_t GetNbinsXPt()              
32     {Int_t fMaxPtBins = fHistProReNumerPt->GetNbinsX(); return fMaxPtBins;}
33   Double_t GetBinCenter(Int_t i)   
34     {Double_t fEta = fHistProReNumer->GetXaxis()->GetBinCenter(i);  return fEta;}
35   Double_t GetBinCenterPt(Int_t i) 
36     {Double_t fPt = fHistProReNumerPt->GetXaxis()->GetBinCenter(i); return fPt;}
37   TComplex GetfNumer(Int_t i);                      //get numerator for diff. flow (eta)
38   TComplex GetfNumerPt(Int_t i);                    //get numerator for diff. flow (pt)
39   
40  private:
41   
42   TProfile* fHistProReNumer;                        //!
43   TProfile* fHistProImNumer;                        //!
44   TProfile* fHistProReNumerPt;                      //!
45   TProfile* fHistProImNumerPt;                      //!
46   TProfile2D* fHistProReNumer2D;                    //!
47   TProfile2D* fHistProImNumer2D;                    //!
48   
49
50   ClassDef(AliFlowLYZHist2,0)                    // macro for rootcint
51     };
52  
53      
54 #endif
55