]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - STEER/STEER/AliReconstruction.cxx
Making AliCDBManager::GetId protected (was public)
[u/mrichter/AliRoot.git] / STEER / STEER / AliReconstruction.cxx
index 84a4633651fac7e102a52cbe11d211fcd3ec9e2a..2b20e569f48d4168da3434d16f2bb150681ed794 100644 (file)
@@ -1767,32 +1767,17 @@ void AliReconstruction::SlaveBegin(TTree*)
   // order to create all branches. Initialization is done from an
   // ESD layout template in CDB
   AliCDBManager* man = AliCDBManager::Instance();
-  AliCDBPath hltESDConfigPath("HLT/Calib/esdLayout");
-  AliCDBEntry* hltESDConfig=NULL;
-  if (man->GetId(hltESDConfigPath)!=NULL)
-    hltESDConfig=man->Get(hltESDConfigPath);
-  if (!hltESDConfig) {
-    // try the alternative path
-    // in Feb 2012 the object has been moved from ConfigHLT to Calib
-    AliCDBPath hltESDConfigLegacyPath("HLT/ConfigHLT/esdLayout");
-    AliInfo(Form("can not find HLT ESD config object in %s, trying legacy path %s",
-                hltESDConfigPath.GetPath().Data(),
-                hltESDConfigLegacyPath.GetPath().Data()));
-    hltESDConfig=man->Get(hltESDConfigLegacyPath);
-  }
-  if (hltESDConfig) {
-    AliESDEvent* pESDLayout=dynamic_cast<AliESDEvent*>(hltESDConfig->GetObject());
-    if (pESDLayout) {
+  AliCDBEntry* hltESDConfig = man->Get("HLT/Calib/esdLayout");
+  AliESDEvent* pESDLayout=dynamic_cast<AliESDEvent*>(hltESDConfig->GetObject());
+  if (pESDLayout) {
       // init all internal variables from the list of objects
       pESDLayout->GetStdContent();
 
       // copy content and create non-std objects
       *fhltesd=*pESDLayout;
       fhltesd->Reset();
-    } else {
-      AliError(Form("error setting hltEsd layout from %s: invalid object type",
-                   hltESDConfigPath.GetPath().Data()));
-    }
+  } else {
+      AliError(Form("error setting hltEsd layout from \"HLT/Calib/esdLayout\": invalid object type"));
   }
 
   fhltesd->WriteToTree(fhlttree);