Separate syswatch for sim. and rec.
[u/mrichter/AliRoot.git] / test / gun / sim.C
... / ...
CommitLineData
1void sim(Int_t nev=4) {
2
3 AliSimulation simulator;
4 simulator.SetMakeSDigits("TRD TOF PHOS HMPID EMCAL MUON FMD ZDC PMD T0 VZERO ACORDE");
5 simulator.SetMakeDigitsFromHits("ITS TPC");
6 simulator.SetWriteRawData("ALL","raw.root",kTRUE);
7
8 simulator.SetDefaultStorage("local://$ALICE_ROOT/OCDB");
9 simulator.SetSpecificStorage("GRP/GRP/Data",
10 Form("local://%s",gSystem->pwd()));
11
12 TStopwatch timer;
13 timer.Start();
14 simulator.Run(nev);
15 timer.Stop();
16 timer.Print();
17}