Using AliMagWrapCheb
[u/mrichter/AliRoot.git] / test / gun / sim.C
index 176009327705ddd7c52183a7898412c16e216e28..92f57fad3d1a33062ade8cddca5c270fe90ed392 100644 (file)
@@ -1,8 +1,13 @@
 void sim(Int_t nev=4) {
+
   AliSimulation simulator;
   simulator.SetMakeSDigits("TRD TOF PHOS HMPID EMCAL MUON FMD ZDC PMD T0 VZERO");
   simulator.SetMakeDigitsFromHits("ITS TPC");
-  //  simulator.SetWriteRawData("ALL","raw.root",kTRUE);
+  simulator.SetWriteRawData("ALL","raw.root",kTRUE);
+
+  simulator.SetDefaultStorage("local://$ALICE_ROOT");
+  simulator.SetSpecificStorage("GRP/GRP/Data",
+                              Form("local://%s",gSystem->pwd()));
 
   TStopwatch timer;
   timer.Start();