]> git.uio.no Git - u/mrichter/AliRoot.git/blob - EMCAL/macros/SimParamDB/PrintEMCALSimParam.C
update dpxdpx task: prabhat
[u/mrichter/AliRoot.git] / EMCAL / macros / SimParamDB / PrintEMCALSimParam.C
1 // Macro to print the values stored in the OCDB with AliEMCALSimParam
2 // These parameters are used during simulation
3
4 // Author: Gustavo Conesa (IN2P3-LPSC)
5
6
7 void PrintEMCALSimParam(char * file = "$ALICE_ROOT/OCDB/EMCAL/Calib/SimParam/Run0_999999999_v0_s0.root"){
8   
9   
10   TFile * f = new TFile(file,"READ");
11   
12   AliCDBEntry * cdb = (AliCDBEntry*) f->Get("AliCDBEntry");    
13   AliEMCALSimParam * sparam =  cdb->GetObject();
14   
15   
16   cout<<"============== "<<sparam->GetName()<<" ==============="<<endl;
17   
18   sparam->Print("");
19   
20 }