X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=MUON%2FrunReconstruction.C;h=13ee5dcbb84456c213d79ac50d11f028569a0bb7;hb=8b035d03f8682baff6aa6da797b3c4a65fb7f51d;hp=73bb2dcdec7572cbd38265f4cd438ab8c0a1cc66;hpb=102edf659f5df9c56511878eb35bd2b20dfa6a9a;p=u%2Fmrichter%2FAliRoot.git diff --git a/MUON/runReconstruction.C b/MUON/runReconstruction.C index 73bb2dcdec7..13ee5dcbb84 100644 --- a/MUON/runReconstruction.C +++ b/MUON/runReconstruction.C @@ -15,23 +15,36 @@ /* $Id$ */ -// Macro extracted from MUON test script -// By Laurent Aphecetche +/// \ingroup macros +/// \file runReconstruction.C +/// \brief Macro for running reconstruction +/// +/// Macro extracted from the MUON test script +/// +/// \author Laurent Aphecetche #if !defined(__CINT__) || defined(__MAKECINT__) +#include "AliMUONReconstructor.h" +#include "AliMUONRecoParam.h" +#include "AliRecoParam.h" #include "AliCDBManager.h" #include "AliMagFMaps.h" #include "AliTracker.h" #include "AliReconstruction.h" #include +//#include #endif -void runReconstruction(int run, int seed, const char* input, const char* recoptions) +void runReconstruction(int seed, const char* input, const char* recoptions) { - AliCDBManager::Instance()->SetRun(run); + AliCDBManager* man = AliCDBManager::Instance(); + man->SetDefaultStorage("local://$ALICE_ROOT"); + gRandom->SetSeed(seed); + AliMagFMaps* field = new AliMagFMaps("Maps","Maps", 1, 1., 10., AliMagFMaps::k5kG); AliTracker::SetFieldMap(field, kFALSE); + AliReconstruction* MuonRec = new AliReconstruction("galice.root"); MuonRec->SetInput(input); MuonRec->SetRunVertexFinder(kFALSE); @@ -43,8 +56,18 @@ void runReconstruction(int run, int seed, const char* input, const char* recopti MuonRec->SetOption("MUON",recoptions); // MuonRec->SetEventRange(319,319); MuonRec->SetWriteAOD(); + + AliMUONRecoParam *muonRecoParam = AliMUONRecoParam::GetLowFluxParam(); + muonRecoParam->CombineClusterTrackReco(kFALSE); + //muonRecoParam->SetClusteringMode("PEAKFIT"); + //muonRecoParam->SetClusteringMode("PEAKCOG"); + muonRecoParam->Print("FULL"); + + AliRecoParam::Instance()->RegisterRecoParam(muonRecoParam); + MuonRec->Run(); + delete MuonRec; + //gObjectTable->Print(); } -