]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - FMD/Reconstruct.C
Compatibility with the trunk of ROOT
[u/mrichter/AliRoot.git] / FMD / Reconstruct.C
index c8aa8a9ae35c9d9589e83add11587ca4c5bce53a..f2b0a2072a5900c37751b5cd7e71b71076c25350 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()
+Reconstruct(bool raw=false)
 {
-   AliReconstruction rec;   
-   rec.SetRunLocalReconstruction("FMD");
-   rec.SetRunVertexFinder(kFALSE);
-   rec.SetRunTracking(kFALSE); 
-   rec.SetFillESD(""); 
-   rec.SetInput("./");
-   rec.Run(); 
+  // To reconstruct raw data from FDR-I, please enable below lines: 
+  // AliFMDParameters::Instance()->UseRcuTrailer(false);
+  // AliFMDParameters::Instance()->UseCompleteHeader(false);
+
+  AliReconstruction rec;   
+  rec.SetDefaultStorage("local://$ALICE_ROOT/OCDB");
+  rec.SetSpecificStorage("GRP/GRP/Data",Form("local://%s",gSystem->pwd()));
+  rec.SetRunLocalReconstruction("FMD");
+  rec.SetRunVertexFinder(kFALSE);
+  rec.SetRunReconstruction("FMD");
+  rec.SetRunTracking(""); 
+  rec.SetFillESD("FMD"); 
+  rec.SetRunQA(":");
+  if (raw) rec.SetInput("raw.root");
+
+  AliLog::SetModuleDebugLevel("FMD", 2);
+
+  TStopwatch timer;
+  timer.Start();
+  rec.Run();
+  timer.Stop();
+  timer.Print();
+
 }
 
 //