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

#include <Surface.h>

Inheritance diagram for dd4hep::rec::VolCylinderImpl:
dd4hep::rec::VolSurfaceBase dd4hep::rec::ISurface SimpleCylinderImpl

Public Member Functions

 VolCylinderImpl ()
 default c'tor More...
 
 VolCylinderImpl (Volume vol, SurfaceType type, double thickness_inner, double thickness_outer, Vector3D origin)
 
virtual Vector3D u (const Vector3D &point=Vector3D()) const override
 
virtual Vector3D normal (const Vector3D &point=Vector3D()) const override
 
virtual double distance (const Vector3D &point) const override
 
virtual Vector2D globalToLocal (const Vector3D &point) const override
 
virtual Vector3D localToGlobal (const Vector2D &point) const override
 
- Public Member Functions inherited from dd4hep::rec::VolSurfaceBase
virtual ~VolSurfaceBase () override=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 override
 The id of this surface. More...
 
virtual const SurfaceTypetype () const override
 
virtual Vector3D v (const Vector3D &point=Vector3D()) const override
 
virtual const Vector3Dorigin () const override
 
virtual const IMaterialinnerMaterial () const override
 Access to the material in opposite direction of the normal. More...
 
virtual const IMaterialouterMaterial () const override
 Access to the material in direction of the normal. More...
 
virtual double innerThickness () const override
 
virtual double outerThickness () const override
 
virtual double length_along_u () const override
 
virtual double length_along_v () const override
 
virtual bool insideBounds (const Vector3D &point, double epsilon=1e-4) const override
 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 cylindrical surface attached to a volume

Author
F.Gaede, DESY
Date
Apr, 6 2014
Version
$Id$

Definition at line 359 of file Surface.h.

Constructor & Destructor Documentation

◆ VolCylinderImpl() [1/2]

dd4hep::rec::VolCylinderImpl::VolCylinderImpl ( )
inline

default c'tor

Definition at line 364 of file Surface.h.

◆ VolCylinderImpl() [2/2]

dd4hep::rec::VolCylinderImpl::VolCylinderImpl ( Volume  vol,
SurfaceType  type,
double  thickness_inner,
double  thickness_outer,
Vector3D  origin 
)

The standard constructor. The origin vector points to the origin of the coordinate system on the cylinder, its rho defining the radius of the cylinder. The measurement direction v is set to be (0,0,1), the normal is chosen to be parallel to the origin vector and u = n X v.

Definition at line 276 of file Surface.cpp.

Member Function Documentation

◆ distance()

double dd4hep::rec::VolCylinderImpl::distance ( const Vector3D point) const
overridevirtual

Distance to surface

Reimplemented from dd4hep::rec::VolSurfaceBase.

Definition at line 334 of file Surface.cpp.

◆ globalToLocal()

Vector2D dd4hep::rec::VolCylinderImpl::globalToLocal ( const Vector3D point) const
overridevirtual

Convert the global position to the local position (u,v) on the surface - v runs along the axis of the cylinder, u is r*phi

Reimplemented from dd4hep::rec::VolSurfaceBase.

Definition at line 309 of file Surface.cpp.

◆ localToGlobal()

Vector3D dd4hep::rec::VolCylinderImpl::localToGlobal ( const Vector2D point) const
overridevirtual

Convert the local position (u,v) on the surface to the global position - v runs along the axis of the cylinder, u is r*phi

Reimplemented from dd4hep::rec::VolSurfaceBase.

Definition at line 321 of file Surface.cpp.

◆ normal()

Vector3D dd4hep::rec::VolCylinderImpl::normal ( const Vector3D point = Vector3D()) const
overridevirtual

The normal direction at the given point, projected onto the cylinder. No check is done whether the point actually is on the cylinder surface

Reimplemented from dd4hep::rec::VolSurfaceBase.

Definition at line 303 of file Surface.cpp.

◆ u()

Vector3D dd4hep::rec::VolCylinderImpl::u ( const Vector3D point = Vector3D()) const
overridevirtual

First direction of measurement U - rotated to point projected onto the cylinder. No check is done whether the point actually is on the cylinder surface

Reimplemented from dd4hep::rec::VolSurfaceBase.

Definition at line 296 of file Surface.cpp.


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