]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MUON/runReconstruction.C
Fixews for new AMORE DA release (agreed with Sylvain and Barth)
[u/mrichter/AliRoot.git] / MUON / runReconstruction.C
index 7f35d86d68bed2da68128f448ae979eea80c0ff6..e7cec7c5fe310e4922321ff89781ecde041a14a4 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"
@@ -29,9 +35,8 @@
 //#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");
   
@@ -49,12 +54,13 @@ void runReconstruction(int run, int seed, const char* input, const char* recopti
   MuonRec->SetLoadAlignData("MUON");
   MuonRec->SetNumberOfEventsPerFile(1000);
   MuonRec->SetOption("MUON",recoptions);
-  //  MuonRec->SetEventRange(319,319);
-  MuonRec->SetWriteAOD();
-  
-  AliMUONRecoParam *muonRecoParam = AliMUONRecoParam::GetLowFluxParam();
-  AliMUONReconstructor::SetRecoParam(muonRecoParam);
-  muonRecoParam->Print("FULL");
+  MuonRec->SetRunQA("MUON:ALL");
+  MuonRec->SetQAWriteExpert(AliQA::kMUON);
+  // uncomment the following lines if you want to set custom RecoParam
+  // instead of getting them from the OCDB
+  //  AliMUONRecoParam *muonRecoParam = AliMUONRecoParam::GetLowFluxParam();
+  //  muonRecoParam->SaveFullClusterInESD(kTRUE,100.);
+  //  MuonRec->SetRecoParam("MUON",muonRecoParam);
   
   MuonRec->Run();
   
@@ -62,4 +68,3 @@ void runReconstruction(int run, int seed, const char* input, const char* recopti
   
   //gObjectTable->Print();
 }
-