]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PWG/FLOW/Base/AliFlowCommonConstants.h
allow to reuse tracks
[u/mrichter/AliRoot.git] / PWG / FLOW / Base / AliFlowCommonConstants.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 ALIFLOWCOMMONCONSTANTS_H
7 #define ALIFLOWCOMMONCONSTANTS_H
8
9 // AliFlowCommonConstants:
10 // Description: constants for the Common Histograms in the Flow Analysis
11 // Author: Naomi van der Kolk (kolk@nikhef.nl)
12 // modified: Mikolaj Krzewicki, Nikhef (mikolaj.krzewicki@cern.ch)
13
14 //class TNamed;
15
16 #include <TNamed.h>
17
18 class AliFlowCommonConstants: public TNamed {
19
20  public:
21   AliFlowCommonConstants();
22   virtual ~AliFlowCommonConstants();
23   static AliFlowCommonConstants* GetMaster();
24
25   Int_t GetNbinsMult() const { return fNbinsMult; }
26   Int_t GetNbinsPt()   const { return fNbinsPt; }
27   Int_t GetNbinsPhi()  const { return fNbinsPhi; }
28   Int_t GetNbinsEta()  const { return fNbinsEta; }
29   Int_t GetNbinsQ()    const { return fNbinsQ; }
30   Int_t GetNbinsMass() const { return fNbinsMass; }
31    
32   Double_t GetMultMin() const { return fMultMin; }
33   Double_t GetMultMax() const { return fMultMax; }
34   Double_t GetPtMin()   const { return fPtMin; }
35   Double_t GetPtMax()   const { return fPtMax; }
36   Double_t GetPhiMin()  const { return fPhiMin; }
37   Double_t GetPhiMax()  const { return fPhiMax; }
38   Double_t GetEtaMin()  const { return fEtaMin; }
39   Double_t GetEtaMax()  const { return fEtaMax; }
40   Double_t GetQMin()    const { return fQMin; }
41   Double_t GetQMax()    const { return fQMax; }
42   Double_t GetMassMin()    const { return fMassMin; }
43   Double_t GetMassMax()    const { return fMassMax; }
44   Double_t GetHistWeightvsPhiMax() const {return fHistWeightvsPhiMax;}
45   Double_t GetHistWeightvsPhiMin() const {return fHistWeightvsPhiMin;}
46   
47   void SetNbinsMult( Int_t i ) { fNbinsMult = i; }
48   void SetNbinsPt( Int_t i )   { fNbinsPt = i; }
49   void SetNbinsPhi( Int_t i )  { fNbinsPhi = i; }
50   void SetNbinsEta( Int_t i )  { fNbinsEta = i; }
51   void SetNbinsQ( Int_t i )    { fNbinsQ = i; }
52   void SetNbinsMass( Int_t i ) { fNbinsMass = i; }
53    
54   void SetMultMin( Double_t i ) { fMultMin = i; }
55   void SetMultMax( Double_t i ) { fMultMax = i; }
56   void SetPtMin( Double_t i )   { fPtMin = i; }
57   void SetPtMax( Double_t i )   { fPtMax = i; }
58   void SetPhiMin( Double_t i )  { fPhiMin = i; }
59   void SetPhiMax( Double_t i )  { fPhiMax = i; }
60   void SetEtaMin( Double_t i )  { fEtaMin = i; }
61   void SetEtaMax( Double_t i )  { fEtaMax = i; }
62   void SetQMin( Double_t i )    { fQMin = i; }
63   void SetQMax( Double_t i )    { fQMax = i; }
64   void SetMassMin( Double_t i )    { fMassMin = i; }
65   void SetMassMax( Double_t i )    { fMassMax = i; }
66   void SetHistWeightvsPhiMax( Double_t d ) {fHistWeightvsPhiMax=d;}
67   void SetHistWeightvsPhiMin( Double_t d ) {fHistWeightvsPhiMin=d;}
68   
69  private:
70   AliFlowCommonConstants& operator= (const AliFlowCommonConstants& c);
71   AliFlowCommonConstants(const AliFlowCommonConstants& a);
72   
73   //histogram sizes
74   Int_t  fNbinsMult; // histogram size
75   Int_t  fNbinsPt;   // histogram size
76   Int_t  fNbinsPhi;  // histogram size
77   Int_t  fNbinsEta;  // histogram size
78   Int_t  fNbinsQ;    // histogram size
79   Int_t  fNbinsMass; // histogram size
80  
81   // Histograms limits
82   Double_t  fMultMin;  // histogram limit 
83   Double_t  fMultMax;  // histogram limit
84   Double_t  fPtMin;    // histogram limit
85   Double_t  fPtMax;    // histogram limit
86   Double_t  fPhiMin;     // histogram limit
87   Double_t  fPhiMax;   // histogram limit
88   Double_t  fEtaMin;     // histogram limit
89   Double_t  fEtaMax;     // histogram limit
90   Double_t  fQMin;         // histogram limit
91   Double_t  fQMax;     // histogram limit
92   Double_t  fMassMin;  // histogram limit 
93   Double_t  fMassMax;  // histogram limit
94   Double_t  fHistWeightvsPhiMin; // histogram limit
95   Double_t  fHistWeightvsPhiMax; // histogram limit
96  
97   static AliFlowCommonConstants* fgPMasterConfig; //master object
98   
99   ClassDef(AliFlowCommonConstants,2) //ClassDef
100 };
101
102 #endif
103
104