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 2f4eeda..c64e0d6 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)