ROOT logo
{
  //load libraries
 gSystem->Load("libPWGGlauber");
 //  gSystem->SetBuildDir("/tmp");
 //  gROOT->LoadMacro("$ALICE_ROOT/PWG/Glauber/AliGlauberNucleon.cxx+");
 //  gROOT->LoadMacro("$ALICE_ROOT/PWG/Glauber/AliGlauberNucleus.cxx+");
 //  gROOT->LoadMacro("$ALICE_ROOT/PWG/Glauber/AliGlauberMC.cxx+");

  //set the random seed from current time
  TTimeStamp time;
  Int_t seed = time->GetSec();
  gRandom->SetSeed(seed);

  Int_t nevents = 1000; // number of events to simulate 
  // supported systems are e.g. "p", "d", "Si", "Au", "Pb", "U" 
  Option_t *sysA="Pb"; 
  Option_t *sysB="Pb";
  Double_t signn=64; // inelastic nucleon nucleon cross section
  //const char *fname="GlauberMC_PbPb_ntuple.root"; // name output file

  // run the code to produce an ntuple:
  //  AliGlauberMC::runAndSaveNucleons(10000,"Pb","Pb",72);
  Double_t mind=0.4;
  AliGlauberMC::RunAndSaveNtuple(nevents,sysA,sysB,signn,mind);

}
 runGlauberMCexample.C:1
 runGlauberMCexample.C:2
 runGlauberMCexample.C:3
 runGlauberMCexample.C:4
 runGlauberMCexample.C:5
 runGlauberMCexample.C:6
 runGlauberMCexample.C:7
 runGlauberMCexample.C:8
 runGlauberMCexample.C:9
 runGlauberMCexample.C:10
 runGlauberMCexample.C:11
 runGlauberMCexample.C:12
 runGlauberMCexample.C:13
 runGlauberMCexample.C:14
 runGlauberMCexample.C:15
 runGlauberMCexample.C:16
 runGlauberMCexample.C:17
 runGlauberMCexample.C:18
 runGlauberMCexample.C:19
 runGlauberMCexample.C:20
 runGlauberMCexample.C:21
 runGlauberMCexample.C:22
 runGlauberMCexample.C:23
 runGlauberMCexample.C:24
 runGlauberMCexample.C:25
 runGlauberMCexample.C:26
 runGlauberMCexample.C:27