]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
correct check of upper limit in index array
authorgconesab <gconesab@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 16 Jul 2013 08:12:29 +0000 (08:12 +0000)
committergconesab <gconesab@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 16 Jul 2013 08:12:29 +0000 (08:12 +0000)
EMCAL/AliEMCALRecoUtils.h

index e70a93ef1a95ec0a425c617f7d13f16aa6741e84..6c6ef7b59392b9746346140057d2207a1f18311c 100644 (file)
@@ -108,12 +108,12 @@ public:
 
   Float_t  CorrectClusterEnergyLinearity(AliVCluster* clu) ;
   
-  Float_t  GetNonLinearityParam(const Int_t i)     const { if(i < 9  && i >=0 ){ return fNonLinearityParams[i] ; }
-                                                           else      { AliInfo(Form("Index %d larger than 9 or negative, do nothing\n",i)) ;
+  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)) ;
                                                                        return 0.                     ; } }
   void     SetNonLinearityParam(const Int_t i, const Float_t param) {
-                                                          if(i < 9 && i >=0 ){fNonLinearityParams[i] = param ; }
-                                                          else { AliInfo(Form("Index %d larger than 9 or negative, do nothing\n",i)) ; } }
+                                                          if(i < 8 && i >=0 ){ fNonLinearityParams[i] = param ; }
+                                                          else { AliInfo(Form("Index %d larger than 7 or negative, do nothing\n",i)) ; } }
   void     InitNonLinearityParam();
 
   Int_t    GetNonLinearityFunction() const               { return fNonLinearityFunction    ; }