In vmctest/production:
[u/mrichter/AliRoot.git] / test / vmctest / production / sim.C
index a36f8c7..575d6b2 100644 (file)
@@ -1,22 +1,68 @@
-void sim(Int_t nev=20) {\r
-\r
-  AliSimulation simulator;\r
-  simulator.SetMakeSDigits("TRD TOF PHOS HMPID EMCAL MUON FMD ZDC PMD T0 VZERO");\r
-  simulator.SetMakeDigitsFromHits("ITS TPC");\r
-  simulator.SetRunHLT("");\r
-  \r
-  // The raw data are not written due to the huge increase of the \r
-  // virtual memory in HLT\r
-  // simulator.SetWriteRawData("ALL","raw.root",kTRUE);\r
-  \r
-  simulator.SetDefaultStorage("local://$ALICE_ROOT/OCDB");\r
\r
-  simulator.SetSpecificStorage("GRP/GRP/Data",\r
-                                Form("local://%s",gSystem->pwd()));\r
-  \r
-  TStopwatch timer;\r
-  timer.Start();\r
-  simulator.Run(nev);\r
-  timer.Stop();\r
-  timer.Print();\r
-}\r
+// $Id$
+
+void sim(Int_t nev=20) {
+
+  AliSimulation simulator;
+  simulator.SetMakeSDigits("TRD TOF PHOS HMPID EMCAL MUON FMD ZDC PMD T0 VZERO");
+  simulator.SetMakeDigitsFromHits("ITS TPC");
+  
+//
+// Ideal OCDB
+
+  simulator.SetDefaultStorage("alien://Folder=/alice/simulation/2008/v4-15-Release/Ideal/");
+
+//
+// Mean verrtex from RAW OCDB
+
+ simulator.SetSpecificStorage("GRP/Calib/MeanVertexSPD", "alien://folder=/alice/data/2010/OCDB");
+
+//
+// SDD from RAW OCDB
+
+ simulator.SetSpecificStorage("ITS/Calib/CalibSDD","alien://Folder=/alice/data/2010/OCDB");
+
+//
+// EMCAL from RAW OCDB
+
+  simulator.SetSpecificStorage("EMCAL/Calib/Data","alien://Folder=/alice/data/2010/OCDB");
+
+//
+// TRD from RAW OCDB
+
+  simulator.SetSpecificStorage("TRD/Calib/ChamberStatus","alien://folder=/alice/data/2010/OCDB");
+  simulator.SetSpecificStorage("TRD/Calib/PadStatus","alien://folder=/alice/data/2010/OCDB");
+
+//
+// V0 from RAW OCDB
+
+  simulator.SetSpecificStorage("VZERO/Trigger/Data","alien://folder=/alice/data/2010/OCDB");
+  simulator.SetSpecificStorage("VZERO/Calib/RecoParam","alien://folder=/alice/data/2010/OCDB");
+  simulator.SetSpecificStorage("VZERO/Calib/Data","alien://folder=/alice/data/2010/OCDB");
+  simulator.SetSpecificStorage("VZERO/Calib/TimeSlewing","alien://folder=/alice/data/2010/OCDB");
+  simulator.SetSpecificStorage("VZERO/Calib/TimeDelays","alien://folder=/alice/data/2010/OCDB");
+
+//
+// TOF from RAW OCDB
+
+//  simulator.SetSpecificStorage("TOF/Calib/Status","alien://folder=/alice/data/2010/OCDB");
+
+//
+// Read GRP Data from RAW
+
+  simulator.SetSpecificStorage("GRP/GRP/Data", "alien://Folder=/alice/data/2010/OCDB");
+
+//
+// Vertex and Mag.field from OCDB
+
+  simulator.UseVertexFromCDB();
+  simulator.UseMagFieldFromGRP();
+
+//
+// The rest
+
+  TStopwatch timer;
+  timer.Start();
+  simulator.Run(nev);
+  timer.Stop();
+  timer.Print();
+}