From 6aad3c6a749430d87472e23f7d35742718516540 Mon Sep 17 00:00:00 2001 From: gconesab Date: Tue, 23 Jul 2013 09:11:15 +0000 Subject: [PATCH] coverity fix --- EMCAL/AliEMCALRecoUtils.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/EMCAL/AliEMCALRecoUtils.h b/EMCAL/AliEMCALRecoUtils.h index 6c6ef7b5939..8d896f567e0 100644 --- a/EMCAL/AliEMCALRecoUtils.h +++ b/EMCAL/AliEMCALRecoUtils.h @@ -108,12 +108,12 @@ public: Float_t CorrectClusterEnergyLinearity(AliVCluster* clu) ; - Float_t GetNonLinearityParam(const Int_t i) const { if(i < 8 && i >=0 ){ return fNonLinearityParams[i] ; } - else { AliInfo(Form("Index %d larger than 7 or negative, do nothing\n",i)) ; + Float_t GetNonLinearityParam(const Int_t i) const { if(i < 7 && i >=0 ){ return fNonLinearityParams[i] ; } + else { AliInfo(Form("Index %d larger than 6 or negative, do nothing\n",i)) ; return 0. ; } } void SetNonLinearityParam(const Int_t i, const Float_t param) { - if(i < 8 && i >=0 ){ fNonLinearityParams[i] = param ; } - else { AliInfo(Form("Index %d larger than 7 or negative, do nothing\n",i)) ; } } + if(i < 7 && i >=0 ){ fNonLinearityParams[i] = param ; } + else { AliInfo(Form("Index %d larger than 6 or negative, do nothing\n",i)) ; } } void InitNonLinearityParam(); Int_t GetNonLinearityFunction() const { return fNonLinearityFunction ; } -- 2.39.3