+ // check the cache first if no specific version required
+ if (version<0) {
+ const TMap* pCache=man->GetEntryCache();
+ TObject* pEntryObj=NULL;
+ if (pCache && (pEntryObj=pCache->GetValue(path))!=NULL) {
+ AliCDBEntry* pEntry=dynamic_cast<AliCDBEntry*>(pEntryObj);
+ if (pEntry) {
+ log.Logging(kHLTLogDebug, "AliHLTMiscImplementation::LoadOCDBEntry", "CDB handling", "using OCDB object %s from cache", path);
+ return pEntry;
+ } else {
+ log.Logging(kHLTLogError, "AliHLTMiscImplementation::LoadOCDBEntry", "CDB handling", "invalid OCDB object %s found in cache, not of type AliCDBEntry", path);
+ }
+ }
+ }
+