Use VMC id's rather than TGeo id's
[u/mrichter/AliRoot.git] / FMD / scripts / pdc06_sim.C
CommitLineData
cf806c6a 1void sim(Int_t nev=100) {
2 AliSimulation simulator;
3 simulator.SetMakeSDigits("TRD TOF PHOS RICH EMCAL MUON FMD ZDC PMD START VZERO");
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}