Run number, random number seed now set to AliSimulation.
authorivana <ivana@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 19 Nov 2007 10:55:44 +0000 (10:55 +0000)
committerivana <ivana@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 19 Nov 2007 10:55:44 +0000 (10:55 +0000)
(Philippe P., Philippe C.)

MUON/runSimulation.C

index 66a8274e3327b0d30d720857c800bb62df7a5a22..2443a01824c283ad6275af5925edbd8296789965 100644 (file)
@@ -31,9 +31,9 @@ void runSimulation(int run, int seed, int nevents, const char* config)
 // 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);
   AliSimulation MuonSim(config);
+  MuonSim.SetRunNumber(run);
+  MuonSim.SetSeed(seed);
   MuonSim.SetMakeTrigger("MUON");
   MuonSim.SetWriteRawData("MUON","raw.root",kTRUE);
   MuonSim.Run(nevents);