]> git.uio.no Git - u/mrichter/AliRoot.git/blob - macros/GetCDBInfoFromESD.C
halloWorld.sh - print the system information
[u/mrichter/AliRoot.git] / macros / GetCDBInfoFromESD.C
1 // Simple example how to get CDB information stored in the ESD:
2 // - The list of parameters got from OCDB during reconstruction (cdbList)
3 // - The map of storages (default + specific) activated (cdbMap)
4 //
5 // author: alberto.colla@cern.ch
6
7 void GetCDBInfoFromESD(){
8
9         TFile * f = new TFile("AliESDs.root");
10
11         TTree* tree = f->Get("esdTree");
12         TList* l = tree->GetUserInfo();
13
14         TList* ids = l->FindObject("cdbList");
15         ids->Print();
16
17         TMap* storages = l->FindObject("cdbMap");
18         storages->Print();
19 }