X-Git-Url: http://git.uio.no/git/?p=u%2Fmrichter%2FAliRoot.git;a=blobdiff_plain;f=FMD%2FReconstruct.C;h=f2b0a2072a5900c37751b5cd7e71b71076c25350;hp=409df92ffc7202ea5e737fa38e235fd83bfdd5f6;hb=5eff9d181493d6448a481b3520c5c60fadd2c4e1;hpb=f95a63c4eca58e5264ca1ecf6cf74c5d30c60ea9 diff --git a/FMD/Reconstruct.C b/FMD/Reconstruct.C index 409df92ffc7..f2b0a2072a5 100644 --- a/FMD/Reconstruct.C +++ b/FMD/Reconstruct.C @@ -23,16 +23,31 @@ /** Do reconstruction */ void -Reconstruct() +Reconstruct(bool raw=false) { - // AliLog::SetModuleDebugLevel("FMD", 1); + // 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(); + } //