#include "AliMUONRecoParam.h"
#include "AliRecoParam.h"
#include "AliCDBManager.h"
-#include "AliMagFMaps.h"
#include "AliTracker.h"
#include "AliReconstruction.h"
#include <TRandom.h>
+#include <Riostream.h>
//#include <TObjectTable.h>
#endif
-void runReconstruction(int seed, const char* input, const char* recoptions)
+void runReconstruction(int seed, const char* input, const char* recoptions, bool embedding)
{
AliCDBManager* man = AliCDBManager::Instance();
- man->SetDefaultStorage("local://$ALICE_ROOT");
- gRandom->SetSeed(seed);
+ if ( embedding )
+ {
+ cout << "**** WILL USE RAW OCDB AS WE'RE RECONSTRUCTING EMBEDDED DATA" << endl;
+ man->SetDefaultStorage("raw://");
+ }
+ else
+ {
+ man->SetDefaultStorage("local://$ALICE_ROOT/OCDB");
+
+ man->SetSpecificStorage("GRP/GRP/Data",
+ Form("local://%s",gSystem->pwd()));
+ }
- AliMagFMaps* field = new AliMagFMaps("Maps","Maps", 1, 1., 10., AliMagFMaps::k5kG);
- AliTracker::SetFieldMap(field, kFALSE);
+ gRandom->SetSeed(seed);
AliReconstruction* MuonRec = new AliReconstruction("galice.root");
- MuonRec->SetInput(input);
- MuonRec->SetRunVertexFinder(kFALSE);
- MuonRec->SetRunLocalReconstruction("MUON");
- MuonRec->SetRunTracking("MUON");
- MuonRec->SetFillESD("");
- MuonRec->SetLoadAlignData("MUON");
+ MuonRec->SetInput(gSystem->ExpandPathName(input));
+ MuonRec->SetRunReconstruction("MUON");
+ MuonRec->SetFillESD("HLT");
+ MuonRec->SetOption("HLT", "libAliHLTMUON.so");
MuonRec->SetNumberOfEventsPerFile(1000);
MuonRec->SetOption("MUON",recoptions);
- // MuonRec->SetEventRange(319,319);
- MuonRec->SetWriteAOD();
+ MuonRec->SetRunQA("MUON:ALL");
+ MuonRec->SetQAWriteExpert(AliQAv1::kMUON);
+ MuonRec->SetQARefDefaultStorage("local://$ALICE_ROOT/QAref") ;
+ MuonRec->SetWriteESDfriend(kFALSE);
+ MuonRec->SetCleanESD(kFALSE);
+ MuonRec->SetStopOnError(kFALSE);
- AliMUONRecoParam* muonRecoParam = AliMUONRecoParam::GetLowFluxParam();
- muonRecoParam->CombineClusterTrackReco(kFALSE);
- muonRecoParam->BypassSt45(kTRUE);
- // muonRecoParam->SetMaxBendingMomentum(10000000.0);
- // muonRecoParam->SetMaxNonBendingDistanceToTrack(200.0);
- // muonRecoParam->SetMaxBendingDistanceToTrack(200.0);
- muonRecoParam->SetSigmaCutForTracking(20.0);
- // muonRecoParam->UseSmoother(kFALSE);
- muonRecoParam->RequestStation(2,kFALSE);
- muonRecoParam->ImproveTracks(kFALSE);
- muonRecoParam->Print("FULL");
-
- AliRecoParam::Instance()->RegisterRecoParam(muonRecoParam);
+ // 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();