]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - FMD/Reconstruct.C
Commit of new FMD3 geometry and other geometry related issues.
[u/mrichter/AliRoot.git] / FMD / Reconstruct.C
index c8aa8a9ae35c9d9589e83add11587ca4c5bce53a..1cd8c0185f196ddc1b236350495cafbe7fa38d3d 100644 (file)
  **************************************************************************/
 
 /* $Id$ */
-
+/** @file    Reconstruct.C
+    @author  Christian Holm Christensen <cholm@nbi.dk>
+    @date    Mon Mar 27 14:19:56 2006
+    @brief   Script to do reconstruction 
+*/
 // Script to do test the FMD digitization class. 
 
+/** Do reconstruction */
 void 
 Reconstruct()
 {
-   AliReconstruction rec;   
-   rec.SetRunLocalReconstruction("FMD");
-   rec.SetRunVertexFinder(kFALSE);
-   rec.SetRunTracking(kFALSE); 
-   rec.SetFillESD(""); 
-   rec.SetInput("./");
-   rec.Run(); 
+  // Debug the FMD.
+  // AliLog::SetModuleDebugLevel("FMD", 1);
+
+  // 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);
+  rec.SetRunTracking(""); 
+  rec.SetFillESD("FMD"); 
+  /// rec.SetInput("./");
+  rec.Run(); 
 }
 
 //