From: hristov Date: Thu, 3 May 2007 17:15:21 +0000 (+0000) Subject: Additional protection when the energy loss cannot be treated using Bethe-Bloch formula X-Git-Url: http://git.uio.no/git/?p=u%2Fmrichter%2FAliRoot.git;a=commitdiff_plain;h=ae66610050ac7aea096c78f12306ea5aa093afbc Additional protection when the energy loss cannot be treated using Bethe-Bloch formula --- diff --git a/STEER/AliExternalTrackParam.cxx b/STEER/AliExternalTrackParam.cxx index 2f4eeda5cc6..c64e0d6d74e 100644 --- a/STEER/AliExternalTrackParam.cxx +++ b/STEER/AliExternalTrackParam.cxx @@ -215,6 +215,7 @@ Bool_t AliExternalTrackParam::CorrectForMaterial d*=x0; Double_t dE=Bethe(beta2)*d; Double_t e=TMath::Sqrt(p2 + mass*mass); + if ( TMath::Abs(dE) > 0.3*e ) return kFALSE; //30% energy loss is too much! fP4*=(1.- e/p2*dE); // Approximate energy loss fluctuation (M.Ivanov)