Import Geant4 11.4.0 source tree
This commit is contained in:
@@ -29,10 +29,10 @@
|
||||
//
|
||||
// Limits step when track reaches a plane surface.
|
||||
|
||||
// Created: P.Arce, September 2004
|
||||
// Author: Pedro Arce (CIEMAT), September 2004
|
||||
// --------------------------------------------------------------------
|
||||
#ifndef G4ERRORPLANESURFACETARGET_HH
|
||||
#define G4ERRORPLANESURFACETARGET_HH 1
|
||||
#define G4ERRORPLANESURFACETARGET_HH
|
||||
|
||||
#include "globals.hh"
|
||||
#include "G4ErrorSurfaceTarget.hh"
|
||||
@@ -41,41 +41,78 @@
|
||||
#include "G4Plane3D.hh"
|
||||
#include "G4Point3D.hh"
|
||||
|
||||
/**
|
||||
* @brief G4ErrorPlaneSurfaceTarget is an utility class for limiting
|
||||
* the step when a track reaches a plane surface.
|
||||
*/
|
||||
|
||||
class G4ErrorPlaneSurfaceTarget : public G4ErrorSurfaceTarget, G4Plane3D
|
||||
{
|
||||
public:
|
||||
|
||||
/**
|
||||
* Constructor for G4ErrorPlaneSurfaceTarget. It constructs a plane
|
||||
* by parameters: ax+by+cz+d = 0.
|
||||
*/
|
||||
G4ErrorPlaneSurfaceTarget(G4double a=0., G4double b=0.,
|
||||
G4double c=0., G4double d=0.);
|
||||
// Constructs plane by parameters: ax+by+cz+d = 0
|
||||
|
||||
/**
|
||||
* Constructor for G4ErrorPlaneSurfaceTarget. It constructs a plane
|
||||
* by point 'p' and normal 'n'.
|
||||
*/
|
||||
G4ErrorPlaneSurfaceTarget(const G4Normal3D& n,
|
||||
const G4Point3D& p);
|
||||
// Constructs plane by point and normal
|
||||
|
||||
/**
|
||||
* Constructor for G4ErrorPlaneSurfaceTarget. It constructs a plane
|
||||
* by three points, 'p1', 'p2', 'p3'.
|
||||
*/
|
||||
G4ErrorPlaneSurfaceTarget(const G4Point3D& p1,
|
||||
const G4Point3D& p2,
|
||||
const G4Point3D& p3);
|
||||
// Constructs plane by three points
|
||||
|
||||
/**
|
||||
* Default Destructor.
|
||||
*/
|
||||
~G4ErrorPlaneSurfaceTarget() override = default;
|
||||
|
||||
virtual G4ThreeVector Intersect( const G4ThreeVector& point,
|
||||
const G4ThreeVector& direc ) const;
|
||||
// Intersects the surface with the line given by point and direction
|
||||
/**
|
||||
* Intersects the surface with the line given by point and direction.
|
||||
* @param[in] point The point of reference.
|
||||
* @param[in] direc The direction vector.
|
||||
* @returns The intersection point.
|
||||
*/
|
||||
G4ThreeVector Intersect( const G4ThreeVector& point,
|
||||
const G4ThreeVector& direc ) const;
|
||||
|
||||
/**
|
||||
* Computes the distance from a point to the surface in a given direction.
|
||||
* @param[in] point The point of reference.
|
||||
* @param[in] direc The direction vector.
|
||||
* @returns The distance value.
|
||||
*/
|
||||
G4double GetDistanceFromPoint( const G4ThreeVector& point,
|
||||
const G4ThreeVector& direc ) const override;
|
||||
// Distance from point to surface in a given direction
|
||||
|
||||
/**
|
||||
* Computes the minimal distance from a point to surface.
|
||||
* @param[in] point The point of reference.
|
||||
* @returns The distance value.
|
||||
*/
|
||||
G4double GetDistanceFromPoint( const G4ThreeVector& pt ) const override;
|
||||
// Closest distance from point to surface
|
||||
|
||||
/**
|
||||
* Computes the plane tangent to itself at a given point.
|
||||
* @param[in] point The point of reference.
|
||||
* @returns The tangent plane.
|
||||
*/
|
||||
G4Plane3D GetTangentPlane( const G4ThreeVector& point ) const override;
|
||||
// Get tangent plane as itself
|
||||
|
||||
/**
|
||||
* Dumps to standard output the surface parameters.
|
||||
*/
|
||||
void Dump( const G4String& msg ) const override;
|
||||
// Dump plane surface parameter
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user