]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Additional protection when the energy loss cannot be treated using Bethe-Bloch formula
authorhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 3 May 2007 17:15:21 +0000 (17:15 +0000)
committerhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 3 May 2007 17:15:21 +0000 (17:15 +0000)
STEER/AliExternalTrackParam.cxx

index 2f4eeda5cc61390424b90b689f5fb946d686ff7e..c64e0d6d74ec73b300e5d8d91bd22b94af781110 100644 (file)
@@ -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)