X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=FMD%2FReconstruct.C;h=f2b0a2072a5900c37751b5cd7e71b71076c25350;hb=0f666f27965f8b7df232c80be0c8ee8a1abab28d;hp=c6e0a34ff19df9c5debcb27e759cbb1bac18ebea;hpb=7868d9e2ccf62dfb5be72568cfefd8b1949efa95;p=u%2Fmrichter%2FAliRoot.git diff --git a/FMD/Reconstruct.C b/FMD/Reconstruct.C index c6e0a34ff19..f2b0a2072a5 100644 --- a/FMD/Reconstruct.C +++ b/FMD/Reconstruct.C @@ -23,30 +23,31 @@ /** 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(magF->Get("mag")); - if (!mag) return; - AliTracker::SetFieldMap(mag, true); 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.SetRecoParam("TOF", new AliTOFRecoParam()); - - rec.Run(); + rec.SetRunQA(":"); + if (raw) rec.SetInput("raw.root"); + + AliLog::SetModuleDebugLevel("FMD", 2); + + TStopwatch timer; + timer.Start(); + rec.Run(); + timer.Stop(); + timer.Print(); + } //