]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - test/pploadlibs/sim.C
Remake TOF-PID with event-time resolution calculated event-by-event (T0 fill or T0...
[u/mrichter/AliRoot.git] / test / pploadlibs / sim.C
index 5eec39aa13c8918027f0922d8d71ccc01710653e..a38496907aedabb1a280d8c62c5802b47471caad 100644 (file)
@@ -1,15 +1,14 @@
-void sim(Int_t nev=4) {
-  gSystem->Load("libProof");
-  gSystem->Load("libGui");
-  if (!strcmp(gSystem->GetBuildArch(),"macosx")) gSystem->Load("libf95");
+void sim(Int_t nev=20) {
   gROOT->Macro("loadlibssim.C");
   new AliRun("gAlice","The ALICE Off-line Simulation Framework");
 
   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.SetDefaultStorage("local://$ALICE_ROOT/OCDB");
+  simulator.SetSpecificStorage("GRP/GRP/Data",
+                              Form("local://%s",gSystem->pwd()));
   TStopwatch timer;
   timer.Start();
   simulator.Run(nev);