]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PWG2/FLOW/AliFlowCommon/AliFlowCommonHistResults.h
fix macro control plots npart eccentricity
[u/mrichter/AliRoot.git] / PWG2 / FLOW / AliFlowCommon / AliFlowCommonHistResults.h
1 /* 
2  * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. 
3  * See cxx source for full Copyright notice 
4  * $Id$ 
5  */
6
7 /*************************************
8  *   AliFlowCommonHistResults:       *
9  *   class to organize the common    *
10  *   histograms for Flow Analysis    * 
11  *                                   * 
12  * authors: Naomi van der Kolk       *
13  *           (kolk@nikhef.nl)        *  
14  *          Raimond Snellings        *
15  *           (snelling@nikhef.nl)    * 
16  *          Ante Bilandzic           *
17  *           (anteb@nikhef.nl)       * 
18  * **********************************/
19  
20 #ifndef ALIFLOWCOMMONHISTRESULTS_H
21 #define ALIFLOWCOMMONHISTRESULTS_H
22
23 class TH1F;
24 class TH1D;
25 class TCollection;
26 class TList;
27 class TBrowser;
28
29 class AliFlowCommonHistResults : public TNamed {
30
31  public:
32   AliFlowCommonHistResults();                                                           //default constructor
33   AliFlowCommonHistResults(const char *name, const char *title = "AliFlowCommonHist");  //constructor
34   virtual ~AliFlowCommonHistResults();                                                  //destructor
35
36   Bool_t  IsFolder() const {return kTRUE;};
37   void Browse(TBrowser *b); 
38
39   //xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx 
40   //                              !!!     to be removed    !!!
41   //make fill methods here
42   Bool_t FillIntegratedFlow(Double_t aV, Double_t anError);                //fill fHistIntFlow
43   Bool_t FillDifferentialFlow(Int_t aBin, Double_t av, Double_t anError);  //fill fHistDiffFlow
44   Bool_t FillChi(Double_t aChi);                                           //fill fHistChi
45   //xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx 
46
47   //make fill methods here
48   Bool_t FillIntegratedFlowRP(Double_t aV, Double_t anError);                   //fill fHistIntFlowRP
49   Bool_t FillChiRP(Double_t aChi);                                              //fill fHistChiRP
50   Bool_t FillDifferentialFlowPtRP(Int_t aBin, Double_t av, Double_t anError);   //fill fHistDiffFlowPtRP
51   Bool_t FillDifferentialFlowEtaRP(Int_t aBin, Double_t av, Double_t anError);  //fill fHistDiffFlowEtaRP 
52   Bool_t FillIntegratedFlowPOI(Double_t aV, Double_t anError);                  //fill fHistIntFlowPOI
53   Bool_t FillChiPOI(Double_t aChi);                                             //fill fHistChiPOI
54   Bool_t FillDifferentialFlowPtPOI(Int_t aBin, Double_t av, Double_t anError);  //fill fHistDiffFlowPtPOI
55   Bool_t FillDifferentialFlowEtaPOI(Int_t aBin, Double_t av, Double_t anError); //fill fHistDiffFlowEtaPOI   
56              
57   //xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx 
58   //                              !!!     to be removed    !!!          
59   //make get methods here
60   TH1D* GetHistDiffFlow()               {return fHistDiffFlow; } ; 
61   TH1D* GetHistChi()                    {return fHistChi; } ;
62   TH1D* GetHistIntFlow()                {return fHistIntFlow; } ;
63   //xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx 
64     
65   //RP = Reaction Plane (RP denotes particles used to determine the reaction plane)  
66   TH1D *GetHistIntFlowRP() {return fHistIntFlowRP; } ; 
67   TH1D *GetHistChiRP() {return fHistChiRP; } ;            
68   TH1D *GetHistDiffFlowPtRP() {return fHistDiffFlowPtRP; } ; 
69   TH1D *GetHistDiffFlowEtaRP() {return fHistDiffFlowEtaRP; } ; 
70   //POI = Particles Of Interest (POI denotes particles of interest for the final physical results for int. and diff. flow)
71   TH1D *GetHistIntFlowPOI() {return fHistIntFlowPOI; } ;
72   TH1D *GetHistChiPOI() {return fHistChiPOI; } ; 
73   TH1D *GetHistDiffFlowPtPOI() {return fHistDiffFlowPtPOI; } ; 
74   TH1D *GetHistDiffFlowEtaPOI() {return fHistDiffFlowEtaPOI; } ; 
75   
76   TList*   GetHistList()                   {return fHistList;} ;  
77
78   virtual Double_t  Merge(TCollection *aList);  //merge function
79   void Print(Option_t* option = "") const;      //method to print stats
80
81  private:
82
83   AliFlowCommonHistResults(const AliFlowCommonHistResults& aSetOfResultHists);            //copy constructor
84   AliFlowCommonHistResults& operator=(const AliFlowCommonHistResults& aSetOfResultHists); //assignment operator
85   
86   //xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx 
87   //                              !!!     to be removed    !!!
88   TH1D*     fHistIntFlow;      //integrated flow
89   TH1D*     fHistDiffFlow;     //differential flow
90   TH1D*     fHistChi;          //resolution
91   //xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
92  
93   //RP = Reaction Plane (RP denotes particles used to determine the reaction plane)  
94   TH1D *fHistIntFlowRP;      //integrated flow
95   TH1D *fHistChiRP;          //chi
96   TH1D *fHistDiffFlowPtRP;   //differential flow (Pt)
97   TH1D *fHistDiffFlowEtaRP;  //differential flow (Eta)
98   //POI = Particles Of Interest (POI denotes particles of interest for the final physical results of int. and diff. flow)
99   TH1D *fHistIntFlowPOI;     //integrated flow
100   TH1D *fHistChiPOI;         //chi  
101   TH1D *fHistDiffFlowPtPOI;  //differential flow (Pt)
102   TH1D *fHistDiffFlowEtaPOI; //differential flow (Eta)     
103   
104   TList*    fHistList;         //list to hold all histograms
105
106   ClassDef(AliFlowCommonHistResults,1)                 // macro for rootcint
107 };
108  
109 #endif
110