![]() |
DD4hep
1.33.0
Detector Description Toolkit for High Energy Physics
|
#include <Surface.h>
Public Member Functions | |
| virtual | ~Surface () |
| Surface (DetElement det, VolSurface volSurf) | |
| virtual long64 | id () const |
| The id of this surface - corresponds to DetElement id. More... | |
| virtual const SurfaceType & | type () const |
| Volume | volume () const |
| The volume that has the surface attached. More... | |
| VolSurface | volSurface () const |
| The VolSurface attched to the volume. More... | |
| DetElement | detElement () const |
| The DetElement belonging to the surface volume. More... | |
| 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 Vector3D & | origin () const |
| virtual Vector2D | globalToLocal (const Vector3D &point) const |
| virtual Vector3D | localToGlobal (const Vector2D &point) const |
| virtual double | innerThickness () const |
| virtual double | outerThickness () const |
| virtual const IMaterial & | innerMaterial () const |
| Access to the material in opposite direction of the normal. More... | |
| virtual const IMaterial & | outerMaterial () const |
| Access to the material in direction of the normal. More... | |
| virtual double | distance (const Vector3D &point) const |
| virtual bool | insideBounds (const Vector3D &point, double epsilon=1.e-4) const |
| Checks if the given point lies within the surface. More... | |
| virtual Vector3D | volumeOrigin () const |
| virtual double | length_along_u () const |
| virtual double | length_along_v () const |
| virtual std::vector< std::pair< Vector3D, Vector3D > > | getLines (unsigned nMax=100) |
Public Member Functions inherited from dd4hep::rec::ISurface | |
| virtual | ~ISurface () |
| Destructor. More... | |
Protected Member Functions | |
| Surface ()=delete | |
| default c'tor etc. removed More... | |
| Surface (Surface const &)=delete | |
| Surface & | operator= (Surface const &)=delete |
| void | initialize () |
Protected Attributes | |
| DetElement | _det |
| VolSurface | _volSurf |
| std::unique_ptr< TGeoMatrix > | _wtM |
| long64 | _id {0} |
| SurfaceType | _type {} |
| Vector3D | _u {} |
| Vector3D | _v {} |
| Vector3D | _n {} |
| Vector3D | _o {} |
Implementation of Surface class holding a local surface attached to a volume and the DetElement holding this surface.
|
protecteddelete |
default c'tor etc. removed
|
protecteddelete |
| dd4hep::rec::Surface::Surface | ( | DetElement | det, |
| VolSurface | volSurf | ||
| ) |
Standard c'tor initializes the surface from the parameters of the VolSurface and the transform (placement) of the corresponding volume, if found in DetElement
Definition at line 605 of file Surface.cpp.
|
inline |
The DetElement belonging to the surface volume.
|
virtual |
|
virtual |
Get lines constraining the surface for drawing ( might not be exact boundaries) - at most nMax lines are returned.
Definition at line 833 of file Surface.cpp.
Convert the global position to the local position (u,v) on the surface
Implements dd4hep::rec::ISurface.
Reimplemented in dd4hep::rec::CylinderSurface.
Definition at line 665 of file Surface.cpp.
|
virtual |
The id of this surface - corresponds to DetElement id.
Implements dd4hep::rec::ISurface.
Definition at line 611 of file Surface.cpp.
|
protected |
Definition at line 719 of file Surface.cpp.
|
virtual |
Access to the material in opposite direction of the normal.
Thickness of outer material
Implements dd4hep::rec::ISurface.
Definition at line 626 of file Surface.cpp.
|
virtual |
Thickness of inner material
Implements dd4hep::rec::ISurface.
Definition at line 619 of file Surface.cpp.
|
virtual |
Checks if the given point lies within the surface.
Implements dd4hep::rec::ISurface.
Definition at line 710 of file Surface.cpp.
|
virtual |
The length of the surface along direction u at the origin. For 'regular' boundaries, like rectangles, this can be used to speed up the computation of inSideBounds.
Implements dd4hep::rec::ISurface.
Definition at line 621 of file Surface.cpp.
|
virtual |
The length of the surface along direction v at the origin. For 'regular' boundaries, like rectangles, this can be used to speed up the computation of inSideBounds.
Implements dd4hep::rec::ISurface.
Definition at line 622 of file Surface.cpp.
Convert the local position (u,v) on the surface to the global position
Implements dd4hep::rec::ISurface.
Reimplemented in dd4hep::rec::CylinderSurface.
Definition at line 682 of file Surface.cpp.
Access to the normal direction at the given point.
Implements dd4hep::rec::ISurface.
Reimplemented in dd4hep::rec::CylinderSurface.
Definition at line 617 of file Surface.cpp.
|
virtual |
Get Origin of local coordinate system on surface
Implements dd4hep::rec::ISurface.
Definition at line 618 of file Surface.cpp.
|
virtual |
Access to the material in direction of the normal.
Implements dd4hep::rec::ISurface.
Definition at line 645 of file Surface.cpp.
|
virtual |
Thickness of outer material
Implements dd4hep::rec::ISurface.
Definition at line 620 of file Surface.cpp.
|
virtual |
properties of the surface encoded in Type.
Implements dd4hep::rec::ISurface.
Definition at line 613 of file Surface.cpp.
First direction of measurement U
Implements dd4hep::rec::ISurface.
Reimplemented in dd4hep::rec::CylinderSurface.
Definition at line 615 of file Surface.cpp.
Second direction of measurement V
Implements dd4hep::rec::ISurface.
Reimplemented in dd4hep::rec::CylinderSurface.
Definition at line 616 of file Surface.cpp.
|
inline |
The VolSurface attched to the volume.
|
inline |
|
virtual |
Get Origin of local coordinate system of the associated volume
Definition at line 689 of file Surface.cpp.
|
protected |
|
protected |
|
mutableprotected |
|
protected |
1.8.18