X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=MUON%2FrunReconstruction.C;h=f586faf5ba1a8658b6a4ad25b84aef4de33c2ee7;hb=cbd58b9ca6f605fd8df95cbeb1726a7e90dd23ae;hp=8f2037d534316b36af45f5aade1857400c73e6e7;hpb=913f1b43c1f8220b633b5abefe77a35bbb55f840;p=u%2Fmrichter%2FAliRoot.git diff --git a/MUON/runReconstruction.C b/MUON/runReconstruction.C index 8f2037d5343..f586faf5ba1 100644 --- a/MUON/runReconstruction.C +++ b/MUON/runReconstruction.C @@ -28,41 +28,54 @@ #include "AliMUONRecoParam.h" #include "AliRecoParam.h" #include "AliCDBManager.h" -#include "AliMagFMaps.h" #include "AliTracker.h" #include "AliReconstruction.h" #include +#include //#include #endif -void runReconstruction(int seed, const char* input, const char* recoptions) +void runReconstruction(int seed, const char* input, const char* recoptions, bool rawocdb) { AliCDBManager* man = AliCDBManager::Instance(); - man->SetDefaultStorage("local://$ALICE_ROOT"); - gRandom->SetSeed(seed); + if ( rawocdb ) + { + cout << "**** WILL USE RAW OCDB" << endl; + man->SetDefaultStorage("raw://"); //alien://folder=/alice/data/2011/OCDB?cacheFold=/Users/laurent/OCDBcache"); + man->SetSpecificStorage("ITS/Calib/RecoParam","alien://folder=/alice/cern.ch/user/p/ppillot/OCDB_PbPbSim"); + } + 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->SetNumberOfEventsPerFile(1000); + MuonRec->SetInput(gSystem->ExpandPathName(input)); + MuonRec->SetRunReconstruction("MUON ITS"); + MuonRec->SetFillESD("HLT"); + MuonRec->SetOption("HLT", "libAliHLTMUON.so"); + MuonRec->SetNumberOfEventsPerFile(10000); MuonRec->SetOption("MUON",recoptions); - //MuonRec->SetRunQA("MUON:ALL"); + MuonRec->SetRunQA("MUON:ALL"); + MuonRec->SetQAWriteExpert(AliQAv1::kMUON); + MuonRec->SetQARefDefaultStorage("local://$ALICE_ROOT/QAref") ; + MuonRec->SetWriteESDfriend(kFALSE); + MuonRec->SetCleanESD(kFALSE); + MuonRec->SetStopOnError(kFALSE); // 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); + // AliMUONRecoParam *muonRecoParam = AliMUONRecoParam::GetLowFluxParam(); + // muonRecoParam->SaveFullClusterInESD(kTRUE,100.); + // MuonRec->SetRecoParam("MUON",muonRecoParam); - MuonRec->Run(); delete MuonRec;