]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Correct subscript out of range
authorfca <fca@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 9 Dec 2010 16:39:02 +0000 (16:39 +0000)
committerfca <fca@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 9 Dec 2010 16:39:02 +0000 (16:39 +0000)
TPC/AliTPCPointCorrection.cxx

index 25c0513df1a44e1d22fa50b3c8644e80f54ee324..28afd3c17fd0302e38231e31769a753e4bc25737 100644 (file)
@@ -336,9 +336,9 @@ Double_t  AliTPCPointCorrection::GetEdgeQ0(Int_t sector, Int_t padrow, Float_t y
   Double_t xrow  = AliTPCROC::Instance()->GetPadRowRadii(sector,padrow);
   Double_t ymax  = TMath::Tan(TMath::Pi()/18.)*xrow;
   Double_t dedge = ymax-TMath::Abs(y);
-  if (dedge-params[2]<0)             return 0;
+  if (dedge-params[1]<0)             return 0;
   if (dedge>10.*params[1]) return 1;
-  result = 1.-TMath::Exp(-params[0]*(dedge-params[2]));
+  result = 1.-TMath::Exp(-params[0]*(dedge-params[1]));
   return result;
 }