Create the magnetic field map in the reconstruction macros (Yuri)
[u/mrichter/AliRoot.git] / test / ppbench / recraw / rec.C
... / ...
CommitLineData
1void rec() {
2
3 AliCDBManager::Instance()->SetRun(0);
4
5 AliMagFMaps* field = new AliMagFMaps("Maps","Maps", 2, 1., 10., AliMagFMaps::k5kG);
6 AliTracker::SetFieldMap(field,kTRUE);
7
8 AliReconstruction reco;
9
10 reco.SetUniformFieldTracking(kFALSE);
11 reco.SetWriteESDfriend();
12 reco.SetWriteAlignmentData();
13 AliTPCRecoParam * tpcRecoParam = AliTPCRecoParam::GetLowFluxParam();
14 AliTPCReconstructor::SetRecoParam(tpcRecoParam);
15 // AliTPCReconstructor::SetStreamLevel(1);
16
17 reco.SetRunReconstruction("ITS TPC TRD TOF HMPID PHOS EMCAL MUON FMD PMD ZDC T0 VZERO");
18 reco.SetInput("raw.root");
19
20 reco.SetNumberOfEventsPerFile(-1); // all events in one single file
21
22 TStopwatch timer;
23 timer.Start();
24 reco.Run();
25 timer.Stop();
26 timer.Print();
27}