DD4hep  1.30.0
Detector Description Toolkit for High Energy Physics
Public Member Functions | List of all members
dd4hep::rec::VolPlaneImpl Class Reference

#include <Surface.h>

Inheritance diagram for dd4hep::rec::VolPlaneImpl:
dd4hep::rec::VolSurfaceBase dd4hep::rec::ISurface

Public Member Functions

 VolPlaneImpl ()
 default c'tor More...
 
 VolPlaneImpl (SurfaceType typ, double thickness_inner, double thickness_outer, Vector3D u_val, Vector3D v_val, Vector3D n_val, Vector3D o_val, Volume vol, int id_val)
 standard c'tor with all necessary arguments - origin is (0,0,0) if not given. More...
 
virtual double distance (const Vector3D &point) const
 
- Public Member Functions inherited from dd4hep::rec::VolSurfaceBase
virtual ~VolSurfaceBase ()=default
 
 VolSurfaceBase ()=default
 default c'tor More...
 
 VolSurfaceBase (SurfaceType typ, double thickness_inner, double thickness_outer, Vector3D u_val, Vector3D v_val, Vector3D n, Vector3D o, Volume vol, int identifier)
 
 VolSurfaceBase (const VolSurfaceBase &c)
 Copy the from object. More...
 
Volume volume () const
 the volume to which this surface is attached. More...
 
virtual long64 id () const
 The id of this surface. More...
 
virtual const SurfaceTypetype () const
 
virtual Vector3D u (const Vector3D &point=Vector3D()) const
 
virtual Vector3D v (const Vector3D &point=Vector3D()) const
 
virtual Vector3D normal (const Vector3D &point=Vector3D()) const
 Access to the normal direction at the given point. More...
 
virtual const Vector3Dorigin () const
 
virtual Vector2D globalToLocal (const Vector3D &point) const
 
virtual Vector3D localToGlobal (const Vector2D &point) const
 
virtual const IMaterialinnerMaterial () const
 Access to the material in opposite direction of the normal. More...
 
virtual const IMaterialouterMaterial () const
 Access to the material in direction of the normal. More...
 
virtual double innerThickness () const
 
virtual double outerThickness () const
 
virtual double length_along_u () const
 
virtual double length_along_v () const
 
virtual bool insideBounds (const Vector3D &point, double epsilon=1e-4) const
 Checks if the given point lies within the surface. More...
 
virtual std::vector< std::pair< Vector3D, Vector3D > > getLines (unsigned nMax=100)
 
void setInnerMaterial (const IMaterial &mat)
 set the inner Material More...
 
void setOuterMaterial (const IMaterial &mat)
 set the outer Materal More...
 
- Public Member Functions inherited from dd4hep::rec::ISurface
virtual ~ISurface ()
 Destructor. More...
 

Additional Inherited Members

- Protected Member Functions inherited from dd4hep::rec::VolSurfaceBase
virtual void setU (const Vector3D &u)
 setter for daughter classes More...
 
virtual void setV (const Vector3D &v)
 setter for daughter classes More...
 
virtual void setNormal (const Vector3D &n)
 setter for daughter classes More...
 
virtual void setOrigin (const Vector3D &o)
 setter for daughter classes More...
 
- Protected Attributes inherited from dd4hep::rec::VolSurfaceBase
SurfaceType _type {}
 
Vector3D _u {}
 
Vector3D _v {}
 
Vector3D _n {}
 
Vector3D _o {}
 
double _th_i {0}
 
double _th_o {0}
 
MaterialData _innerMat {}
 
MaterialData _outerMat {}
 
Volume _vol {}
 
long64 _id {0}
 
unsigned _refCount {0}
 

Detailed Description

Implementation of a planar surface attached to a volume

Author
F.Gaede, DESY
Date
Sep, 14 2014
Version
$Id$

Definition at line 331 of file Surface.h.

Constructor & Destructor Documentation

◆ VolPlaneImpl() [1/2]

dd4hep::rec::VolPlaneImpl::VolPlaneImpl ( )
inline

default c'tor

Definition at line 336 of file Surface.h.

◆ VolPlaneImpl() [2/2]

dd4hep::rec::VolPlaneImpl::VolPlaneImpl ( SurfaceType  typ,
double  thickness_inner,
double  thickness_outer,
Vector3D  u_val,
Vector3D  v_val,
Vector3D  n_val,
Vector3D  o_val,
Volume  vol,
int  id_val 
)
inline

standard c'tor with all necessary arguments - origin is (0,0,0) if not given.

Definition at line 339 of file Surface.h.

Member Function Documentation

◆ distance()

double dd4hep::rec::VolPlaneImpl::distance ( const Vector3D point) const
virtual

Distance to surface

Distance to planar surface

Reimplemented from dd4hep::rec::VolSurfaceBase.

Definition at line 272 of file Surface.cpp.


The documentation for this class was generated from the following files: