]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PWG2/FLOW/AliFlowCommon/AliFlowCommonConstants.cxx
fixing coding violations from FC
[u/mrichter/AliRoot.git] / PWG2 / FLOW / AliFlowCommon / AliFlowCommonConstants.cxx
1 /**************************************************************************
2  * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
3  *                                                                        *
4  * Author: The ALICE Off-line Project.                                    *
5  * Contributors are mentioned in the code where appropriate.              *
6  *                                                                        *
7  * Permission to use, copy, modify and distribute this software and its   *
8  * documentation strictly for non-commercial purposes is hereby granted   *
9  * without fee, provided that the above copyright notice appears in all   *
10  * copies and that both the copyright notice and this permission notice   *
11  * appear in the supporting documentation. The authors make no claims     *
12  * about the suitability of this software for any purpose. It is          *
13  * provided "as is" without express or implied warranty.                  *
14  **************************************************************************/
15 // AliFlowCommonConstants:
16 //
17 // Constants for the common histograms in the flow analysis
18 // semi "singleton" mode: apart from any objects instantiated via
19 // the constructor there may be a global Master object. get it with
20 // AliFlowCommonConstants::GetMaster()->GetMaster() static method.
21 //
22 // Author: Naomi van der Kolk (kolk@nikhef.nl)
23 // mod: Mikolaj Krzewicki, Nikhef (mikolaj.krzewicki@cern.ch)
24
25 /*
26 $Log$
27 */ 
28
29 #include <TMath.h>
30 #include "AliFlowCommonConstants.h" 
31
32 ClassImp(AliFlowCommonConstants)
33
34 AliFlowCommonConstants* AliFlowCommonConstants::fgPMasterConfig = NULL;
35
36 //______________________________________________________________________________
37 AliFlowCommonConstants::AliFlowCommonConstants():
38   TNamed(),
39   fNbinsMult(10000),
40   fNbinsPt(100),   
41   fNbinsPhi(72),
42   fNbinsEta(80),
43   fNbinsQ(500),
44   fMultMin(0.),            
45   fMultMax(10000.),
46   fPtMin(0.),        
47   fPtMax(10.),
48   fPhiMin(0.),       
49   fPhiMax(TMath::TwoPi()),
50   fEtaMin(-2.),      
51   fEtaMax(2.),       
52   fQMin(0.),         
53   fQMax(3.)
54 {
55   //def ctor
56 }
57
58 //______________________________________________________________________________
59 AliFlowCommonConstants::~AliFlowCommonConstants()
60 {
61   //dtor
62 }
63
64 //______________________________________________________________________________
65 AliFlowCommonConstants* AliFlowCommonConstants::GetMaster()
66 {
67   //return pointer to master config object
68   if (!fgPMasterConfig) fgPMasterConfig = new AliFlowCommonConstants();
69   return fgPMasterConfig;
70 }