Additional protection
authorhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 31 May 2006 19:36:23 +0000 (19:36 +0000)
committerhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 31 May 2006 19:36:23 +0000 (19:36 +0000)
STEER/AliExternalTrackParam.cxx

index 4cb5a54..d91056f 100644 (file)
@@ -171,7 +171,7 @@ CorrectForMaterial(Double_t d,  Double_t x0, Double_t mass) {
   }
 
   //Energy losses************************
-  if (x0!=0.) {
+  if (x0!=0. && beta2<1) {
      d*=x0;
      Double_t dE=0.153e-3/beta2*(log(5940*beta2/(1-beta2)) - beta2)*d;
      if (beta2/(1-beta2)>3.5*3.5)