1 void runGlauberMCpPb(Int_t option=0,Int_t N=250000,Bool_t qparts=kFALSE)
4 gSystem->Load("libVMC");
5 gSystem->Load("libPhysics");
6 gSystem->Load("libTree");
7 gSystem->Load("libPWGGlauber");
9 //set the random seed from current time
11 Int_t seed = time.GetSec();
12 gRandom->SetSeed(seed);
14 Int_t nevents = N; // number of events to simulate
15 // supported systems are e.g. "p", "d", "Si", "Au", "Pb", "U"
18 Double_t signn=70; // inelastic nucleon nucleon cross section
20 const char *fname="glau_ppb_ntuple.root";
27 AliGlauberMC mcg(sysA,sysB,signn);
28 mcg.SetMinDistance(mind);
30 AliGlauberNucleus &na = mcg.GetNucA();
32 AliGlauberNucleus &nb = mcg.GetNucB();
36 mcg.SetDoFluc(0.55,78.5,0.82,kTRUE);
38 mcg.SetDoFluc(1.01,72.5,0.74,kTRUE);
39 mcg.SetDoPartProduction(kFALSE);
42 mcg.SetdNdEtaType(AliGlauberMC::kNBDSV);
43 mcg.GetdNdEtaParam()[0] = 2.49; //npp
44 mcg.GetdNdEtaParam()[1] = 1.7; //ratioSgm2Mu
45 mcg.GetdNdEtaParam()[2] = 0.13; //xhard
50 TNtuple *nt = mcg.GetNtuple();
51 TFile out(fname,"recreate",fname,9);
53 printf("total cross section with a nucleon-nucleon cross section %.4f is %.4f\n\n",signn,mcg.GetTotXSect());