]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MUON/runReconstruction.C
- Adding check and flagging for HG present
[u/mrichter/AliRoot.git] / MUON / runReconstruction.C
index 45713fb0eeb67aa1ea5e1fc69945ddf7347fda5a..5f497e2235b78f57bb7719d8b725191b3aa9f343 100644 (file)
@@ -28,7 +28,6 @@
 #include "AliMUONRecoParam.h"
 #include "AliRecoParam.h"
 #include "AliCDBManager.h"
-#include "AliMagFMaps.h"
 #include "AliTracker.h"
 #include "AliReconstruction.h"
 #include <TRandom.h>
 void runReconstruction(int seed, const char* input, const char* recoptions)
 { 
   AliCDBManager* man = AliCDBManager::Instance();
-  man->SetDefaultStorage("local://$ALICE_ROOT");
+  man->SetDefaultStorage("local://$ALICE_ROOT/OCDB");
+  man->SetSpecificStorage("GRP/GRP/Data",
+                         Form("local://%s",gSystem->pwd()));
   
   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);
   MuonRec->SetRunLocalReconstruction("MUON");
   MuonRec->SetRunTracking("MUON");
-  MuonRec->SetFillESD("");
+  MuonRec->SetFillESD("HLT");
+  MuonRec->SetOption("HLT", "libAliHLTMUON.so");
   MuonRec->SetLoadAlignData("MUON");
   MuonRec->SetNumberOfEventsPerFile(1000);
   MuonRec->SetOption("MUON",recoptions);
-  //  MuonRec->SetEventRange(319,319);
-  MuonRec->SetWriteAOD();
-  
-  AliMUONRecoParam *muonRecoParam = AliMUONRecoParam::GetLowFluxParam();
-  //muonRecoParam->CombineClusterTrackReco(kTRUE);
-  //muonRecoParam->SaveFullClusterInESD(kTRUE,100.);
-  //muonRecoParam->SetClusteringMode("PEAKFIT");
-  //muonRecoParam->SetClusteringMode("PEAKCOG");
-  muonRecoParam->Print("FULL");
-  AliMUONReconstructor::SetRecoParam(muonRecoParam);
-  
   MuonRec->SetRunQA("MUON:ALL");
+  MuonRec->SetQAWriteExpert(AliQAv1::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();