]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Additional protection in case of very slow particles
authorhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 16 Jan 2007 14:08:56 +0000 (14:08 +0000)
committerhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 16 Jan 2007 14:08:56 +0000 (14:08 +0000)
TRD/AliTRDtrack.cxx

index 77ea0911b52771a1e535694428b22dfe242975d8..5ce8128b6182c535aa7c4d51678f8cc21aa03d83 100644 (file)
@@ -488,7 +488,7 @@ Bool_t AliTRDtrack::PropagateTo(Double_t xk, Double_t x0, Double_t rho)
     // Energy losses************************
     Double_t p2    = (1.0 + GetTgl()*GetTgl()) / (Get1Pt()*Get1Pt());
     Double_t beta2 = p2 / (p2 + GetMass()*GetMass());
-    if ((5940.0 * beta2/(1.0 - beta2 + 1.0e-10) - beta2) < 0.0) {
+    if (beta2<1.0e-10 || (5940.0 * beta2/(1.0 - beta2 + 1.0e-10) - beta2) < 0.0) {
       return kFALSE;
     }