Create the magnetic field map in the reconstruction macros (Yuri)
[u/mrichter/AliRoot.git] / test / merge / signal / rec.C
1 void rec() {
2   AliReconstruction reco;
3   reco.SetWriteESDfriend();
4   reco.SetWriteAlignmentData();
5   AliTPCReconstructor::SetStreamLevel(1);
6   AliTPCReconstructor::SetRecoParam(AliTPCRecoParam::GetLowFluxParam());
7   //  reco.SetInput("raw.root");
8
9 // **** The field map settings must be the same as in Config.C !
10   AliMagFMaps *field=new AliMagFMaps("Maps","Maps",2,1.,10.,AliMagFMaps::k5kG);
11   Bool_t uniform=kFALSE;
12   AliTracker::SetFieldMap(field,uniform);
13
14   TStopwatch timer;
15   timer.Start();
16   reco.Run();
17   timer.Stop();
18   timer.Print();
19 }