From: hristov Date: Fri, 20 Feb 2004 14:53:49 +0000 (+0000) Subject: Additional protection X-Git-Url: http://git.uio.no/git/?p=u%2Fmrichter%2FAliRoot.git;a=commitdiff_plain;h=aed255b5d79ded9db1fcf093664b25a418244b94 Additional protection --- diff --git a/RICH/AliRICHParam.h b/RICH/AliRICHParam.h index cd120303d43..9d0ac822eac 100644 --- a/RICH/AliRICHParam.h +++ b/RICH/AliRICHParam.h @@ -279,7 +279,9 @@ void AliRICHParam::Loc2Area(TVector2 x2,Int_t &iPadXmin,Int_t &iPadYmin,Int_t &i Bool_t AliRICHParam::IsOverTh(Int_t c,Int_t x,Int_t y,Double_t q) { // Calculate the new charge subtracting pedestal and if the current digit is over threshold - if(q>NsigmaTh()*fSigmaThMap[c-1][x-1][y-1]) return kTRUE; else return kFALSE; + if (c>0 && x>0 && y>0 && cNsigmaTh()*fSigmaThMap[c-1][x-1][y-1]) return kTRUE; + return kFALSE; } //__________________________________________________________________________________________________ TVector2 AliRICHParam::ShiftToWirePos(TVector2 x2)