From: gconesab Date: Fri, 14 Aug 2009 14:10:11 +0000 (+0000) Subject: Print EMCAL OCDB parameters for the reconstruction X-Git-Url: http://git.uio.no/git/?p=u%2Fmrichter%2FAliRoot.git;a=commitdiff_plain;h=a40d9f03618ceb99e04530a9edde643d840f96a4 Print EMCAL OCDB parameters for the reconstruction --- diff --git a/EMCAL/macros/PrintEMCALRecParam.C b/EMCAL/macros/PrintEMCALRecParam.C new file mode 100644 index 00000000000..742bf946220 --- /dev/null +++ b/EMCAL/macros/PrintEMCALRecParam.C @@ -0,0 +1,37 @@ +// Macro to print the values stored in the OCDB with AliEMCALRecParam +// These parameters are used during reconstruction + +// Author: Gustavo Conesa (INFN-LNF) + + +void PrintEMCALRecParam(char * file = "Run0_999999999_v0_s0.root"){ + + +TFile * f = new TFile(file,"READ"); + +AliCDBEntry * cdb = (AliCDBEntry*) f->Get("AliCDBEntry"); +TObjArray * array = (TObjArray *) cdb->GetObject(); + +//Loop on the different event species and print parameters. +Int_t nSpecies = array->GetEntriesFast(); +for(Int_t i = 0; i < nSpecies ; i++){ + +AliEMCALRecParam * rparam = array->At(i); + +cout<<"================================================"<GetName()<<" ==============="<Print(""); + + + +} + + + + +} \ No newline at end of file