54 Dump(
" $$$ creating G4ErrorPlaneSurfaceTarget from parameters");
70 Dump(
" $$$ creating G4ErrorPlaneSurfaceTarget from point and normal");
88 Dump(
" $$$ creating G4ErrorPlaneSurfaceTarget from three points");
110 G4cout <<
" $$$ creating G4ErrorPlaneSurfaceTarget::Intersect "
123 if( std::fabs( dir.mag() -1. ) > 1.E-6 )
125 std::ostringstream message;
126 message <<
"Direction is not a unit vector: " << dir <<
" !";
127 G4Exception(
"G4ErrorPlaneSurfaceTarget::GetDistanceFromPoint()",
130 G4double dist = -(a_ * pt.x() + b_ * pt.y() + c_ * pt.z() + d_)
131 / (a_ * dir.x() + b_ * dir.y() + c_ * dir.z() );
136 G4cout <<
" G4ErrorPlaneSurfaceTarget::GetDistanceFromPoint()" <<
G4endl
137 <<
" Point: " << pt <<
", Direction: " << dir <<
G4endl
138 <<
" Distance: " << dist <<
G4endl;
152 G4double dist = std::fabs(vec.mag() * std::cos( alpha ));
157 G4cout <<
" G4ErrorPlaneSurfaceTarget::GetDistanceFromPoint()" <<
G4endl
158 <<
" Point: " << pt <<
G4endl
159 <<
" Distance: " << dist <<
G4endl;
177 G4cout << msg <<
" point = " << point()
CLHEP::Hep3Vector G4ThreeVector
virtual G4ThreeVector Intersect(const G4ThreeVector &point, const G4ThreeVector &direc) const
HepGeom::Point3D< G4double > G4Point3D
~G4ErrorPlaneSurfaceTarget()
static double normal(HepRandomEngine *eptr)
G4GLOB_DLL std::ostream G4cout
G4ErrorPlaneSurfaceTarget(G4double a=0, G4double b=0, G4double c=0, G4double d=0)
virtual G4Plane3D GetTangentPlane(const G4ThreeVector &point) const
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
virtual void Dump(const G4String &msg) const
G4ErrorTargetType theType
HepGeom::Plane3D< G4double > G4Plane3D
static const G4double alpha
virtual G4double GetDistanceFromPoint(const G4ThreeVector &point, const G4ThreeVector &direc) const
HepGeom::Normal3D< G4double > G4Normal3D