]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PWG2/FLOW/AliFlowCommon/AliFlowCommonHist.h
corrections for single particle distributions in Q cumulants{2}
[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 GetEntriesInPtBinRP(Int_t iBin);   //gets entries from fHistPtRP
38   Double_t GetEntriesInPtBinPOI(Int_t iBin);  //gets entries from fHistPtPOI
39   Double_t GetEntriesInEtaBinRP(Int_t iBin);  //gets entries from fHistEtaRP
40   Double_t GetEntriesInEtaBinPOI(Int_t iBin); //gets entries from fHistEtaPOI
41   Double_t GetMeanPt(Int_t iBin);             //gets the mean pt for this bin from fHistProMeanPtperBin   
42
43   TH1F*     GetHistMultOrig()        {return fHistMultOrig;  } ;  
44   TH1F*     GetHistMultRP()          {return fHistMultRP; } ;  
45   TH1F*     GetHistMultPOI()         {return fHistMultPOI; } ;  
46   TH1F*     GetHistPtRP()            {return fHistPtRP; } ;  
47   TH1F*     GetHistPtPOI()           {return fHistPtPOI; } ;   
48   TH1F*     GetHistPhiRP()           {return fHistPhiRP; } ;  
49   TH1F*     GetHistPhiPOI()          {return fHistPhiPOI; } ;  
50   TH1F*     GetHistEtaRP()           {return fHistEtaRP; } ;  
51   TH1F*     GetHistEtaPOI()          {return fHistEtaPOI;  } ;   
52   TProfile* GetHistProMeanPtperBin() {return fHistProMeanPtperBin; } ;
53   TH1F*     GetHistQ()               {return fHistQ; } ;            
54   TList*    GetHistList()            {return fHistList;} ;  
55
56   virtual Double_t  Merge(TCollection *aList);  //merge function
57   //method to print stats
58   void Print(Option_t* option = "") const;
59
60  
61  private:
62
63   AliFlowCommonHist& operator=(const AliFlowCommonHist& aSetOfHists);
64
65   //define histograms here
66   //control histograms
67   TH1F*     fHistMultOrig;        //multiplicity before selection
68   TH1F*     fHistMultRP;          //multiplicity for RP selection
69   TH1F*     fHistMultPOI;         //multiplicity for POI selection
70   TH1F*     fHistPtRP;            //pt distribution for RP selection
71   TH1F*     fHistPtPOI;           //pt distribution for POI selection
72   TH1F*     fHistPhiRP;           //phi distribution for RP selection
73   TH1F*     fHistPhiPOI;          //phi distribution for POI selection
74   TH1F*     fHistEtaRP;           //eta distribution for RP selection
75   TH1F*     fHistEtaPOI;          //eta distribution for POI selection
76   TProfile* fHistProMeanPtperBin; //mean pt for each pt bin (for POI selection)
77   TH1F*     fHistQ;               //Qvector distribution
78
79   TList*    fHistList;            //list to hold all histograms  
80
81   ClassDef(AliFlowCommonHist,1)  // macro for rootcint
82 };
83 #endif
84