11 #include "StGlauberConstUtilities.h"
14 namespace StGlauberConstUtilities {
16 const UInt_t mBBin = 400 ;
17 const Double_t mBMax = 20.0 ;
20 const UInt_t mNpartBin = 500 ;
21 const Double_t mNpartMax = 500 ;
24 const UInt_t mNcollBin = 1800 ;
25 const Double_t mNcollMax = 1800 ;
28 const UInt_t mMultiplicityBin = 2000 ;
29 const Double_t mMultiplicityMax = 2000 ;
32 const UInt_t mCentralityBin = 36 ;
33 const Double_t mCentralityMin[] = { 0, 5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55, 60, 65, 70, 75, 80,
34 0, 10, 20, 30, 40, 50, 60, 70, 10, 40, 0, 20, 40, 60, 20, 50, 0, 0, 7.5 };
35 const Double_t mCentralityMax[] = { 5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55, 60, 65, 70, 75, 80, 100,
36 10, 20, 30, 40, 50, 60, 70, 80, 40, 80, 20, 40, 60, 80, 50, 80, 60, 80, 30 };
40 const UInt_t StGlauberConstUtilities::GetImpactParameterBin()
46 const Double_t StGlauberConstUtilities::GetImpactParameterMax()
52 const UInt_t StGlauberConstUtilities::GetNpartBin()
58 const Double_t StGlauberConstUtilities::GetNpartMax()
64 const UInt_t StGlauberConstUtilities::GetNcollBin()
70 const Double_t StGlauberConstUtilities::GetNcollMax()
76 const UInt_t StGlauberConstUtilities::GetMultiplicityBin()
78 return mMultiplicityBin ;
82 const Double_t StGlauberConstUtilities::GetMultiplicityMax()
84 return mMultiplicityMax ;
88 const UInt_t StGlauberConstUtilities::GetCentralityBin()
90 return mCentralityBin ;
94 const Double_t StGlauberConstUtilities::GetCentralityMin(
const UInt_t icent)
96 if( icent >= mCentralityBin ){
97 Error(
"StGlauberConstUtilities::GetCentralityMin",
"Unknown centrality id, icent=%3d", icent);
101 return mCentralityMin[icent] ;
105 const Double_t StGlauberConstUtilities::GetCentralityMax(
const UInt_t icent)
107 if( icent >= mCentralityBin ){
108 Error(
"StGlauberConstUtilities::GetCentralityMax",
"Unknown centrality id, icent=%3d", icent);
112 return mCentralityMax[icent] ;
117 const Bool_t StGlauberConstUtilities::IsCentralityOk(
const UInt_t icent,
const Double_t centrality)
119 if(icent>=mCentralityBin){
120 Error(
"StGlauberConstUtilities::IsCentralityOk",
"Unknown centrality bin, icent=%3d", icent);
124 return (centrality >= mCentralityMin[icent] && centrality < mCentralityMax[icent] );