/** Do reconstruction */
void
-Reconstruct()
+Reconstruct(bool raw=false)
{
- AliCDBManager* cdb = AliCDBManager::Instance();
- cdb->SetDefaultStorage("local://$ALICE_ROOT");
- AliLog::SetModuleDebugLevel("FMD", 2);
+ // 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.SetInput("./");
- rec.Run();
+ rec.SetRunQA(":");
+ if (raw) rec.SetInput("raw.root");
+
+ AliLog::SetModuleDebugLevel("FMD", 2);
+
+ TStopwatch timer;
+ timer.Start();
+ rec.Run();
+ timer.Stop();
+ timer.Print();
+
}
//