DD4hep  1.28.0
Detector Description Toolkit for High Energy Physics
Public Member Functions | Private Member Functions | List of all members

Class describing a Trd2 shape. More...

#include <Shapes.h>

Inheritance diagram for dd4hep::Trd2:
dd4hep::Solid_type< TGeoTrd2 > dd4hep::Handle< TGeoTrd2 >

Public Member Functions

 Trd2 ()=default
 Default constructor. More...
 
 Trd2 (Trd2 &&e)=default
 Move Constructor. More...
 
 Trd2 (const Trd2 &e)=default
 Copy Constructor. More...
 
template<typename Q >
 Trd2 (const Q *p)
 Constructor to be used with an existing object. More...
 
template<typename Q >
 Trd2 (const Handle< Q > &e)
 Constructor to be used when passing an already created object. More...
 
 Trd2 (double x1, double x2, double y1, double y2, double z)
 Constructor to create a new anonymous object with attribute initialization. More...
 
template<typename X1 , typename X2 , typename Y1 , typename Y2 , typename Z >
 Trd2 (X1 x1, X2 x2, Y1 y1, Y2 y2, Z z)
 Constructor to create a new anonymous object with attribute initialization. More...
 
 Trd2 (const std::string &nam, double x1, double x2, double y1, double y2, double z)
 Constructor to create a new identified object with attribute initialization. More...
 
template<typename X1 , typename X2 , typename Y1 , typename Y2 , typename Z >
 Trd2 (const std::string &nam, X1 x1, X2 x2, Y1 y1, Y2 y2, Z z)
 Constructor to create a new identified object with attribute initialization. More...
 
Trd2operator= (Trd2 &&copy)=default
 Copy Assignment operator. More...
 
Trd2operator= (const Trd2 &copy)=default
 Move Assignment operator. More...
 
Trd2setDimensions (double x1, double x2, double y1, double y2, double z)
 Set the Trd2 dimensions. More...
 
double dX1 () const
 Accessor: delta-x1 value. More...
 
double dX2 () const
 Accessor: delta-x2 value. More...
 
double dY1 () const
 Accessor: delta-y1 value. More...
 
double dY2 () const
 Accessor: delta-y2 value. More...
 
double dZ () const
 Accessor: delta-z value. More...
 
- Public Member Functions inherited from dd4hep::Solid_type< TGeoTrd2 >
 Solid_type ()=default
 Default constructor for uninitialized object. More...
 
 Solid_type (Solid_type &&e)=default
 Move constructor. More...
 
 Solid_type (const Solid_type &e)=default
 Copy constructor. More...
 
 Solid_type (TGeoTrd2 *p)
 Direct assignment using the implementation pointer. More...
 
 Solid_type (Handle< TGeoTrd2 > &&e)
 Move Constructor from handle. More...
 
 Solid_type (const Handle< TGeoTrd2 > &e)
 Copy Constructor from handle. More...
 
 Solid_type (const Handle< Q > &e)
 Constructor to be used when passing an already created object: need to check pointers. More...
 
Solid_typeoperator= (Solid_type &&copy)=default
 Assignment move operator. More...
 
Solid_typeoperator= (const Solid_type &copy)=default
 Assignment copy operator. More...
 
const char * name () const
 Access to shape name. More...
 
Solid_type< TGeoTrd2 > & setName (const char *value)
 Set new shape name. More...
 
Solid_type< TGeoTrd2 > & setName (const std::string &value)
 Set new shape name. More...
 
const char * title () const
 Access to shape title (GetTitle accessor of the TGeoShape) More...
 
const char * type () const
 Access to shape type (The TClass name of the ROOT implementation) More...
 
 operator TGeoTrd2 * () const
 Auto conversion to underlying ROOT object. More...
 
TGeoTrd2 * operator-> () const
 Overloaded operator -> to access underlying object. More...
 
std::vector< double > dimensions ()
 Access the dimensions of the shape: inverse of the setDimensions member function. More...
 
Solid_typesetDimensions (const std::vector< double > &params)
 Set the shape dimensions. As for the TGeo shape, but angles in rad rather than degrees. More...
 
std::string toString (int precision=2) const
 Conversion to string for pretty print. More...
 
TGeoVolume * divide (const Volume &voldiv, const std::string &divname, int iaxis, int ndiv, double start, double step) const
 Divide volume into subsections (See the ROOT manuloa for details) More...
 
