changes in the MagF constructor
[u/mrichter/AliRoot.git] / test / pileup / sim.C
CommitLineData
8498bdf5 1void sim(Int_t nev=5) {
2 if (!strcmp(gSystem->GetBuildArch(),"win32gcc")) {
3 gSystem->Load("libProof");
4 gSystem->Load("libGui");
5 gROOT->Macro("loadlibssim.C");
6 new AliRun("gAlice","The ALICE Off-line Simulation Framework");
7 }
8
9 AliSimulation simulator;
10 simulator.SetMakeSDigits("TRD TOF PHOS HMPID EMCAL MUON FMD ZDC PMD T0 VZERO");
11 simulator.SetMakeDigitsFromHits("ITS TPC");
12 if (strcmp(gSystem->GetBuildArch(),"win32gcc")) {
13 simulator.SetWriteRawData("ALL","raw.root",kTRUE);
14 }
15
162637e4 16 simulator.SetDefaultStorage("local://$ALICE_ROOT/OCDB");
8498bdf5 17 simulator.SetSpecificStorage("GRP/GRP/Data",
18 Form("local://%s",gSystem->pwd()));
19
20 TStopwatch timer;
21 timer.Start();
22 simulator.Run(nev);
23 timer.Stop();
24 timer.Print();
25}