ROOT logo
// Simple example how to get CDB information stored in the ESD:
// - The list of parameters got from OCDB during reconstruction (cdbList)
// - The map of storages (default + specific) activated (cdbMap)
//
// author: alberto.colla@cern.ch

void GetCDBInfoFromESD(){

	TFile * f = new TFile("AliESDs.root");

	TTree* tree = f->Get("esdTree");
	TList* l = tree->GetUserInfo();

	TList* ids = l->FindObject("cdbList");
	ids->Print();

	TMap* storages = l->FindObject("cdbMap");
	storages->Print();
}
 GetCDBInfoFromESD.C:1
 GetCDBInfoFromESD.C:2
 GetCDBInfoFromESD.C:3
 GetCDBInfoFromESD.C:4
 GetCDBInfoFromESD.C:5
 GetCDBInfoFromESD.C:6
 GetCDBInfoFromESD.C:7
 GetCDBInfoFromESD.C:8
 GetCDBInfoFromESD.C:9
 GetCDBInfoFromESD.C:10
 GetCDBInfoFromESD.C:11
 GetCDBInfoFromESD.C:12
 GetCDBInfoFromESD.C:13
 GetCDBInfoFromESD.C:14
 GetCDBInfoFromESD.C:15
 GetCDBInfoFromESD.C:16
 GetCDBInfoFromESD.C:17
 GetCDBInfoFromESD.C:18
 GetCDBInfoFromESD.C:19
 GetCDBInfoFromESD.C:20