StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StGlauberUtilities.h
1 /****************************************************************************************************
2  * $Id: StGlauberUtilities.h,v 1.2 2012/04/25 04:42:37 hmasui Exp $
3  * $Log: StGlauberUtilities.h,v $
4  * Revision 1.2 2012/04/25 04:42:37 hmasui
5  * Moved several functions from StFastGlauberMcMaker. Added namespace GlauberUtilities
6  *
7  *
8 ****************************************************************************************************/
9 
10 #ifndef __StGlauberUtilities_h__
11 #define __StGlauberUtilities_h__
12 
13 class TF1 ;
14 class TRandom ;
15 class TRandom3 ;
16 #include "Rtypes.h"
17 
18 //____________________________________________________________________________________________________
19 // Class StGlauberUtilities: Random number, and functions
21  public:
22  static StGlauberUtilities* instance();
23  virtual ~StGlauberUtilities();
24 
26  Double_t GetImpactParameter() const ;
27 
29  Double_t GetMaximumImpactParameter() const ;
30 
32  Double_t GetTheta() const ;
33 
35  Double_t GetPhi() const ;
36 
38  Double_t GetUniform() const ;
39  Double_t GetUniform2() const ;
40 
42  void SetDebug(const UInt_t debug) ;
43 
44  private:
45  static StGlauberUtilities* mInstance ;
47 
48  static const UShort_t mDebugLevel ;
49  TF1* mImpactParameter ;
50 
51  // TRandom* mRandom ; /// Random numbers
52  TRandom3* mRandom ;
53  UInt_t mDebug ;
54 
55  ClassDef(StGlauberUtilities, 0)
56 };
57 
58 namespace GlauberUtilities {
59  // Woods-saxon density profile
60  Double_t WoodsSaxon(Double_t* x, Double_t* par) ;
61 
62  // Woods-saxon density profile (2D for deformed nuclei)
63  Double_t WoodsSaxon2D(Double_t* x, Double_t* par) ;
64 
65  // Step function
66  Double_t StepFunction(Double_t* x, Double_t* par) ;
67 
68  // Gaussian function
69  Double_t Gaussian(Double_t* x, Double_t* par) ;
70 }
71 
72 
73 #endif
74 
Double_t GetTheta() const
Get theta (polar angle)
Double_t GetMaximumImpactParameter() const
Get maximum impact parameter.
Double_t GetImpactParameter() const
Default destructor.
Double_t GetUniform() const
Get uniform distribution in 0 < x < 1.
void SetDebug(const UInt_t debug)
Set debug level.
Double_t GetUniform2() const
Double_t GetPhi() const
Get phi (azimuthal angle)