Possibility to run on Windows/Cygwin
[u/mrichter/AliRoot.git] / test / fpprod / rec.C
CommitLineData
28b75255 1void rec() {
7fb59432 2 if (!strcmp(gSystem->GetBuildArch(),"win32gcc")) {
3 gSystem->Load("libProof");
4 gSystem->Load("libGui");
5 gROOT->Macro("loadlibsrec.C");
6 new AliRun("gAlice","The ALICE Off-line Simulation Framework");
7 }
28b75255 8 AliReconstruction reco;
2ded75c3 9
28b75255 10 reco.SetWriteESDfriend();
11 reco.SetWriteAlignmentData();
12 AliTPCRecoParam * tpcRecoParam = AliTPCRecoParam::GetLowFluxParam();
13 AliTPCReconstructor::SetRecoParam(tpcRecoParam);
14 AliTPCReconstructor::SetStreamLevel(1);
15 // reco.SetInput("raw.root");
16 reco.SetRunReconstruction("ITS TPC TRD TOF HMPID PHOS EMCAL MUON VZERO T0 FMD PMD ZDC");
11adacfd 17 reco.SetRunQA("");
8d735b33 18 reco.SetRunGlobalQA(kFALSE);
277bafdc 19 reco.SetMeanVertexConstraint(kFALSE);
8d735b33 20
2ded75c3 21// **** The field map settings must be the same as in Config.C !
22 AliMagWrapCheb* field = 0x0;
23 //field = new AliMagWrapCheb("Maps","Maps", 2, 0., 10., AliMagWrapCheb::k2kG);
24 //Bool_t uniform=kTRUE;
25 //AliTracker::SetFieldMap(field,uniform); // tracking with the uniform field
26 field = new AliMagWrapCheb("Maps","Maps", 2, 1., 10., AliMagWrapCheb::k5kG);
27 Bool_t uniform=kFALSE;
28 AliTracker::SetFieldMap(field,uniform); // tracking with the real map
29
28b75255 30 TStopwatch timer;
31 timer.Start();
32 reco.Run();
33 timer.Stop();
34 timer.Print();
35}