#include "AliRunLoader.h"
#include "AliLoader.h"
#include "AliCDBManager.h"
-#include "AliCDBEntry.h"
-#include "AliCDBPath.h"
// tracker
#include "AliGeomManager.h"
// MUON
-#include "AliMpCDB.h"
-#include "AliMpDDL.h"
-#include "AliMpDDLStore.h"
#include "AliMpConstants.h"
// trigger
#include "AliMUONDigitStoreV2R.h"
#include "AliMUONVCluster.h"
#include "AliMUONRecoParam.h"
+#include "AliMUONCDB.h"
#endif
AliMUONDigitStoreV2R digitStoreTrackCut;
AliMUONVCluster* cluster = 0x0;
- // Load segmentation
+ // Load mapping
AliCDBManager::Instance()->SetDefaultStorage(cdbStorage.Data());
AliCDBManager::Instance()->SetRun(runNumber);
-
- AliMpCDB::LoadDDLStore();
+ if (!AliMUONCDB::LoadMapping()) return;
AliMUONGeometryTransformer* transformer = 0x0;
// Load geometry data
transformer->LoadGeometryData();
// Load reconstruction parameters
- AliCDBPath path("MUON","Calib","RecoParam");
- AliCDBEntry *entry=AliCDBManager::Instance()->Get(path.GetPath());
- if(entry) {
- recoParam = dynamic_cast<AliMUONRecoParam*>(entry->GetObject());
- entry->SetOwner(0);
- AliCDBManager::Instance()->UnloadFromCache(path.GetPath());
- }
- if (!recoParam) {
- printf("Couldn't find RecoParam object in OCDB: create default one");
- recoParam = AliMUONRecoParam::GetLowFluxParam();
- }
+ recoParam = AliMUONCDB::LoadRecoParam();
+ if (!recoParam) return;
recoParam->Print("FULL");
clusterFinder = new AliMUONClusterFinderMLEM(kFALSE,new AliMUONPreClusterFinder);
clusterServer = new AliMUONSimpleClusterServer(clusterFinder,*transformer);
} // loop on digits
TIter nextDigitTrackCut(digitStoreTrackCut.CreateIterator());
- clusterServer->UseDigits(nextDigitTrackCut);
+ clusterServer->UseDigits(nextDigitTrackCut,&digitStoreTrackCut);
for (Int_t ch = firstChamber; ch <= lastChamber; ++ch ){
clusterServer->Clusterize(ch, clusterStore, AliMpArea(),recoParam);