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()",
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;
@ G4ErrorTarget_PlaneSurface
G4DLLIMPORT std::ostream G4cout
virtual G4Plane3D GetTangentPlane(const G4ThreeVector &point) const
virtual G4double GetDistanceFromPoint(const G4ThreeVector &point, const G4ThreeVector &direc) const
G4ErrorPlaneSurfaceTarget(G4double a=0, G4double b=0, G4double c=0, G4double d=0)
virtual G4ThreeVector Intersect(const G4ThreeVector &point, const G4ThreeVector &direc) const
~G4ErrorPlaneSurfaceTarget()
virtual void Dump(const G4String &msg) const
G4ErrorTargetType theType
Normal3D< G4double > normal() const
Point3D< G4double > point() const
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)