Initial energy density as function of impact parameter added.
[u/mrichter/AliRoot.git] / FASTSIM / AliFastGlauber.h
CommitLineData
5b3a5a5d 1#ifndef ALIFASTGLAUBER_H
2#define ALIFASTGLAUBER_H
3/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
5
6/* $Id$ */
7
8#include <TObject.h>
9class TF1;
10class TF2;
11
12class AliFastGlauber : public TObject {
13 public:
14 AliFastGlauber();
15 virtual ~AliFastGlauber(){;}
16 void SetWoodSaxonParameters(Double_t r0, Double_t d, Double_t w, Double_t n)
17 {fWSr0 = r0; fWSd = d; fWSw = w; fWSn = n;}
18 void SetMaxImpact(Float_t bmax = 20.) {fbMax = bmax;};
19 void SetHardCrossSection(Float_t xs = 6.6) {fSigmaHard = xs;}
20
2a103154 21 static Double_t WSb (Double_t *xx, Double_t *par);
22 static Double_t WSbz (Double_t *xx, Double_t *par);
23 static Double_t WSz (Double_t *xx, Double_t *par);
24 static Double_t WSta (Double_t *xx, Double_t *par);
25 static Double_t WStarfi (Double_t *xx, Double_t *par);
26 static Double_t WStaa (Double_t *xx, Double_t *par);
27 static Double_t WSgeo (Double_t *xx, Double_t *par);
28 static Double_t WSbinary (Double_t *xx, Double_t *par);
29 static Double_t WSN (Double_t *xx, Double_t *par);
30 static Double_t WAlmond (Double_t *xx, Double_t *par);
31 static Double_t WPathLength0 (Double_t *xx, Double_t *par);
32 static Double_t WPathLength (Double_t *xx, Double_t *par);
33 static Double_t WIntRadius (Double_t *xx, Double_t *par);
34 static Double_t WEnergyDensity (Double_t *xx, Double_t *par);
f3a04204 35
5b3a5a5d 36 void Init(Int_t mode = 0);
37 void DrawWSb();
38 void DrawThickness();
39 void DrawOverlap();
40 void DrawGeo();
41 void DrawBinary();
42 void DrawN();
2a103154 43 void DrawKernel(Double_t b = 0.);
44 void DrawAlmond(Double_t b = 0.);
45 void DrawPathLength0(Double_t b = 0.);
f3a04204 46 void DrawPathLength(Double_t b, Int_t ni = 1000);
2a103154 47 void DrawIntRadius(Double_t b = 0.);
48 void DrawEnergyDensity();
f3a04204 49
5b3a5a5d 50 Double_t CrossSection(Double_t b1, Double_t b2);
51 Double_t FractionOfHardCrossSection(Double_t b1, Double_t b2);
52 Double_t Binaries(Double_t b);
53 TF2* Kernel() {return fWStarfi;}
54 TF1* Overlap() {return fWStaa;}
55 void SimulateTrigger(Int_t n);
56 void GetRandom(Float_t& b, Float_t& p, Float_t& mult);
c2140715 57 void GetRandom(Int_t& bin, Bool_t& hard);
5b3a5a5d 58 Float_t GetRandomImpactParameter(Float_t bmin, Float_t bmax);
59 protected:
2a103154 60 static TF1* fWSb; // Wood-Saxon Function (b)
61 static TF2* fWSbz; // Wood-Saxon Function (b, z)
62 static TF1* fWSz; // Wood-Saxon Function (b = b0, z)
63 static TF1* fWSta; // Thickness Function
64 static TF2* fWStarfi; // Kernel for Overlap Function
65 static TF1* fWStaa; // Overlap Function
66 static TF2* fWAlmond; // Interaction Almond
67 static TF1* fWPathLength0; // Path Length as a function of phi
68 static TF1* fWPathLength; // Path Length as a function of phi
69 static TF1* fWIntRadius; // Interaction Radius
70 static TF1* fWSgeo; // dSigma/db geometric
71 static TF1* fWSbinary; // dSigma/db binary
72 static TF1* fWSN; // dN/db binary
73 static TF1* fWEnergyDensity; // Energy density as a function of impact parameter
5b3a5a5d 74
2a103154 75 Float_t fWSr0; // Wood-Saxon Parameter r0
76 Float_t fWSd; // Wood-Saxon Parameter d
77 Float_t fWSw; // Wood-Saxon Parameter w
78 Float_t fWSn; // Wood-Saxon Parameter n
79 Float_t fSigmaHard; // Hard Cross Section
5b3a5a5d 80 static Float_t fbMax; // Maximum Impact Parameter
81
82 ClassDef(AliFastGlauber,1) // Event geometry simulation in the Glauber Model
83};
84
85#endif
86
87
88