]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MUON/runReconstruction.C
New class AliMUONRecoParamto handle reconstruction parameters
[u/mrichter/AliRoot.git] / MUON / runReconstruction.C
index 73bb2dcdec7572cbd38265f4cd438ab8c0a1cc66..e4bc2847e905875c618bb47db46d94c8a27ec15b 100644 (file)
 // By Laurent Aphecetche
 
 #if !defined(__CINT__) || defined(__MAKECINT__)
+#include "AliMUONReconstructor.h"
+#include "AliMUONRecoParam.h"
 #include "AliCDBManager.h"
 #include "AliMagFMaps.h"
 #include "AliTracker.h"
 #include "AliReconstruction.h"
 #include <TRandom.h>
+//#include <TObjectTable.h>
 #endif
 
 void runReconstruction(int run, int seed, const char* input, const char* recoptions)
 { 
   AliCDBManager::Instance()->SetRun(run);
+  
   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 +49,15 @@ 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();
+  AliMUONReconstructor::SetRecoParam(muonRecoParam);
+  muonRecoParam->Print("FULL");
+  
   MuonRec->Run();
+  
   delete MuonRec;
+  
   //gObjectTable->Print();
 }