Import Geant4 5.2.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-06-09 10:28:22 +02:00
parent fbd4999cf7
commit 4aea781e80
5454 changed files with 223141 additions and 67347 deletions
@@ -22,7 +22,7 @@
//
//
// $Id: G4Assembly.cc,v 1.5 2001/07/11 09:59:40 gunter Exp $
// GEANT4 tag $Name: geant4-05-01 $
// GEANT4 tag $Name: geant4-05-02 $
//
// ----------------------------------------------------------------------
// GEANT 4 class source file
@@ -22,7 +22,7 @@
//
//
// $Id: G4Axis2Placement3D.cc,v 1.6 2001/07/11 09:59:40 gunter Exp $
// GEANT4 tag $Name: geant4-05-01 $
// GEANT4 tag $Name: geant4-05-02 $
//
// ----------------------------------------------------------------------
// GEANT 4 class source file
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: G4BREPSolid.cc,v 1.23 2003/03/28 13:11:48 gcosmo Exp $
// GEANT4 tag $Name: geant4-05-01 $
// $Id: G4BREPSolid.cc,v 1.24 2003/06/16 16:52:43 gunter Exp $
// GEANT4 tag $Name: geant4-05-02 $
//
// ----------------------------------------------------------------------
// GEANT 4 class source file
@@ -1486,7 +1486,7 @@ G4Point3D G4BREPSolid::Scope() const
}
G4std::ostream& G4BREPSolid::StreamInfo(G4std::ostream& os) const
std::ostream& G4BREPSolid::StreamInfo(std::ostream& os) const
{
os << "-----------------------------------------------------------\n"
<< " *** Dump for solid - " << GetName() << " ***\n"
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: G4BREPSolidBox.cc,v 1.7 2002/11/06 23:29:33 radoone Exp $
// GEANT4 tag $Name: geant4-05-01 $
// $Id: G4BREPSolidBox.cc,v 1.8 2003/06/16 16:52:44 gunter Exp $
// GEANT4 tag $Name: geant4-05-02 $
//
// ----------------------------------------------------------------------
// GEANT 4 class source file
@@ -127,7 +127,7 @@ EInside G4BREPSolidBox::Inside(register const G4ThreeVector& Pt) const
}
// Streams solid contents to output stream.
G4std::ostream& G4BREPSolidBox::StreamInfo(G4std::ostream& os) const
std::ostream& G4BREPSolidBox::StreamInfo(std::ostream& os) const
{
G4BREPSolid::StreamInfo( os )
<< "\n"
@@ -20,8 +20,8 @@
// * statement, and all its terms. *
// ********************************************************************
//
// $Id: G4BREPSolidCone.cc,v 1.11 2003/03/28 13:11:50 gcosmo Exp $
// GEANT4 tag $Name: geant4-05-01 $
// $Id: G4BREPSolidCone.cc,v 1.12 2003/06/16 16:52:45 gunter Exp $
// GEANT4 tag $Name: geant4-05-02 $
//
// ----------------------------------------------------------------------
// GEANT 4 class source file
@@ -209,7 +209,7 @@ G4double G4BREPSolidCone::DistanceToOut(const G4ThreeVector& Pt) const
}
// Streams solid contents to output stream.
G4std::ostream& G4BREPSolidCone::StreamInfo(G4std::ostream& os) const
std::ostream& G4BREPSolidCone::StreamInfo(std::ostream& os) const
{
G4BREPSolid::StreamInfo( os )
<< "\n origin: " << constructorParams.origin
@@ -20,8 +20,8 @@
// * statement, and all its terms. *
// ********************************************************************
//
// $Id: G4BREPSolidCylinder.cc,v 1.8 2002/11/06 23:29:35 radoone Exp $
// GEANT4 tag $Name: geant4-05-01 $
// $Id: G4BREPSolidCylinder.cc,v 1.9 2003/06/16 16:52:46 gunter Exp $
// GEANT4 tag $Name: geant4-05-02 $
//
// ----------------------------------------------------------------------
// GEANT 4 class source file
@@ -102,7 +102,7 @@ G4BREPSolidCylinder::~G4BREPSolidCylinder()
}
// Streams solid contents to output stream.
G4std::ostream& G4BREPSolidCylinder::StreamInfo(G4std::ostream& os) const
std::ostream& G4BREPSolidCylinder::StreamInfo(std::ostream& os) const
{
G4BREPSolid::StreamInfo( os )
<< "\n origin: " << constructorParams.origin
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: G4BREPSolidOpenPCone.cc,v 1.7 2002/11/06 23:29:36 radoone Exp $
// GEANT4 tag $Name: geant4-05-01 $
// $Id: G4BREPSolidOpenPCone.cc,v 1.8 2003/06/16 16:52:47 gunter Exp $
// GEANT4 tag $Name: geant4-05-02 $
//
// ----------------------------------------------------------------------
// GEANT 4 class source file
@@ -82,7 +82,7 @@ void G4BREPSolidOpenPCone::DescribeYourselfTo (G4VGraphicsScene& scene) const
}
// Streams solid contents to output stream.
G4std::ostream& G4BREPSolidOpenPCone::StreamInfo(G4std::ostream& os) const
std::ostream& G4BREPSolidOpenPCone::StreamInfo(std::ostream& os) const
{
G4IntersectionSolid::StreamInfo( os );
@@ -20,8 +20,8 @@
// * statement, and all its terms. *
// ********************************************************************
//
// $Id: G4BREPSolidPCone.cc,v 1.29 2003/03/28 13:11:50 gcosmo Exp $
// GEANT4 tag $Name: geant4-05-01 $
// $Id: G4BREPSolidPCone.cc,v 1.32 2003/06/16 16:52:48 gunter Exp $
// GEANT4 tag $Name: geant4-05-02 $
//
// ----------------------------------------------------------------------
// GEANT 4 class source file
@@ -36,7 +36,8 @@
// outer conical surfaces are defined using common Z planes.
// ----------------------------------------------------------------------
#include "g4std/strstream"
#include "G4Types.hh"
#include <strstream>
#include "G4BREPSolidPCone.hh"
#include "G4FCylindricalSurface.hh"
@@ -152,7 +153,7 @@ G4BREPSolidPCone::G4BREPSolidPCone(const G4String& name,
// where i in in interval 0 < i < num_z_planes-1. So:
if( RMIN[a] > RMAX[a+1] || RMAX[a] < RMIN[a+1] ) {
char msgbuf[512];
G4std::ostrstream os(msgbuf,512);
std::ostrstream os(msgbuf,512);
os << G4endl << "G4BREPSolidPCone::G4BREPSolidPCone() - The values "
<< "of RMIN[" << a << "] & RMAX[" << a+1 << "] or RMAX[" << a << "] & RMIN[" << a+1 << "] "
<< "make an invalid configuration of G4BREPSolidPCone " << name.c_str() << "!" << G4endl;
@@ -554,7 +555,7 @@ G4ThreeVector G4BREPSolidPCone::SurfaceNormal(const G4ThreeVector& Pt) const
}
}
// calcul of the normal at this point
// calculation of the normal at this point
if ( normflag ) {
norm = SurfaceVec[iplane]->SurfaceNormal(Pt);
@@ -563,7 +564,7 @@ G4ThreeVector G4BREPSolidPCone::SurfaceNormal(const G4ThreeVector& Pt) const
return n;
} else {
G4cout << "Warning ... PCone not able to return normal .. " << G4endl;
// G4cout << "Warning ... PCone not able to return normal .. " << G4endl;
return ( G4ThreeVector(1,0,0));
}
}
@@ -784,7 +785,7 @@ G4double G4BREPSolidPCone::DistanceToOut(const G4ThreeVector& Pt) const
}
// Streams solid contents to output stream.
G4std::ostream& G4BREPSolidPCone::StreamInfo(G4std::ostream& os) const
std::ostream& G4BREPSolidPCone::StreamInfo(std::ostream& os) const
{
G4BREPSolid::StreamInfo( os )
<< "\n start_angle: " << constructorParams.start_angle
@@ -20,8 +20,8 @@
// * statement, and all its terms. *
// ********************************************************************
//
// $Id: G4BREPSolidPolyhedra.cc,v 1.24 2003/03/28 13:11:51 gcosmo Exp $
// GEANT4 tag $Name: geant4-05-01 $
// $Id: G4BREPSolidPolyhedra.cc,v 1.25 2003/06/16 16:52:49 gunter Exp $
// GEANT4 tag $Name: geant4-05-02 $
//
// ----------------------------------------------------------------------
// GEANT 4 class source file
@@ -61,7 +61,7 @@
#include "G4BREPSolidPolyhedra.hh"
#include "G4FPlane.hh"
#include "g4std/strstream"
#include <strstream>
G4BREPSolidPolyhedra::G4BREPSolidPolyhedra(const G4String& name,
G4double start_angle,
@@ -133,12 +133,12 @@ G4BREPSolidPolyhedra::G4BREPSolidPolyhedra(const G4String& name,
)
{
// ERROR! Invalid sequence of z-values
G4std::ostrstream msgstr;
std::ostrstream msgstr;
msgstr << G4endl
<< "ERROR: The unordered, non-increasing or non-decreasing sequence of z_values detected!\a"
<< G4endl
<< "Check z_values with indexes: "
<< idx << " " << (idx+1) << G4endl << G4std::ends;
<< idx << " " << (idx+1) << G4endl << std::ends;
G4Exception( msgstr.str() );
}
}
@@ -180,12 +180,12 @@ G4BREPSolidPolyhedra::G4BREPSolidPolyhedra(const G4String& name,
// Check for possible intersection
if( RMAX[idx-1] < RMAX[idx+1] || RMIN[idx-1] > RMIN[idx+1] ) {
// ERROR! The surface conflict!
G4std::ostrstream msgstr;
std::ostrstream msgstr;
msgstr << G4endl
<< "ERROR: The unordered sequence of z_values detected with conflicting RMAX or RMIN values!\a"
<< G4endl
<< "Check z_values with indexes: "
<< (idx-1) << " " << idx << " " << (idx+1) << G4endl << G4std::ends;
<< (idx-1) << " " << idx << " " << (idx+1) << G4endl << std::ends;
G4Exception( msgstr.str() );
}
}
@@ -301,10 +301,10 @@ G4BREPSolidPolyhedra::G4BREPSolidPolyhedra(const G4String& name,
// At this point is guaranteed that each RMIN[i] < RMAX[i]
// where i in in interval 0 < i < num_z_planes-1. So:
if( RMIN[a] > RMAX[a+1] || RMAX[a] < RMIN[a+1] ) {
G4std::strstream s;
std::strstream s;
s << G4endl << "G4BREPSolidPolyhedra::G4BREPSolidPolyhedra() - The values "
<< "of RMIN[" << a << "] & RMAX[" << a+1 << "] or RMAX[" << a << "] & RMIN[" << a+1 << "] "
<< "make an invalid configuration of G4BREPSolidPolyhedra " << name.c_str() << "!" << G4endl << G4std::ends;
<< "make an invalid configuration of G4BREPSolidPolyhedra " << name.c_str() << "!" << G4endl << std::ends;
G4Exception( s.str() );
}
@@ -990,7 +990,7 @@ G4double G4BREPSolidPolyhedra::DistanceToOut(const G4ThreeVector& Pt) const
}
// Streams solid contents to output stream.
G4std::ostream& G4BREPSolidPolyhedra::StreamInfo(G4std::ostream& os) const
std::ostream& G4BREPSolidPolyhedra::StreamInfo(std::ostream& os) const
{
G4BREPSolid::StreamInfo( os )
<< "\n start_angle: " << constructorParams.start_angle
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: G4BREPSolidSphere.cc,v 1.6 2002/11/06 23:29:39 radoone Exp $
// GEANT4 tag $Name: geant4-05-01 $
// $Id: G4BREPSolidSphere.cc,v 1.7 2003/06/16 16:52:50 gunter Exp $
// GEANT4 tag $Name: geant4-05-02 $
//
// ----------------------------------------------------------------------
// GEANT 4 class source file
@@ -136,7 +136,7 @@ G4double G4BREPSolidSphere::DistanceToOut(const G4ThreeVector& Pt) const
}
// Streams solid contents to output stream.
G4std::ostream& G4BREPSolidSphere::StreamInfo(G4std::ostream& os) const
std::ostream& G4BREPSolidSphere::StreamInfo(std::ostream& os) const
{
G4BREPSolid::StreamInfo( os )
<< "\n origin: " << constructorParams.origin
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: G4BREPSolidTorus.cc,v 1.6 2002/11/06 23:29:40 radoone Exp $
// GEANT4 tag $Name: geant4-05-01 $
// $Id: G4BREPSolidTorus.cc,v 1.7 2003/06/16 16:52:51 gunter Exp $
// GEANT4 tag $Name: geant4-05-02 $
//
// ----------------------------------------------------------------------
// GEANT 4 class source file
@@ -63,7 +63,7 @@ G4BREPSolidTorus::~G4BREPSolidTorus()
}
// Streams solid contents to output stream.
G4std::ostream& G4BREPSolidTorus::StreamInfo(G4std::ostream& os) const
std::ostream& G4BREPSolidTorus::StreamInfo(std::ostream& os) const
{
G4BREPSolid::StreamInfo( os )
<< "\n origin: " << constructorParams.origin
@@ -22,7 +22,7 @@
//
//
// $Id: G4BSplineCurve.cc,v 1.10 2003/03/28 13:11:52 gcosmo Exp $
// GEANT4 tag $Name: geant4-05-01 $
// GEANT4 tag $Name: geant4-05-02 $
//
// ----------------------------------------------------------------------
// GEANT 4 class source file
@@ -22,7 +22,7 @@
//
//
// $Id: G4BSplineCurveWithKnots.cc,v 1.4 2001/07/11 09:59:42 gunter Exp $
// GEANT4 tag $Name: geant4-05-01 $
// GEANT4 tag $Name: geant4-05-02 $
//
// ----------------------------------------------------------------------
// GEANT 4 class source file
@@ -22,7 +22,7 @@
//
//
// $Id: G4BSplineSurface.cc,v 1.12 2003/03/28 13:11:53 gcosmo Exp $
// GEANT4 tag $Name: geant4-05-01 $
// GEANT4 tag $Name: geant4-05-02 $
//
// ----------------------------------------------------------------------
// GEANT 4 class source file
@@ -22,7 +22,7 @@
//
//
// $Id: G4BSplineSurfaceWithKnots.cc,v 1.3 2001/07/11 09:59:43 gunter Exp $
// GEANT4 tag $Name: geant4-05-01 $
// GEANT4 tag $Name: geant4-05-02 $
//
// ----------------------------------------------------------------------
// GEANT 4 class source file
@@ -22,7 +22,7 @@
//
//
// $Id: G4BezierSurface.cc,v 1.7 2003/03/28 13:11:53 gcosmo Exp $
// GEANT4 tag $Name: geant4-05-01 $
// GEANT4 tag $Name: geant4-05-02 $
//
// ----------------------------------------------------------------------
// GEANT 4 class source file
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: G4BoundingBox3D.cc,v 1.7 2003/03/28 13:11:54 gcosmo Exp $
// GEANT4 tag $Name: geant4-05-01 $
// $Id: G4BoundingBox3D.cc,v 1.8 2003/06/16 16:52:52 gunter Exp $
// GEANT4 tag $Name: geant4-05-02 $
//
// ----------------------------------------------------------------------
// GEANT 4 class source file
@@ -80,12 +80,12 @@ void G4BoundingBox3D::Init(const G4Point3D& p1, const G4Point3D& p2)
// Maybe temporary
// Create a BBox bigger than the reality
box_min.setX( G4std::min(p1.x(), p2.x()) - kCarTolerance );
box_min.setY( G4std::min(p1.y(), p2.y()) - kCarTolerance );
box_min.setZ( G4std::min(p1.z(), p2.z()) - kCarTolerance );
box_max.setX( G4std::max(p1.x(), p2.x()) + kCarTolerance );
box_max.setY( G4std::max(p1.y(), p2.y()) + kCarTolerance );
box_max.setZ( G4std::max(p1.z(), p2.z()) + kCarTolerance );
box_min.setX( std::min(p1.x(), p2.x()) - kCarTolerance );
box_min.setY( std::min(p1.y(), p2.y()) - kCarTolerance );
box_min.setZ( std::min(p1.z(), p2.z()) - kCarTolerance );
box_max.setX( std::max(p1.x(), p2.x()) + kCarTolerance );
box_max.setY( std::max(p1.y(), p2.y()) + kCarTolerance );
box_max.setZ( std::max(p1.z(), p2.z()) + kCarTolerance );
// Calc half spaces
GeantBox = (box_max - box_min)*0.5;
@@ -22,7 +22,7 @@
//
//
// $Id: G4CircularCurve.cc,v 1.7 2003/03/28 13:11:56 gcosmo Exp $
// GEANT4 tag $Name: geant4-05-01 $
// GEANT4 tag $Name: geant4-05-02 $
//
// ----------------------------------------------------------------------
// GEANT 4 class source file
@@ -22,7 +22,7 @@
//
//
// $Id: G4CompositeCurve.cc,v 1.11 2003/03/28 13:11:56 gcosmo Exp $
// GEANT4 tag $Name: geant4-05-01 $
// GEANT4 tag $Name: geant4-05-02 $
//
// ----------------------------------------------------------------------
// GEANT 4 class source file
+1 -1
View File
@@ -22,7 +22,7 @@
//
//
// $Id: G4Conic.cc,v 1.7 2003/03/28 13:11:57 gcosmo Exp $
// GEANT4 tag $Name: geant4-05-01 $
// GEANT4 tag $Name: geant4-05-02 $
//
// ----------------------------------------------------------------------
// GEANT 4 class source file
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: G4ConicalSurface.cc,v 1.7 2003/03/28 13:11:57 gcosmo Exp $
// GEANT4 tag $Name: geant4-05-01 $
// $Id: G4ConicalSurface.cc,v 1.8 2003/06/16 16:52:53 gunter Exp $
// GEANT4 tag $Name: geant4-05-02 $
//
// ----------------------------------------------------------------------
// GEANT 4 class source file
@@ -109,9 +109,9 @@ void G4ConicalSurface::CalcBBox()
surfaceBoundary.BBox().GetBoxMax());
}
void G4ConicalSurface::PrintOn( G4std::ostream& os ) const
void G4ConicalSurface::PrintOn( std::ostream& os ) const
{
// printing function using C++ G4std::ostream class
// printing function using C++ std::ostream class
os << "G4ConicalSurface surface with origin: " << origin << "\t"
<< "angle: " << angle << " radians \tand axis " << axis << "\n";
}
@@ -22,7 +22,7 @@
//
//
// $Id: G4ControlPoints.cc,v 1.7 2003/03/28 13:11:57 gcosmo Exp $
// GEANT4 tag $Name: geant4-05-01 $
// GEANT4 tag $Name: geant4-05-02 $
//
// ----------------------------------------------------------------------
// GEANT 4 class source file
+1 -1
View File
@@ -22,7 +22,7 @@
//
//
// $Id: G4Curve.cc,v 1.6 2001/07/11 09:59:44 gunter Exp $
// GEANT4 tag $Name: geant4-05-01 $
// GEANT4 tag $Name: geant4-05-02 $
//
// ----------------------------------------------------------------------
// GEANT 4 class source file
@@ -22,7 +22,7 @@
//
//
// $Id: G4CurvePoint.cc,v 1.4 2001/07/11 09:59:44 gunter Exp $
// GEANT4 tag $Name: geant4-05-01 $
// GEANT4 tag $Name: geant4-05-02 $
//
// ----------------------------------------------------------------------
// GEANT 4 class source file
@@ -22,7 +22,7 @@
//
//
// $Id: G4CurveRayIntersection.cc,v 1.5 2003/03/28 13:11:58 gcosmo Exp $
// GEANT4 tag $Name: geant4-05-01 $
// GEANT4 tag $Name: geant4-05-02 $
//
// ----------------------------------------------------------------------
// GEANT 4 class source file
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: G4CylindricalSurface.cc,v 1.4 2001/07/11 09:59:44 gunter Exp $
// GEANT4 tag $Name: geant4-05-01 $
// $Id: G4CylindricalSurface.cc,v 1.5 2003/06/16 16:52:54 gunter Exp $
// GEANT4 tag $Name: geant4-05-02 $
//
// ----------------------------------------------------------------------
// GEANT 4 class source file
@@ -95,9 +95,9 @@ const char* G4CylindricalSurface::NameOf() const
return "G4CylindricalSurface";
}
void G4CylindricalSurface::PrintOn( G4std::ostream& os ) const
void G4CylindricalSurface::PrintOn( std::ostream& os ) const
{
// printing function using C++ G4std::ostream class
// printing function using C++ std::ostream class
os << "G4CylindricalSurface surface with origin: " << origin << "\t"
<< "radius: " << radius << "\tand axis " << axis << "\n";
}
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: G4Ellipse.cc,v 1.8 2003/03/28 13:11:58 gcosmo Exp $
// GEANT4 tag $Name: geant4-05-01 $
// $Id: G4Ellipse.cc,v 1.9 2003/06/16 16:52:55 gunter Exp $
// GEANT4 tag $Name: geant4-05-02 $
//
// ----------------------------------------------------------------------
// GEANT 4 class source file
@@ -149,7 +149,7 @@ void G4Ellipse::InitBounded()
{
// original implementation
// const G4Point3D& center = position.GetLocation();
// G4double maxEntent = G4std::max(semiAxis1, semiAxis2);
// G4double maxEntent = std::max(semiAxis1, semiAxis2);
// G4Vector3D halfExtent(maxEntent, maxEntent, maxEntent);
// bBox.Init(center+halfExtent, center-halfExtent);
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: G4FConicalSurface.cc,v 1.15 2001/07/11 09:59:44 gunter Exp $
// GEANT4 tag $Name: geant4-05-01 $
// $Id: G4FConicalSurface.cc,v 1.16 2003/06/16 16:52:56 gunter Exp $
// GEANT4 tag $Name: geant4-05-02 $
//
// ----------------------------------------------------------------------
// GEANT 4 class source file
@@ -147,9 +147,9 @@ void G4FConicalSurface::CalcBBox()
}
void G4FConicalSurface::PrintOn( G4std::ostream& os ) const
void G4FConicalSurface::PrintOn( std::ostream& os ) const
{
// printing function using C++ G4std::ostream class
// printing function using C++ std::ostream class
os << "G4FConicalSurface with origin: " << origin << "\t"
<< "and axis: " << Position.GetAxis() << "\n"
<< "\t small radius: " << small_radius
@@ -370,7 +370,7 @@ G4double G4FConicalSurface::HowNear( const G4Vector3D& x ) const
hownear = fabs(m*xd.x()-xd.z()+q)/sqrt(1+m*m);
return hownear;
} else {
hownear = G4std::min ( (xd-upcorner).mag() , (xd-downcorner).mag() );
hownear = std::min ( (xd-upcorner).mag() , (xd-downcorner).mag() );
return hownear;
}
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: G4FCylindricalSurface.cc,v 1.12 2001/07/11 09:59:45 gunter Exp $
// GEANT4 tag $Name: geant4-05-01 $
// $Id: G4FCylindricalSurface.cc,v 1.13 2003/06/16 16:52:57 gunter Exp $
// GEANT4 tag $Name: geant4-05-02 $
//
// ----------------------------------------------------------------------
// GEANT 4 class source file
@@ -92,7 +92,7 @@ const char* G4FCylindricalSurface::NameOf() const
}
void G4FCylindricalSurface::PrintOn( G4std::ostream& os ) const
void G4FCylindricalSurface::PrintOn( std::ostream& os ) const
{
os << "G4FCylindricalSurface with origin: " << origin << "\t"
<< "and axis: " << Position.GetAxis() << "\n"
@@ -250,7 +250,7 @@ G4double G4FCylindricalSurface::HowNear( const G4Vector3D& x ) const
if ( ((Zinter >= downcorner.z()) && (Zinter <=upcorner.z())) ) {
hownear = fabs( radius - xd.x() );
} else {
hownear = G4std::min ( (xd-upcorner).mag() , (xd-downcorner).mag() );
hownear = std::min ( (xd-upcorner).mag() , (xd-downcorner).mag() );
}
return hownear;
+1 -1
View File
@@ -22,7 +22,7 @@
//
//
// $Id: G4FPlane.cc,v 1.14 2002/01/28 16:29:42 radoone Exp $
// GEANT4 tag $Name: geant4-05-01 $
// GEANT4 tag $Name: geant4-05-02 $
//
// ----------------------------------------------------------------------
// GEANT 4 class source file
@@ -22,7 +22,7 @@
//
//
// $Id: G4Hyperbola.cc,v 1.8 2003/03/28 13:11:58 gcosmo Exp $
// GEANT4 tag $Name: geant4-05-01 $
// GEANT4 tag $Name: geant4-05-02 $
//
// ----------------------------------------------------------------------
// GEANT 4 class source file
@@ -22,7 +22,7 @@
//
//
// $Id: G4KnotVector.cc,v 1.6 2001/07/11 09:59:45 gunter Exp $
// GEANT4 tag $Name: geant4-05-01 $
// GEANT4 tag $Name: geant4-05-02 $
//
// ----------------------------------------------------------------------
// GEANT 4 class source file
+1 -1
View File
@@ -22,7 +22,7 @@
//
//
// $Id: G4Line.cc,v 1.8 2003/03/28 13:12:00 gcosmo Exp $
// GEANT4 tag $Name: geant4-05-01 $
// GEANT4 tag $Name: geant4-05-02 $
//
// ----------------------------------------------------------------------
// GEANT 4 class source file
@@ -22,7 +22,7 @@
//
//
// $Id: G4OsloMatrix.cc,v 1.5 2001/07/11 09:59:45 gunter Exp $
// GEANT4 tag $Name: geant4-05-01 $
// GEANT4 tag $Name: geant4-05-02 $
//
// ----------------------------------------------------------------------
// GEANT 4 class source file
@@ -22,7 +22,7 @@
//
//
// $Id: G4Parabola.cc,v 1.6 2003/03/28 13:12:01 gcosmo Exp $
// GEANT4 tag $Name: geant4-05-01 $
// GEANT4 tag $Name: geant4-05-02 $
//
// ----------------------------------------------------------------------
// GEANT 4 class source file
@@ -22,7 +22,7 @@
//
//
// $Id: G4PlacedSolid.cc,v 1.4 2001/07/11 09:59:46 gunter Exp $
// GEANT4 tag $Name: geant4-05-01 $
// GEANT4 tag $Name: geant4-05-02 $
//
// ----------------------------------------------------------------------
// GEANT 4 class source file
@@ -22,7 +22,7 @@
//
//
// $Id: G4PointRat.cc,v 1.5 2001/07/11 09:59:46 gunter Exp $
// GEANT4 tag $Name: geant4-05-01 $
// GEANT4 tag $Name: geant4-05-02 $
//
// ----------------------------------------------------------------------
// GEANT 4 class source file
@@ -22,7 +22,7 @@
//
//
// $Id: G4ProjectedSurface.cc,v 1.9 2003/03/28 13:12:02 gcosmo Exp $
// GEANT4 tag $Name: geant4-05-01 $
// GEANT4 tag $Name: geant4-05-02 $
//
// ----------------------------------------------------------------------
// GEANT 4 class source file
+1 -1
View File
@@ -22,7 +22,7 @@
//
//
// $Id: G4Ray.cc,v 1.9 2003/03/28 13:12:02 gcosmo Exp $
// GEANT4 tag $Name: geant4-05-01 $
// GEANT4 tag $Name: geant4-05-02 $
//
// ----------------------------------------------------------------------
// GEANT 4 class source file
@@ -22,7 +22,7 @@
//
//
// $Id: G4RectangularTrimmedSurface.cc,v 1.6 2001/07/11 09:59:46 gunter Exp $
// GEANT4 tag $Name: geant4-05-01 $
// GEANT4 tag $Name: geant4-05-02 $
//
// ----------------------------------------------------------------------
// GEANT 4 class source file
+1 -1
View File
@@ -22,7 +22,7 @@
//
//
// $Id: G4Sort.cc,v 1.4 2001/07/11 09:59:46 gunter Exp $
// GEANT4 tag $Name: geant4-05-01 $
// GEANT4 tag $Name: geant4-05-02 $
//
// ----------------------------------------------------------------------
// GEANT 4 source file
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: G4SphericalSurface.cc,v 1.6 2003/03/28 13:12:02 gcosmo Exp $
// GEANT4 tag $Name: geant4-05-01 $
// $Id: G4SphericalSurface.cc,v 1.7 2003/06/16 16:52:58 gunter Exp $
// GEANT4 tag $Name: geant4-05-02 $
//
// ----------------------------------------------------------------------
// GEANT 4 class source file
@@ -174,9 +174,9 @@ const char* G4SphericalSurface::NameOf() const
return "G4SphericalSurface";
}
void G4SphericalSurface::PrintOn( G4std::ostream& os ) const
void G4SphericalSurface::PrintOn( std::ostream& os ) const
{
// printing function using C++ G4std::ostream class
// printing function using C++ std::ostream class
os << "G4SphericalSurface surface with origin: " << origin << "\t"
<< "radius: " << radius << "\n"
<< "\t local x_axis: " << x_axis
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: G4Surface.cc,v 1.11 2003/03/28 13:12:02 gcosmo Exp $
// GEANT4 tag $Name: geant4-05-01 $
// $Id: G4Surface.cc,v 1.12 2003/06/16 16:52:59 gunter Exp $
// GEANT4 tag $Name: geant4-05-02 $
//
// ----------------------------------------------------------------------
// GEANT 4 class source file
@@ -235,7 +235,7 @@ G4double G4Surface::ClosestDistanceToPoint(const G4Point3D& Pt)
}
G4std::ostream& operator<<( G4std::ostream& os, const G4Surface& )
std::ostream& operator<<( std::ostream& os, const G4Surface& )
{
// overwrite output operator << to Print out Surface objects
// using the PrintOn function defined below
@@ -22,7 +22,7 @@
//
//
// $Id: G4SurfaceBoundary.cc,v 1.11 2003/03/28 13:12:03 gcosmo Exp $
// GEANT4 tag $Name: geant4-05-01 $
// GEANT4 tag $Name: geant4-05-02 $
//
// ----------------------------------------------------------------------
// GEANT 4 class source file
@@ -22,7 +22,7 @@
//
//
// $Id: G4SurfaceList.cc,v 1.6 2001/07/11 09:59:48 gunter Exp $
// GEANT4 tag $Name: geant4-05-01 $
// GEANT4 tag $Name: geant4-05-02 $
//
// ----------------------------------------------------------------------
// GEANT 4 class source file
@@ -22,7 +22,7 @@
//
//
// $Id: G4SurfaceOfLinearExtrusion.cc,v 1.3 2001/07/11 09:59:48 gunter Exp $
// GEANT4 tag $Name: geant4-05-01 $
// GEANT4 tag $Name: geant4-05-02 $
//
// ----------------------------------------------------------------------
// GEANT 4 class source file
@@ -25,7 +25,7 @@
// and all its terms.
//
// $Id: G4SurfaceOfRevolution.cc,v 1.3 2001/07/11 09:59:48 gunter Exp $
// GEANT4 tag $Name: geant4-05-01 $
// GEANT4 tag $Name: geant4-05-02 $
//
// ----------------------------------------------------------------------
// GEANT 4 class source file
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: G4ThreeMat.cc,v 1.6 2001/07/11 09:59:48 gunter Exp $
// GEANT4 tag $Name: geant4-05-01 $
// $Id: G4ThreeMat.cc,v 1.7 2003/06/16 16:53:00 gunter Exp $
// GEANT4 tag $Name: geant4-05-02 $
//
// ----------------------------------------------------------------------
// GEANT 4 class source file
@@ -86,7 +86,7 @@ const char* G4ThreeMat::NameOf() const
}
G4std::ostream& operator<<( G4std::ostream& os, const G4ThreeMat& m )
std::ostream& operator<<( std::ostream& os, const G4ThreeMat& m )
{
// overwrite output operator << to Print out G4ThreeMat objects
// using the PrintOn function defined below
@@ -95,9 +95,9 @@ G4std::ostream& operator<<( G4std::ostream& os, const G4ThreeMat& m )
}
void G4ThreeMat::PrintOn( G4std::ostream& os ) const
void G4ThreeMat::PrintOn( std::ostream& os ) const
{
// printing function using C++ G4std::ostream class
// printing function using C++ std::ostream class
os << "[ " << element[0][0] << "\t"
<< element[0][1] << "\t"
<< element[0][2] << "\n "
@@ -22,7 +22,7 @@
//
//
// $Id: G4ToroidalSurface.cc,v 1.7 2003/03/28 13:12:03 gcosmo Exp $
// GEANT4 tag $Name: geant4-05-01 $
// GEANT4 tag $Name: geant4-05-02 $
//
// ----------------------------------------------------------------------
// GEANT 4 class source file