]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - FMD/Reconstruct.C
next50 trigger mask in AliHLTGlobalEsdConverterComponent
[u/mrichter/AliRoot.git] / FMD / Reconstruct.C
index 4180f5b4b462f90777397e49b9161d492a914d9a..f2b0a2072a5900c37751b5cd7e71b71076c25350 100644 (file)
 
 /** Do reconstruction */
 void 
-Reconstruct()
+Reconstruct(bool raw=false)
 {
-  // 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);
-  AliCDBManager::Instance()->SetDefaultStorage("local://$ALICE_ROOT/OCDB");
-  AliCDBManager::Instance()->SetRun(0);
 
   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(":");
-  rec.SetInput("raw.root");
-  // rec.SetRecoParam("TOF", new AliTOFRecoParam());
-  
-  rec.Run(); 
+  if (raw) rec.SetInput("raw.root");
+
+  AliLog::SetModuleDebugLevel("FMD", 2);
+
+  TStopwatch timer;
+  timer.Start();
+  rec.Run();
+  timer.Stop();
+  timer.Print();
+
 }
 
 //