Working on the electron cut
[u/mrichter/AliRoot.git] / prod / fpprod / sim.C
CommitLineData
5225c9db 1void sim(Int_t nev=50) {
7fb59432 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 }
28b75255 8
9 AliSimulation simulator;
10 simulator.SetMakeSDigits("TRD TOF PHOS HMPID EMCAL MUON FMD ZDC PMD T0 VZERO");
11 simulator.SetMakeDigitsFromHits("ITS TPC");
7fb59432 12 if (strcmp(gSystem->GetBuildArch(),"win32gcc")) {
13 simulator.SetWriteRawData("ALL","raw.root",kTRUE);
14 }
a71e9f14 15
162637e4 16 simulator.SetDefaultStorage("local://$ALICE_ROOT/OCDB");
a71e9f14 17 simulator.SetSpecificStorage("GRP/GRP/Data",
18 Form("local://%s",gSystem->pwd()));
28b75255 19
20 TStopwatch timer;
21 timer.Start();
22 simulator.Run(nev);
23 timer.Stop();
24 timer.Print();
25}