Import Geant4 3.0.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-06-08 15:55:53 +02:00
parent e7d7193284
commit cfcb558cfe
3050 changed files with 91703 additions and 48310 deletions
+9 -3
View File
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4Trap.cc,v 1.7 2000/04/11 16:04:30 johna Exp $
// GEANT4 tag $Name: geant4-02-00 $
// $Id: G4Trap.cc,v 1.8 2000/11/20 17:58:01 gcosmo Exp $
// GEANT4 tag $Name: geant4-03-00 $
//
// class G4Trap
//
@@ -707,6 +707,8 @@ G4bool G4Trap::CalculateExtent(const EAxis pAxis,
pMin=zMin;
pMax=zMax;
break;
default:
break;
}
pMin-=kCarTolerance;
@@ -816,6 +818,8 @@ G4bool G4Trap::CalculateExtent(const EAxis pAxis,
pMin=zMin;
pMax=zMax;
break;
default:
break;
}
@@ -889,7 +893,7 @@ EInside G4Trap::Inside(const G4ThreeVector& p) const
G4ThreeVector G4Trap::SurfaceNormal( const G4ThreeVector& p) const
{
G4double safe=kInfinity,Dist,safez;
G4int i,imin;
G4int i,imin=0;
for (i=0;i<4;i++)
{
Dist=fabs(fPlanes[i].a*p.x()+fPlanes[i].b*p.y()+fPlanes[i].c*p.z()+fPlanes[i].d);
@@ -1338,6 +1342,8 @@ G4double G4Trap::DistanceToOut(const G4ThreeVector& p,const G4ThreeVector& v,
case kPZ:
*n=G4ThreeVector(0,0,1);
break;
default:
break;
}
}
return snxt;