]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Making check for zero explicit.
authorszostak <szostak@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 5 Oct 2007 13:45:15 +0000 (13:45 +0000)
committerszostak <szostak@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 5 Oct 2007 13:45:15 +0000 (13:45 +0000)
HLT/MUON/OnlineAnalysis/AliHLTMUONMansoTrackerFSM.cxx

index 6631aa392e62479b4d6a4516f4a41267a12f6d68..ccf8a7cc75428a968abcab5e438e8d9c0fd1ba1c 100644 (file)
@@ -191,8 +191,11 @@ AliHLTMUONRecHitStruct AliHLTMUONMansoTrackerFSM::AliLine::FindIntersectWithXYPl
 {
 // Find the point of intersection of the line and the XY plane at z.
 
-       assert( fMz != 0.0 );  // Should not have a ray perpendicular to the beam axis.
-       AliHLTFloat32_t t = (z - fCz) / fMz;
+       AliHLTFloat32_t t;
+       if (fMz != 0)  // Should not have a ray perpendicular to the beam axis.
+               t = (z - fCz) / fMz;
+       else
+               t = 0;
        AliHLTMUONRecHitStruct p;
        p.fX = fMx*t + fCx;
        p.fY = fMy*t + fCy;