Create the magnetic field map in the reconstruction macros (Yuri)
[u/mrichter/AliRoot.git] / test / ppbench / rec.C
index 225b08b47db4ed38943957ea0f02a950bead99f8..3e7a77fcfb8baa6796670b31105ed66725d87dcd 100644 (file)
@@ -1,7 +1,6 @@
 void rec() {
   AliReconstruction reco;
 
-  reco.SetUniformFieldTracking(kFALSE);
   reco.SetWriteESDfriend();
   reco.SetWriteAlignmentData();
   AliTPCRecoParam * tpcRecoParam = AliTPCRecoParam::GetLowFluxParam();
@@ -9,6 +8,11 @@ void rec() {
   AliTPCReconstructor::SetStreamLevel(1);
   //   reco.SetInput("raw.root");
 
+// **** The field map settings must be the same as in Config.C !
+  AliMagFMaps *field=new AliMagFMaps("Maps","Maps",2,1.,10.,AliMagFMaps::k5kG);
+  Bool_t uniform=kFALSE;
+  AliTracker::SetFieldMap(field,uniform);
+
   TStopwatch timer;
   timer.Start();
   reco.Run();