]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Additional protection
authorhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 2 Nov 2005 13:10:02 +0000 (13:10 +0000)
committerhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 2 Nov 2005 13:10:02 +0000 (13:10 +0000)
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");