1 void sim(Int_t nev=1) {
2 const char * kYear = "08" ;
4 simu.SetMakeSDigits("TRD TOF PHOS HMPID EMCAL MUON FMD PMD T0 ZDC VZERO");
5 simu.SetMakeDigits ("TRD TOF PHOS HMPID EMCAL MUON FMD PMD T0 ZDC VZERO");
6 simu.SetMakeDigitsFromHits("ITS TPC");
7 simu.SetWriteRawData("ALL","raw.root",kTRUE);
8 // simu.SetDefaultStorage("alien://Folder=/alice/data/2008/LHC08c/OCDB/");
9 simu.SetDefaultStorage("local://$ALICE_ROOT");
10 simu.SetSpecificStorage("EMCAL/*","local://DB");
12 simu.SetRunQA("ALL:ALL") ;
13 // AliQA::SetQARefStorage(Form("%s%s/", AliQA::GetQARefDefaultStorage(), kYear)) ;
14 AliQA::SetQARefStorage("local://$ALICE_ROOT") ;
15 // AliQA::SetQARefDataDirName(AliQA::kMONTECARLO) ; //RUN_TYPE
27 TPythia6 *pythia = TPythia6::Instance();
29 Double_t xsection = pythia->GetPARI(1);
30 Int_t ntrials = pythia->GetMSTI(5);
32 TTree *tree = new TTree("Xsection","Pythia cross section");
33 TBranch *branch = tree->Branch("xsection", &xsection, "X/D");
34 TBranch *branch = tree->Branch("ntrials" , &ntrials , "X/i");
37 TFile *file = new TFile("pyxsec.root","recreate");
41 cout << "Pythia cross section: " << xsection
42 << ", number of trials: " << ntrials << endl;