/* $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();
+
}