Commit of new FMD3 geometry and other geometry related issues.
[u/mrichter/AliRoot.git] / FMD / Reconstruct.C
index e7aa3c0eaf3f0c0b4d73f576852e420848c52b00..1cd8c0185f196ddc1b236350495cafbe7fa38d3d 100644 (file)
@@ -31,7 +31,12 @@ Reconstruct()
   // To reconstruct raw data from FDR-I, please enable below lines: 
   // AliFMDParameters::Instance()->UseRcuTrailer(false);
   // AliFMDParameters::Instance()->UseCompleteHeader(false);
-  
+  TFile* magF = TFile::Open("mag.root", "READ");
+  AliMagF* mag = static_cast<AliMagF*>(magF->Get("mag"));
+  if (!mag) return;
+  AliTracker::SetFieldMap(mag, true);
+
   AliReconstruction rec;   
   rec.SetRunLocalReconstruction("FMD");
   rec.SetRunVertexFinder(kFALSE);