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