CA tracker - updates
[u/mrichter/AliRoot.git] / MFT / runSimulation.C
CommitLineData
190a8304 1void runSimulation(Int_t nevents,
a65a7e70 2 const Char_t *config,
3 Int_t runNumber) {
4
5 AliSimulation *simulator = new AliSimulation(config);
6
190a8304 7 TDatime dt;
8 UInt_t seed = dt.Get();
9
a65a7e70 10 simulator->SetSeed(seed);
11 simulator->SetRunNumber(runNumber);
12 simulator->SetTriggerConfig("MUON");
13 simulator->SetMakeDigits("MUON MFT");
14 simulator->SetMakeSDigits("MUON MFT");
4fe8ee42 15 simulator->SetRunQA(":");
a65a7e70 16 simulator->SetRunHLT("");
17
4fe8ee42 18 gRandom->SetSeed(seed);
19
20 // MUON Tracker
ad597c71 21 simulator->SetSpecificStorage("MUON/Align/Data", "alien://folder=/alice/simulation/2008/v4-15-Release/Ideal");
4fe8ee42 22 simulator->SetSpecificStorage("MUON/Calib/RecoParam", "alien://folder=/alice/cern.ch/user/a/auras/OCDB/");
23 simulator->SetSpecificStorage("MFT/Align/Data", "alien://folder=/alice/cern.ch/user/a/auras/OCDB/");
24 simulator->SetSpecificStorage("MFT/Calib/RecoParam", "alien://folder=/alice/cern.ch/user/a/auras/OCDB/");
25
26 simulator->UseMagFieldFromGRP();
a65a7e70 27
28 // The rest
29 TStopwatch timer;
30 timer.Start();
31 simulator->Run(nevents);
32 timer.Stop();
33 timer.Print();
34
35}