1 void sim(Int_t nev=150) {
\r
3 simu.SetMakeSDigits("TRD TOF PHOS HMPID EMCAL MUON FMD ZDC T0 VZERO");
\r
4 simu.SetMakeDigitsFromHits("ITS TPC");
\r
6 simu.SetDefaultStorage("alien://Folder=/alice/simulation/2008/v4-15-Release/Ideal/");
\r
8 // No write access to the OCDB => local specific storage
\r
9 simu.SetSpecificStorage("GRP/GRP/Data",
\r
10 Form("local://%s/",gSystem->pwd()));
\r
12 Printf("%s:%d %d events",(char*)__FILE__,__LINE__,nev);
\r
24 TPythia6 *pythia = TPythia6::Instance();
\r
26 Double_t xsection = pythia->GetPARI(1);
\r
27 UInt_t ntrials = pythia->GetMSTI(5);
\r
29 TFile *file = new TFile("pyxsec.root","recreate");
\r
30 TTree *tree = new TTree("Xsection","Pythia cross section");
\r
31 TBranch *branch = tree->Branch("xsection", &xsection, "X/D");
\r
32 TBranch *branch = tree->Branch("ntrials" , &ntrials , "X/i");
\r
40 cout << "Pythia cross section: " << xsection
\r
41 << ", number of trials: " << ntrials << endl;
\r