]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TFluka/TFlukaMCGeometry.cxx
Additional protection
[u/mrichter/AliRoot.git] / TFluka / TFlukaMCGeometry.cxx
index 198379546352ae23ec50e4129c29ced734b652bb..03196d2a59410c599b3897fa87f78b8fb09714cc 100644 (file)
@@ -1662,9 +1662,11 @@ void nrmlwr(Double_t &pSx, Double_t &pSy, Double_t &pSz,
       norml[1] = -pVy;   
       norml[2] = -pVz; 
    }
-   norml[0] = -dnorm[0];   
-   norml[1] = -dnorm[1];   
-   norml[2] = -dnorm[2]; 
+   else {
+     norml[0] = -dnorm[0];   
+     norml[1] = -dnorm[1];   
+     norml[2] = -dnorm[2];
+   } 
    if (gMCGeom->IsDebugging()) {
       printf("   normal to boundary: (%g, %g, %g)\n", norml[0], norml[1], norml[2]);  
       printf("<= NRMLWR\n");