]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PWG2/FLOW/AliFlowCommon/AliFlowCommonHist.h
bug in StepManager fixed, thanks to Andreas
[u/mrichter/AliRoot.git] / PWG2 / FLOW / AliFlowCommon / AliFlowCommonHist.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 AliFlowCommonHist_H
7 #define AliFlowCommonHist_H
8
9 // AliFlowCommonHist:
10 // Description: Class to organise common histograms for Flow Analysis
11 // authors: N.K A.B R.S
12
13              
14 class AliFlowEventSimple;
15 class AliFlowTrackSimple;
16 class TH1F;
17 class TH1D;
18 class TProfile;
19 class TCollection;
20 class TList;
21 class TBrowser;
22
23 class AliFlowCommonHist: public TNamed {
24
25  public:
26
27   AliFlowCommonHist();
28   AliFlowCommonHist(const char *name,const char *title = "AliFlowCommonHist");
29   virtual ~AliFlowCommonHist();
30   AliFlowCommonHist(const AliFlowCommonHist& aSetOfHists);
31
32   Bool_t  IsFolder() const {return kTRUE;};
33   //make fill methods here
34   Bool_t FillControlHistograms(AliFlowEventSimple* anEvent);
35   void Browse(TBrowser *b); 
36   //make get methods here
37   Double_t GetEntriesInPtBin(Int_t iBin);   //gets entries from fHistPtDiff
38   Double_t GetMeanPt(Int_t iBin);           //gets the mean pt for this bin from fHistProMeanPtperBin   
39
40   TH1F*     GetHistMultOrig()               {return fHistMultOrig;  } ;  
41   TH1F*     GetHistMultInt()                {return fHistMultInt; } ;  
42   TH1F*     GetHistMultDiff()               {return fHistMultDiff; } ;  
43   TH1F*     GetHistPtInt()                  {return fHistPtInt; } ;  
44   TH1F*     GetHistPtDiff()                 {return fHistPtDiff; } ;   
45   TH1F*     GetHistPhiInt()                 {return fHistPhiInt; } ;  
46   TH1F*     GetHistPhiDiff()                {return fHistPhiDiff; } ;  
47   TH1F*     GetHistEtaInt()                 {return fHistEtaInt; } ;  
48   TH1F*     GetHistEtaDiff()                {return fHistEtaDiff;  } ;   
49   TProfile* GetHistProMeanPtperBin()        {return fHistProMeanPtperBin; } ;
50   TH1F*     GetHistQ()                      {return fHistQ; } ;            
51   TList*    GetHistList()                   {return fHistList;} ;  
52
53   virtual Double_t  Merge(TCollection *aList);  //merge function
54   //method to print stats
55   void Print(Option_t* option = "") const;
56
57  
58  private:
59
60   AliFlowCommonHist& operator=(const AliFlowCommonHist& aSetOfHists);
61
62   //define histograms here
63   //control histograms
64   TH1F*     fHistMultOrig;        //multiplicity before selection
65   TH1F*     fHistMultInt;         //multiplicity for integrated flow
66   TH1F*     fHistMultDiff;        //multiplicity for differential flow
67   TH1F*     fHistPtInt;           //pt distribution for integrated flow
68   TH1F*     fHistPtDiff;          //pt distribution for differential flow
69   TH1F*     fHistPhiInt;          //phi distribution for integrated flow
70   TH1F*     fHistPhiDiff;         //phi distribution for differential flow
71   TH1F*     fHistEtaInt;          //eta distribution for integrated flow
72   TH1F*     fHistEtaDiff;         //eta distribution for differential flow
73   TProfile* fHistProMeanPtperBin; //mean pt for each pt bin (for differential flow)
74   TH1F*     fHistQ;               //Qvector distribution
75
76   TList*    fHistList;            //list to hold all histograms  
77
78   ClassDef(AliFlowCommonHist,1)  // macro for rootcint
79 };
80 #endif
81