AliCDBEntry* GetEntryFromSnapshot(const char* path);
const char* GetURI(const char* path);
-
- AliCDBId* GetId(const AliCDBId& query);
- AliCDBId* GetId(const AliCDBPath& path, Int_t runNumber=-1,
- Int_t version = -1, Int_t subVersion = -1);
- AliCDBId* GetId(const AliCDBPath& path, const AliCDBRunRange& runRange,
- Int_t version = -1, Int_t subVersion = -1);
TList* GetAll(const AliCDBId& query);
TList* GetAll(const AliCDBPath& path, Int_t runNumber=-1,
void CacheEntry(const char* path, AliCDBEntry* entry);
AliCDBParam* SelectSpecificStorage(const TString& path);
+
+ AliCDBId* GetId(const AliCDBId& query);
+ AliCDBId* GetId(const AliCDBPath& path, Int_t runNumber=-1,
+ Int_t version = -1, Int_t subVersion = -1);
+ AliCDBId* GetId(const AliCDBPath& path, const AliCDBRunRange& runRange,
+ Int_t version = -1, Int_t subVersion = -1);
// void Init();
// 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);