]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MUON/runSimulation.C
Extacting the OCDB in a separate module. The detectors have write permission in the...
[u/mrichter/AliRoot.git] / MUON / runSimulation.C
index 66a8274e3327b0d30d720857c800bb62df7a5a22..a120d274da41718335db1859dc55559089549739 100644 (file)
 
 /* $Id$ */
 
-// Macro extracted from MUON test script
-// By Laurent Aphecetche
+/// \ingroup macros
+/// \file runSimulation.C
+/// \brief Macro for running simulation
+///
+/// Macro extracted from the MUON test script
+///
+/// \author Laurent Aphecetche
 
 #if !defined(__CINT__) || defined(__MAKECINT__)
 #include "AliCDBManager.h"
 #include <TRandom.h>
 #endif
 
-void runSimulation(int run, int seed, int nevents, const char* config)
+void runSimulation(int seed, int nevents, const char* config)
 { 
 // Uncoment following lines to run simulation with local residual mis-alignment
 // (generated via MUONGenerateGeometryData.C macro)
 // AliCDBManager* man = AliCDBManager::Instance();
-// man->SetDefaultStorage("local://$ALICE_ROOT");
-// man->SetSpecificStorage("MUON/Align/Data","local://$ALICE_ROOT/MUON/ResMisAlignCDB");
-  gRandom->SetSeed(seed);
-  AliCDBManager::Instance()->SetRun(run);
+// man->SetDefaultStorage("local://$ALICE_ROOT/OCDB");
+// man->SetSpecificStorage("MUON/Align/Data","local://$ALICE_ROOT/OCDB/MUON/ResMisAlignCDB");
+
   AliSimulation MuonSim(config);
+  MuonSim.SetSeed(seed);
   MuonSim.SetMakeTrigger("MUON");
   MuonSim.SetWriteRawData("MUON","raw.root",kTRUE);
+
+  MuonSim.SetMakeDigits("MUON");
+  MuonSim.SetMakeSDigits("MUON");
+  MuonSim.SetMakeDigitsFromHits("");
+
+  MuonSim.SetRunHLT(""); // disable HLT for the time being
+
+  MuonSim.SetRunQA("MUON:ALL");
+  
   MuonSim.Run(nevents);
   //gObjectTable->Print();
+
 }