Geometry and simulation file modified
[u/mrichter/AliRoot.git] / MFT / runSimulation.C
1 void runSimulation(Int_t nevents,
2                    const Char_t *config,
3                    Int_t runNumber) {
4   
5   AliSimulation *simulator = new AliSimulation(config);
6
7   TDatime dt;
8   UInt_t seed = dt.Get();
9
10   simulator->SetSeed(seed);
11   simulator->SetRunNumber(runNumber);
12   simulator->SetTriggerConfig("MUON");
13   simulator->SetMakeDigits("MUON MFT");
14   simulator->SetMakeSDigits("MUON MFT");
15   simulator->SetRunQA(":");
16   simulator->SetRunHLT("");
17
18   gRandom->SetSeed(seed);
19
20   // MUON Tracker
21   simulator->SetSpecificStorage("MUON/Align/Data",      "alien://folder=/alice/simulation/2008/v4-15-Release/Ideal");
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();
27
28   // The rest
29   TStopwatch timer;
30   timer.Start();
31   simulator->Run(nevents);
32   timer.Stop();
33   timer.Print();
34
35 }