]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - test/fpprod/rec.C
Create the magnetic field map in the reconstruction macros (Yuri)
[u/mrichter/AliRoot.git] / test / fpprod / rec.C
index e49150386db3d03b967be15da33e68162a474740..d99667d63fed05088a6af61b22f1b9dc95b40d92 100644 (file)
@@ -1,6 +1,6 @@
 void rec() {
   AliReconstruction reco;
-  reco.SetUniformFieldTracking(kFALSE);
+
   reco.SetWriteESDfriend();
   reco.SetWriteAlignmentData();
   AliTPCRecoParam * tpcRecoParam = AliTPCRecoParam::GetLowFluxParam();
@@ -12,6 +12,15 @@ void rec() {
   reco.SetRunGlobalQA(kFALSE);
   reco.SetMeanVertexConstraint(kFALSE);
 
+// **** The field map settings must be the same as in Config.C !
+  AliMagWrapCheb* field = 0x0;
+  //field = new AliMagWrapCheb("Maps","Maps", 2, 0., 10., AliMagWrapCheb::k2kG);
+  //Bool_t uniform=kTRUE;
+  //AliTracker::SetFieldMap(field,uniform); // tracking with the uniform field
+  field = new AliMagWrapCheb("Maps","Maps", 2, 1., 10., AliMagWrapCheb::k5kG);
+  Bool_t uniform=kFALSE;
+  AliTracker::SetFieldMap(field,uniform);  // tracking with the real map
+
   TStopwatch timer;
   timer.Start();
   reco.Run();