]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MUON/runReconstruction.C
implemented selection by detector string (argument '-detector')
[u/mrichter/AliRoot.git] / MUON / runReconstruction.C
index e4bc2847e905875c618bb47db46d94c8a27ec15b..13ee5dcbb84456c213d79ac50d11f028569a0bb7 100644 (file)
 
 /* $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 <TObjectTable.h>
 #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);
   
@@ -51,8 +58,12 @@ void runReconstruction(int run, int seed, const char* input, const char* recopti
   MuonRec->SetWriteAOD();
   
   AliMUONRecoParam *muonRecoParam = AliMUONRecoParam::GetLowFluxParam();
-  AliMUONReconstructor::SetRecoParam(muonRecoParam);
+  muonRecoParam->CombineClusterTrackReco(kFALSE);
+  //muonRecoParam->SetClusteringMode("PEAKFIT");
+  //muonRecoParam->SetClusteringMode("PEAKCOG");
   muonRecoParam->Print("FULL");
+
+  AliRecoParam::Instance()->RegisterRecoParam(muonRecoParam);
   
   MuonRec->Run();
   
@@ -60,4 +71,3 @@ void runReconstruction(int run, int seed, const char* input, const char* recopti
   
   //gObjectTable->Print();
 }
-