]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PWG2/FLOW/AliFlowCommon/AliFlowCommonConstants.h
coverity fixes
[u/mrichter/AliRoot.git] / PWG2 / FLOW / AliFlowCommon / AliFlowCommonConstants.h
CommitLineData
f1d945a1 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
f1d945a1 9// AliFlowCommonConstants:
10// Description: constants for the Common Histograms in the Flow Analysis
11// Author: Naomi van der Kolk (kolk@nikhef.nl)
bee2efdc 12// modified: Mikolaj Krzewicki, Nikhef (mikolaj.krzewicki@cern.ch)
f1d945a1 13
bee2efdc 14//class TNamed;
f1d945a1 15
bee2efdc 16#include <TNamed.h>
f1d945a1 17
bee2efdc 18class AliFlowCommonConstants: public TNamed {
f1d945a1 19
bee2efdc 20 public:
21 AliFlowCommonConstants();
22 virtual ~AliFlowCommonConstants();
23 static AliFlowCommonConstants* GetMaster();
9ba489f7 24
b2be3d78 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; }
bee2efdc 30
b2be3d78 31 Double_t GetMultMin() const { return fMultMin; }
32 Double_t GetMultMax() const { return fMultMax; }
33 Double_t GetPtMin() const { return fPtMin; }
34 Double_t GetPtMax() const { return fPtMax; }
35 Double_t GetPhiMin() const { return fPhiMin; }
36 Double_t GetPhiMax() const { return fPhiMax; }
37 Double_t GetEtaMin() const { return fEtaMin; }
38 Double_t GetEtaMax() const { return fEtaMax; }
39 Double_t GetQMin() const { return fQMin; }
40 Double_t GetQMax() const { return fQMax; }
bee2efdc 41
42 void SetNbinsMult( Int_t i ) { fNbinsMult = i; }
43 void SetNbinsPt( Int_t i ) { fNbinsPt = i; }
44 void SetNbinsPhi( Int_t i ) { fNbinsPhi = i; }
45 void SetNbinsEta( Int_t i ) { fNbinsEta = i; }
46 void SetNbinsQ( Int_t i ) { fNbinsQ = i; }
47
48 void SetMultMin( Double_t i ) { fMultMin = i; }
49 void SetMultMax( Double_t i ) { fMultMax = i; }
50 void SetPtMin( Double_t i ) { fPtMin = i; }
51 void SetPtMax( Double_t i ) { fPtMax = i; }
52 void SetPhiMin( Double_t i ) { fPhiMin = i; }
53 void SetPhiMax( Double_t i ) { fPhiMax = i; }
54 void SetEtaMin( Double_t i ) { fEtaMin = i; }
55 void SetEtaMax( Double_t i ) { fEtaMax = i; }
56 void SetQMin( Double_t i ) { fQMin = i; }
57 void SetQMax( Double_t i ) { fQMax = i; }
58
59 private:
60 AliFlowCommonConstants& operator= (const AliFlowCommonConstants& c);
61 AliFlowCommonConstants(const AliFlowCommonConstants& a);
62
63 //histogram sizes
b2be3d78 64 Int_t fNbinsMult; // histogram size
65 Int_t fNbinsPt; // histogram size
66 Int_t fNbinsPhi; // histogram size
67 Int_t fNbinsEta; // histogram size
68 Int_t fNbinsQ; // histogram size
bee2efdc 69
70 // Histograms limits
b2be3d78 71 Double_t fMultMin; // histogram limit
72 Double_t fMultMax; // histogram limit
73 Double_t fPtMin; // histogram limit
74 Double_t fPtMax; // histogram limit
75 Double_t fPhiMin; // histogram limit
76 Double_t fPhiMax; // histogram limit
77 Double_t fEtaMin; // histogram limit
78 Double_t fEtaMax; // histogram limit
79 Double_t fQMin; // histogram limit
80 Double_t fQMax; // histogram limit
bee2efdc 81
b2be3d78 82 static AliFlowCommonConstants* fgPMasterConfig; //master object
bee2efdc 83
b2be3d78 84 ClassDef(AliFlowCommonConstants,1) //ClassDef
bee2efdc 85};
f1d945a1 86
87#endif
88
89