Import Geant4 0.1.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-06-08 15:09:25 +02:00
parent b97f8d0df7
commit aaa409b6ee
2922 changed files with 55107 additions and 81674 deletions
@@ -98,7 +98,7 @@ G4SurfaceBoundary* G4SurfaceBoundary::Project(const G4Transform3D& tr)
return lof;
}
/*
void G4SurfaceBoundary::IntersectRay2D(const G4Ray& ray,
G4CurveRayIntersection& is)
{
@@ -116,6 +116,26 @@ void G4SurfaceBoundary::IntersectRay2D(const G4Ray& ray,
lastIntersection= is;
}
*/
G4int G4SurfaceBoundary::IntersectRay2D(const G4Ray& ray)
{
G4int nbinter = 0, temp = 0;
for (G4int i=0; i < bounds.entries(); i++)
{
G4Curve& c = *bounds.at(i);
temp = c.IntersectRay2D(ray);
// test if the point is on the surface boundary
if( temp==999 )
return 1;
else
nbinter +=temp;
}
return nbinter;
}
G4bool G4SurfaceBoundary::Tangent(G4CurvePoint& cp, G4Vector3D& v)