- Public Member Functions inherited from dd4hep::Handle< TGeoTrd2 >
 Handle ()=default
 Default constructor. More...
 
 Handle (Handle< TGeoTrd2 > &&element)=default
 Copy constructor. More...
 
 Handle (const Handle< TGeoTrd2 > &element)=default
 Copy constructor. More...
 
 Handle (TGeoTrd2 *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< TGeoTrd2 > & operator= (Handle< TGeoTrd2 > &&element)=default
 Assignment move operator. More...
 
Handle< TGeoTrd2 > & operator= (const Handle< TGeoTrd2 > &element)=default
 Assignment copy operator. More...
 
bool operator== (const Handle< TGeoTrd2 > &element) const
 Boolean operator == used for RB tree insertions. More...
 
bool operator< (const Handle< TGeoTrd2 > &element) const
 Boolean operator < used for RB tree insertions. More...
 
bool operator> (const Handle< TGeoTrd2 > &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< TGeoTrd2 > & clear ()
 Release the object held by the handle. More...
 
TGeoTrd2 * operator-> () const
 Access the held object using the -> operator. More...
 
 operator TGeoTrd2 & () const
 Automatic type conversion to an object references. More...
 
TGeoTrd2 & operator* () const
 Access the held object using the * operator. More...
 
TGeoTrd2 * 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...
 
TGeoTrd2 * 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...
 

Private Member Functions

void make (const std::string &nam, double x1, double x2, double y1, double y2, double z)
 Internal helper method to support object construction. More...
 

Additional Inherited Members

- Public Types inherited from dd4hep::Handle< TGeoTrd2 >
typedef TGeoTrd2 Object
 Extern accessible definition of the contained element type. More...
 
typedef Handle< TGeoTrd2 > Base
 Self type: used by sub-classes. More...
 
- Static Public Member Functions inherited from dd4hep::Handle< TGeoTrd2 >
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< TGeoTrd2 >
TGeoTrd2 * m_element
 Single and only data member: Reference to the actual element. More...
 
- Protected Member Functions inherited from dd4hep::Solid_type< TGeoTrd2 >
void _setDimensions (double *param) const
 
void _assign (TGeoTrd2 *n, const std::string &nam, const std::string &tit, bool cbbox)
 Assign pointrs and register solid to geometry. More...
 

Detailed Description

Class describing a Trd2 shape.

For any further documentation please see the following ROOT documentation:

See also
http://root.cern.ch/root/html/TGeoTrd2.html
Author
M.Frank
Version
1.0

Definition at line 1163 of file Shapes.h.

Constructor & Destructor Documentation

◆ Trd2() [1/9]

dd4hep::Trd2::Trd2 ( )
default

Default constructor.

◆ Trd2() [2/9]

dd4hep::Trd2::Trd2 ( Trd2 &&  e)
default

Move Constructor.

◆ Trd2() [3/9]

dd4hep::Trd2::Trd2 ( const Trd2 e)
default

Copy Constructor.

◆ Trd2() [4/9]

template<typename Q >
dd4hep::Trd2::Trd2 ( const Q *  p)
inline

Constructor to be used with an existing object.

Definition at line 1176 of file Shapes.h.

◆ Trd2() [5/9]

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

Constructor to be used when passing an already created object.

Definition at line 1178 of file Shapes.h.

◆ Trd2() [6/9]

dd4hep::Trd2::Trd2 ( double  x1,
double  x2,
double  y1,
double  y2,
double  z 
)
inline

Constructor to create a new anonymous object with attribute initialization.

Definition at line 1181 of file Shapes.h.

◆ Trd2() [7/9]

template<typename X1 , typename X2 , typename Y1 , typename Y2 , typename Z >
dd4hep::Trd2::Trd2 ( X1  x1,
X2  x2,
Y1  y1,
Y2  y2,
z 
)
inline

Constructor to create a new anonymous object with attribute initialization.

Definition at line 1185 of file Shapes.h.

◆ Trd2() [8/9]

dd4hep::Trd2::Trd2 ( const std::string &  nam,
double  x1,
double  x2,
double  y1,
double  y2,
double  z 
)
inline

Constructor to create a new identified object with attribute initialization.

Definition at line 1189 of file Shapes.h.

◆ Trd2() [9/9]

template<typename X1 , typename X2 , typename Y1 , typename Y2 , typename Z >
dd4hep::Trd2::Trd2 ( const std::string &  nam,
X1  x1,
X2  x2,
Y1  y1,
Y2  y2,
z 
)
inline

Constructor to create a new identified object with attribute initialization.

Definition at line 1193 of file Shapes.h.

Member Function Documentation

◆ dX1()

double dd4hep::Trd2::dX1 ( ) const
inline

Accessor: delta-x1 value.

Definition at line 1204 of file Shapes.h.

◆ dX2()

double dd4hep::Trd2::dX2 ( ) const
inline

Accessor: delta-x2 value.

Definition at line 1206 of file Shapes.h.

◆ dY1()

double dd4hep::Trd2::dY1 ( ) const
inline

Accessor: delta-y1 value.

Definition at line 1208 of file Shapes.h.

◆ dY2()

double dd4hep::Trd2::dY2 ( ) const
inline

Accessor: delta-y2 value.

Definition at line 1210 of file Shapes.h.

◆ dZ()

double dd4hep::Trd2::dZ ( ) const
inline

Accessor: delta-z value.

Definition at line 1212 of file Shapes.h.

◆ make()

void Trd2::make ( const std::string &  nam,
double  x1,
double  x2,
double  y1,
double  y2,
double  z 
)
private

Internal helper method to support object construction.

Constructor to be used when creating a new object with attribute initialization.

Definition at line 530 of file Shapes.cpp.

◆ operator=() [1/2]

Trd2& dd4hep::Trd2::operator= ( const Trd2 copy)
default

Move Assignment operator.

◆ operator=() [2/2]

Trd2& dd4hep::Trd2::operator= ( Trd2 &&  copy)
default

Copy Assignment operator.

◆ setDimensions()

Trd2 & Trd2::setDimensions ( double  x1,
double  x2,
double  y1,
double  y2,
double  z 
)

Set the Trd2 dimensions.

Definition at line 535 of file Shapes.cpp.


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