]> git.uio.no Git - u/mrichter/AliRoot.git/blame - ANALYSIS/macros/train/AddMCGenAmpt.C
Small fix:
[u/mrichter/AliRoot.git] / ANALYSIS / macros / train / AddMCGenAmpt.C
CommitLineData
07111994 1AliGenerator *AddMCGenAmpt(
2 Double_t Energy = 2760., // CM energy
3 Double_t bmin = 0.0, // minimum impact parameter
4 Double_t bmax = 20.0, // maximum impact parameter
5 Bool_t stringMelting = kTRUE, // string melting option
6 Bool_t useART = kTRUE, // use hadronic rescattering phase (ART)
7 )
9742e2a6 8{
07111994 9 // User defined generator
9742e2a6 10
86276464 11 gSystem->Load("libampt.so");
9742e2a6 12 gSystem->Load("libTAmpt.so");
13
07111994 14
9742e2a6 15 AliGenAmpt *genAMPT = new AliGenAmpt(-1);
07111994 16 //=========================================================================
17
18
19 // User settings
20 Int_t Flag_SM = 4; // flag for string melting: 1 = default, 4 = String Melting
21 Int_t NTmax = 150; // NTMAX: number of timesteps (Default = 150), to turn off ART set it to 3
22 Double_t mu = 3.2264; // parton screening mass in fm^(-1) (Default = 3.2264)
23 Double_t alpha_s = 1./3.; // change mu and alpha_s (Default = 1./3.) to vary scattering cross-section
24 // mu = 3.2 fm^-1 and alpha_s = 0.33 ==> sigma_{partonic} = 1.5mb
25 if(!stringMelting)
26 Flag_SM = 1;
27
28 if(!useART)
29 NTmax = 3;
30 //=========================================================================
31
32
33 // Decayer
34 AliDecayer *decayer = new AliDecayerPythia();
35 genAMPT->SetForceDecay( kHadronicD );
36 genAMPT->SetDecayer( decayer );
37 //=========================================================================
9742e2a6 38
07111994 39 // Collision system
40 genAMPT->SetEnergyCMS(Energy);
9742e2a6 41 genAMPT->SetReferenceFrame("CMS");
42 genAMPT->SetProjectile("A", 208, 82);
43 genAMPT->SetTarget ("A", 208, 82);
44 genAMPT->SetPtHardMin (2);
795d6f69 45 genAMPT->SetImpactParameterRange(bmin,bmax);
07111994 46 //=========================================================================
47
48 // options
49 genAMPT->SetJetQuenching(0); // enable jet quenching
50 genAMPT->SetShadowing(1); // enable shadowing
51 genAMPT->SetDecaysOff(1); // neutral pion and heavy particle decays switched off
52 genAMPT->SetSpectators(0); // track spectators
53 genAMPT->SetIsoft(Flag_SM); // 4=string melting, 1=standard AMPT
54 genAMPT->SetXmu(mu); // parton xsection
55 genAMPT->SetNtMax(NTmax); // time bins
56 genAMPT->SetAlpha(alpha_s); // alpha =0.333
57 genAMPT->SetStringFrag(0.5,0.9); // string fragmentation parameters
58 genAMPT->SetIpop(1); // enable popcorn mechanism (net-baryon stopping)
59 //=========================================================================
9742e2a6 60
07111994 61 // Boost into LHC lab frame
62 genAMPT->SetBoostLHC(1);
63
64 // randomize reaction plane
9742e2a6 65 genAMPT->SetRandomReactionPlane(kTRUE);
66
67 return genAMPT;
68
9742e2a6 69}