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

Class to support the handling of optical surfaces. More...

#include <OpticalSurfaces.h>

Inheritance diagram for dd4hep::SkinSurface:
dd4hep::Handle< TGeoSkinSurface >

Public Types

typedef TGeoSkinSurface Object
 
typedef const TGDMLMatrix * Property
 
- Public Types inherited from dd4hep::Handle< TGeoSkinSurface >
typedef TGeoSkinSurface Object
 Extern accessible definition of the contained element type. More...
 
typedef Handle< TGeoSkinSurface > Base
 Self type: used by sub-classes. More...
 

Public Member Functions

 SkinSurface ()=default
 Default constructor. More...
 
 SkinSurface (const SkinSurface &e)=default
 Copy constructor. More...
 
 SkinSurface (Object *obj)
 Constructor taking object pointer. More...
 
 SkinSurface (const Handle< Object > &e)
 Constructor from same-type handle. More...
 
template<typename Q >
 SkinSurface (const Handle< Q > &e)
 Constructor from arbitrary handle. More...
 
 SkinSurface (Detector &detector, DetElement de, const std::string &nam, OpticalSurface surf, Volume vol)
 Initializing constructor. More...
 
SkinSurfaceoperator= (const SkinSurface &m)=default
 Assignment operator. More...
 
OpticalSurface surface () const
 Access surface data. More...
 
Volume volume () const
 Access the node of the skin surface. More...
 
Property property (const char *name) const
 Access to tabular properties of the optical surface. More...
 
Property property (const std::string &name) const
 Access to tabular properties of the optical surface. More...
 
- Public Member Functions inherited from dd4hep::Handle< TGeoSkinSurface >
 Handle ()=default
 Default constructor. More...
 
 Handle (Handle< TGeoSkinSurface > &&element)=default
 Copy constructor. More...
 
 Handle (const Handle< TGeoSkinSurface > &element)=default
 Copy constructor. More...
 
 Handle (TGeoSkinSurface *element)
 Initializing constructor from pointer. More...
 
 Handle (Q *element)
 Initializing constructor from unrelated pointer with type checking. More...
 
 Handle (const Handle< Q > &element)
 Initializing constructor from unrelated handle with type checking. More...
 
Handle< TGeoSkinSurface > & operator= (Handle< TGeoSkinSurface > &&element)=default
 Assignment move operator. More...
 
Handle< TGeoSkinSurface > & operator= (const Handle< TGeoSkinSurface > &element)=default
 Assignment copy operator. More...
 
bool operator== (const Handle< TGeoSkinSurface > &element) const
 Boolean operator == used for RB tree insertions. More...
 
bool operator< (const Handle< TGeoSkinSurface > &element) const
 Boolean operator < used for RB tree insertions. More...
 
bool operator> (const Handle< TGeoSkinSurface > &element) const
 Boolean operator > used for RB tree insertions. More...
 
bool isValid () const
 Check the validity of the object held by the handle. More...
 
bool operator! () const
 Check the validity of the object held by the handle. More...
 
Handle< TGeoSkinSurface > & clear ()
 Release the object held by the handle. More...
 
TGeoSkinSurface * operator-> () const
 Access the held object using the -> operator. More...
 
 operator TGeoSkinSurface & () const
 Automatic type conversion to an object references. More...
 
TGeoSkinSurface & operator* () const
 Access the held object using the * operator. More...
 
TGeoSkinSurface * ptr () const
 Access to the held object. More...
 
Q * _ptr () const
 Access to an unrelated object type. More...
 
Q * data () const
 Access to an unrelated object type. More...
 
Q & object () const
 Access to an unrelated object type. More...
 
TGeoSkinSurface * access () const
 Checked object access. Throws invalid handle runtime exception if invalid handle. More...
 
const char * name () const
 Access the object name (or "" if not supported by the object) More...
 
const char * name () const
 
const char * name () const
 
void assign (Object *n, const std::string &nam, const std::string &title)
 Assign a new named object. Note: object references must be managed by the user. More...
 
void assign (_Segmentation *s, const std::string &n, const std::string &)
 
void assign (NamedObject *p, const std::string &n, const std::string &t)
 
void destroy ()
 Destroy the underlying object (be careful here: things are not reference counted)! More...
 

Additional Inherited Members

- Static Public Member Functions inherited from dd4hep::Handle< TGeoSkinSurface >
static void bad_assignment (const std::type_info &from, const std::type_info &to)
 Helper routine called when unrelated types are assigned. More...
 
- Public Attributes inherited from dd4hep::Handle< TGeoSkinSurface >
TGeoSkinSurface * m_element
 Single and only data member: Reference to the actual element. More...
 

Detailed Description

Class to support the handling of optical surfaces.

Author
M.Frank
Version
1.0

Definition at line 111 of file OpticalSurfaces.h.

Member Typedef Documentation

◆ Object

typedef TGeoSkinSurface dd4hep::SkinSurface::Object

Definition at line 113 of file OpticalSurfaces.h.

◆ Property

typedef const TGDMLMatrix* dd4hep::SkinSurface::Property

Definition at line 114 of file OpticalSurfaces.h.

Constructor & Destructor Documentation

◆ SkinSurface() [1/6]

dd4hep::SkinSurface::SkinSurface ( )
default

Default constructor.

◆ SkinSurface() [2/6]

dd4hep::SkinSurface::SkinSurface ( const SkinSurface e)
default

Copy constructor.

◆ SkinSurface() [3/6]

dd4hep::SkinSurface::SkinSurface ( Object obj)
inline

Constructor taking object pointer.

Definition at line 122 of file OpticalSurfaces.h.

◆ SkinSurface() [4/6]

dd4hep::SkinSurface::SkinSurface ( const Handle< Object > &  e)
inline

Constructor from same-type handle.

Definition at line 124 of file OpticalSurfaces.h.

◆ SkinSurface() [5/6]

template<typename Q >
dd4hep::SkinSurface::SkinSurface ( const Handle< Q > &  e)
inline

Constructor from arbitrary handle.

Definition at line 127 of file OpticalSurfaces.h.

◆ SkinSurface() [6/6]

SkinSurface::SkinSurface ( Detector detector,
DetElement  de,
const std::string &  nam,
OpticalSurface  surf,
Volume  vol 
)

Initializing constructor.

Initializing constructor: Creates the object and registers it to the manager.

Definition at line 56 of file OpticalSurfaces.cpp.

Member Function Documentation

◆ operator=()

SkinSurface& dd4hep::SkinSurface::operator= ( const SkinSurface m)
default

Assignment operator.

◆ property() [1/2]

BorderSurface::Property SkinSurface::property ( const char *  name) const

Access to tabular properties of the optical surface.

Definition at line 79 of file OpticalSurfaces.cpp.

◆ property() [2/2]

BorderSurface::Property SkinSurface::property ( const std::string &  name) const

Access to tabular properties of the optical surface.

Definition at line 85 of file OpticalSurfaces.cpp.

◆ surface()

OpticalSurface SkinSurface::surface ( ) const

Access surface data.

Definition at line 74 of file OpticalSurfaces.cpp.

◆ volume()

Volume SkinSurface::volume ( ) const

Access the node of the skin surface.

Definition at line 91 of file OpticalSurfaces.cpp.


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