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

Handle class describing an element in the periodic table. More...

#include <Objects.h>

Inheritance diagram for dd4hep::Atom:
dd4hep::Handle< TGeoElement >

Public Member Functions

 Atom ()=default
 Default constructor. More...
 
 Atom (const Atom &copy)=default
 Copy constructor. More...
 
 Atom (Object *e)
 Initialization from pointer. More...
 
 Atom (const Handle< Object > &e)
 Constructorto be used for assignment from a handle. More...
 
template<typename Q >
 Atom (const Handle< Q > &e)
 Constructor to be used when creating from a object handle. More...
 
 Atom (const std::string &name, const std::string &formula, int Z, int N, double density)
 Constructor to be used when reading the already parsed DOM tree. More...
 
Atomoperator= (const Atom &copy)=default
 Assignment operator. More...
 
- Public Member Functions inherited from dd4hep::Handle< TGeoElement >
 Handle ()=default
 Default constructor. More...
 
 Handle (Handle< TGeoElement > &&element)=default
 Copy constructor. More...
 
 Handle (const Handle< TGeoElement > &element)=default
 Copy constructor. More...
 
 Handle (TGeoElement *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< TGeoElement > & operator= (Handle< TGeoElement > &&element)=default
 Assignment move operator. More...
 
Handle< TGeoElement > & operator= (const Handle< TGeoElement > &element)=default
 Assignment copy operator. More...
 
bool operator== (const Handle< TGeoElement > &element) const
 Boolean operator == used for RB tree insertions. More...
 
bool operator< (const Handle< TGeoElement > &element) const
 Boolean operator < used for RB tree insertions. More...
 
bool operator> (const Handle< TGeoElement > &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< TGeoElement > & clear ()
 Release the object held by the handle. More...
 
TGeoElement * operator-> () const
 Access the held object using the -> operator. More...
 
 operator TGeoElement & () const
 Automatic type conversion to an object references. More...
 
TGeoElement & operator* () const
 Access the held object using the * operator. More...
 
TGeoElement * 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...
 
TGeoElement * 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

- Public Types inherited from dd4hep::Handle< TGeoElement >
typedef TGeoElement Object
 Extern accessible definition of the contained element type. More...
 
typedef Handle< TGeoElement > Base
 Self type: used by sub-classes. More...
 
- Static Public Member Functions inherited from dd4hep::Handle< TGeoElement >
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< TGeoElement >
TGeoElement * m_element
 Single and only data member: Reference to the actual element. More...
 

Detailed Description

Handle class describing an element in the periodic table.

For details please see the ROOT TGeo information:

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

Definition at line 242 of file Objects.h.

Constructor & Destructor Documentation

◆ Atom() [1/6]

dd4hep::Atom::Atom ( )
default

Default constructor.

◆ Atom() [2/6]

dd4hep::Atom::Atom ( const Atom copy)
default

Copy constructor.

◆ Atom() [3/6]

dd4hep::Atom::Atom ( Object e)
inline

Initialization from pointer.

Definition at line 249 of file Objects.h.

◆ Atom() [4/6]

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

Constructorto be used for assignment from a handle.

Definition at line 252 of file Objects.h.

◆ Atom() [5/6]

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

Constructor to be used when creating from a object handle.

Definition at line 255 of file Objects.h.

◆ Atom() [6/6]

Atom::Atom ( const std::string &  name,
const std::string &  formula,
int  Z,
int  N,
double  density 
)

Constructor to be used when reading the already parsed DOM tree.

Constructor to be used when creating a new DOM tree.

Definition at line 165 of file Objects.cpp.

Member Function Documentation

◆ operator=()

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

Assignment operator.


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