]> git.uio.no Git - u/mrichter/AliRoot.git/blob - EMCAL/macros/PrintEMCALRecParam.C
FILE_ID change for EMCAL DAs (to agree with Preprocessor expectations) + do check...
[u/mrichter/AliRoot.git] / EMCAL / macros / PrintEMCALRecParam.C
1 // Macro to print the values stored in the OCDB with AliEMCALRecParam
2 // These parameters are used during reconstruction
3
4 // Author: Gustavo Conesa (INFN-LNF)
5
6
7 void PrintEMCALRecParam(char * file = "Run0_999999999_v0_s0.root"){
8
9
10 TFile * f = new TFile(file,"READ");
11
12 AliCDBEntry * cdb = (AliCDBEntry*) f->Get("AliCDBEntry");
13 TObjArray * array = (TObjArray *) cdb->GetObject();
14
15 //Loop on the different event species and print parameters.
16 Int_t nSpecies = array->GetEntriesFast();
17 for(Int_t i = 0; i < nSpecies ; i++){
18
19 AliEMCALRecParam * rparam = array->At(i);
20
21 cout<<"================================================"<<endl;
22
23 cout<<"============== "<<rparam->GetName()<<" ==============="<<endl;
24
25 cout<<"================================================"<<endl;
26
27
28 rparam->Print("");
29
30
31
32 }
33
34
35
36
37 }