1 /**************************************************************************
2 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
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:
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.
22 // Author: Naomi van der Kolk (kolk@nikhef.nl)
23 // mod: Mikolaj Krzewicki, Nikhef (mikolaj.krzewicki@cern.ch)
30 #include "AliFlowCommonConstants.h"
32 ClassImp(AliFlowCommonConstants)
34 AliFlowCommonConstants* AliFlowCommonConstants::fgPMasterConfig = NULL;
36 //______________________________________________________________________________
37 AliFlowCommonConstants::AliFlowCommonConstants():
49 fPhiMax(TMath::TwoPi()),
54 fHistWeightvsPhiMin(0.),
55 fHistWeightvsPhiMax(3.)
60 //______________________________________________________________________________
61 AliFlowCommonConstants::~AliFlowCommonConstants()
66 //______________________________________________________________________________
67 AliFlowCommonConstants* AliFlowCommonConstants::GetMaster()
69 //return pointer to master config object
70 if (!fgPMasterConfig) fgPMasterConfig = new AliFlowCommonConstants();
71 return fgPMasterConfig;