]>
Commit | Line | Data |
---|---|---|
cf806c6a | 1 | void sim(Int_t nev=100) { |
2 | AliSimulation simulator; | |
8b1c76de | 3 | simulator.SetMakeSDigits("TRD TOF PHOS HMPID EMCAL MUON FMD ZDC PMD START VZERO"); |
cf806c6a | 4 | simulator.SetMakeDigitsFromHits("ITS TPC"); |
5 | simulator.SetWriteRawData("ALL","raw.root",kTRUE); | |
6 | simulator.SetDefaultStorage("alien://Folder=/alice/data/2006/LHC06a/CDB"); | |
7 | ||
8 | TGrid::Connect("alien://"); | |
9 | if (!gGrid) { | |
10 | fprintf(stderr,"Error: cannot authenticate to the API service - exit!\n"); | |
11 | exit(-2); | |
12 | } | |
13 | ||
14 | TStopwatch timer; | |
15 | timer.Start(); | |
16 | simulator.Run(nev); | |
17 | timer.Stop(); | |
18 | timer.Print(); | |
19 | } |