coverity fix
authorgconesab <gconesab@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 23 Jul 2013 09:11:15 +0000 (09:11 +0000)
committergconesab <gconesab@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 23 Jul 2013 09:11:15 +0000 (09:11 +0000)
EMCAL/AliEMCALRecoUtils.h

index 6c6ef7b..8d896f5 100644 (file)
@@ -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    ; }