]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - test/pploadlibs/rec.C
Create the magnetic field map in the reconstruction macros (Yuri)
[u/mrichter/AliRoot.git] / test / pploadlibs / rec.C
index e4424e7b634c225f7062b3e57d45b96e545e8533..2c9b455c2c8123bee16d4d733894196e980349ea 100644 (file)
@@ -4,7 +4,7 @@ void rec() {
   gROOT->Macro("loadlibsrec.C");
   new AliRun("gAlice","The ALICE Off-line Simulation Framework");
   AliReconstruction reco;
-  reco.SetUniformFieldTracking(kFALSE);
+
   reco.SetWriteESDfriend();
   reco.SetWriteAlignmentData();
   AliTPCRecoParam * tpcRecoParam = AliTPCRecoParam::GetLowFluxParam();
@@ -12,6 +12,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();