DD4hep
1.30.0
Detector Description Toolkit for High Energy Physics
|
Main handle class to hold an alignment object. More...
#include <Alignments.h>
Classes | |
class | Processor |
Abstract base for processing callbacks to container objects. More... | |
Public Member Functions | |
Alignment ()=default | |
Default constructor. More... | |
Alignment (Object *p) | |
Default constructor. More... | |
template<typename Q > | |
Alignment (const Handle< Q > &e) | |
Constructor to be used when reading the already parsed object. More... | |
Alignment (const std::string &name) | |
Object constructor for pure alignment objects. More... | |
AlignmentData & | data () |
Data accessor for the use of decorators. More... | |
const AlignmentData & | data () const |
Data accessor for the use of decorators. More... | |
const Delta & | delta () const |
Access the delta value of the object. More... | |
const TGeoHMatrix & | worldTransformation () const |
Create cached matrix to transform to world coordinates. More... | |
const TGeoHMatrix & | detectorTransformation () const |
Access the alignment/placement matrix with respect to the world. More... | |
const std::vector< PlacedVolume > & | nodes () const |
Access to the node list. More... | |
void | localToWorld (const Position &local, Position &global) const |
Transformation from local coordinates of the placed volume to the world system. More... | |
void | localToWorld (const Double_t local[3], Double_t global[3]) const |
Transformation from local coordinates of the placed volume to the world system. More... | |
Position | localToWorld (const Position &local) const |
Transformation from local coordinates of the placed volume to the world system. More... | |
Position | localToWorld (const Double_t local[3]) const |
Transformation from local coordinates of the placed volume to the world system. More... | |
void | worldToLocal (const Position &global, Position &local) const |
Transformation from world coordinates of the local placed volume coordinates. More... | |
void | worldToLocal (const Double_t global[3], Double_t local[3]) const |
Transformation from world coordinates of the local placed volume coordinates. More... | |
Position | worldToLocal (const Position &global) const |
Transformation from local coordinates of the placed volume to the world system. More... | |
Position | worldToLocal (const Double_t global[3]) const |
Transformation from local coordinates of the placed volume to the world system. More... | |
void | localToDetector (const Position &local, Position &detector) const |
Transformation from local coordinates of the placed volume to the detector system. More... | |
void | localToDetector (const Double_t local[3], Double_t detector[3]) const |
Transformation from local coordinates of the placed volume to the detector system. More... | |
Position | localToDetector (const Position &local) const |
Transformation from local coordinates of the placed volume to the world system. More... | |
Position | localToDetector (const Double_t local[3]) const |
Transformation from local coordinates of the placed volume to the world system. More... | |
void | detectorToLocal (const Position &detector, Position &local) const |
Transformation from detector element coordinates to the local placed volume coordinates. More... | |
void | detectorToLocal (const Double_t detector[3], Double_t local[3]) const |
Transformation from detector element coordinates to the local placed volume coordinates. More... | |
Position | detectorToLocal (const Position &detector) const |
Transformation from detector element coordinates to the local placed volume coordinates. More... | |
Position | detectorToLocal (const Double_t det[3]) const |
Transformation from detector element coordinates to the local placed volume coordinates. More... | |
Public Member Functions inherited from dd4hep::Handle< detail::AlignmentObject > | |
Handle ()=default | |
Default constructor. More... | |
Handle (Handle< detail::AlignmentObject > &&element)=default | |
Copy constructor. More... | |
Handle (const Handle< detail::AlignmentObject > &element)=default | |
Copy constructor. More... | |
Handle (detail::AlignmentObject *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< detail::AlignmentObject > & | operator= (Handle< detail::AlignmentObject > &&element)=default |
Assignment move operator. More... | |
Handle< detail::AlignmentObject > & | operator= (const Handle< detail::AlignmentObject > &element)=default |
Assignment copy operator. More... | |
bool | operator== (const Handle< detail::AlignmentObject > &element) const |
Boolean operator == used for RB tree insertions. More... | |
bool | operator< (const Handle< detail::AlignmentObject > &element) const |
Boolean operator < used for RB tree insertions. More... | |
bool | operator> (const Handle< detail::AlignmentObject > &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< detail::AlignmentObject > & | clear () |
Release the object held by the handle. More... | |
detail::AlignmentObject * | operator-> () const |
Access the held object using the -> operator. More... | |
operator detail::AlignmentObject & () const | |
Automatic type conversion to an object references. More... | |
detail::AlignmentObject & | operator* () const |
Access the held object using the * operator. More... | |
detail::AlignmentObject * | 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... | |
detail::AlignmentObject * | 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< detail::AlignmentObject > | |
typedef detail::AlignmentObject | Object |
Extern accessible definition of the contained element type. More... | |
typedef Handle< detail::AlignmentObject > | Base |
Self type: used by sub-classes. More... | |
Static Public Member Functions inherited from dd4hep::Handle< detail::AlignmentObject > | |
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< detail::AlignmentObject > | |
detail::AlignmentObject * | m_element |
Single and only data member: Reference to the actual element. More... | |
Main handle class to hold an alignment object.
Definition at line 115 of file Alignments.h.
|
default |
Default constructor.
|
inline |
Default constructor.
Definition at line 137 of file Alignments.h.
|
inline |
Constructor to be used when reading the already parsed object.
Definition at line 139 of file Alignments.h.
Alignment::Alignment | ( | const std::string & | name | ) |
Object constructor for pure alignment objects.
Initializing constructor to create a new object (Specialized for AlignmentNamedObject)
Definition at line 37 of file Alignments.cpp.
AlignmentData & Alignment::data | ( | ) |
Data accessor for the use of decorators.
Definition at line 53 of file Alignments.cpp.
const AlignmentData & Alignment::data | ( | ) | const |
Data accessor for the use of decorators.
Definition at line 58 of file Alignments.cpp.
const Delta & Alignment::delta | ( | ) | const |
Access the delta value of the object.
Definition at line 63 of file Alignments.cpp.
|
inline |
Transformation from detector element coordinates to the local placed volume coordinates.
Definition at line 196 of file Alignments.h.
void Alignment::detectorToLocal | ( | const Double_t | detector[3], |
Double_t | local[3] | ||
) | const |
Transformation from detector element coordinates to the local placed volume coordinates.
Definition at line 132 of file Alignments.cpp.
Transformation from detector element coordinates to the local placed volume coordinates.
Definition at line 137 of file Alignments.cpp.
Transformation from detector element coordinates to the local placed volume coordinates.
Aliases for the transformation from the next DetElement to local coordinates
Definition at line 127 of file Alignments.cpp.
const TGeoHMatrix & Alignment::detectorTransformation | ( | ) | const |
Access the alignment/placement matrix with respect to the world.
Definition at line 73 of file Alignments.cpp.
|
inline |
Transformation from local coordinates of the placed volume to the world system.
Definition at line 185 of file Alignments.h.
void Alignment::localToDetector | ( | const Double_t | local[3], |
Double_t | detector[3] | ||
) | const |
Transformation from local coordinates of the placed volume to the detector system.
Definition at line 117 of file Alignments.cpp.
Transformation from local coordinates of the placed volume to the world system.
Definition at line 122 of file Alignments.cpp.
Transformation from local coordinates of the placed volume to the detector system.
Aliases for the transformation from local coordinates to the next DetElement system
Definition at line 112 of file Alignments.cpp.
|
inline |
Transformation from local coordinates of the placed volume to the world system.
Definition at line 163 of file Alignments.h.
void Alignment::localToWorld | ( | const Double_t | local[3], |
Double_t | global[3] | ||
) | const |
Transformation from local coordinates of the placed volume to the world system.
Definition at line 88 of file Alignments.cpp.
Transformation from local coordinates of the placed volume to the world system.
Definition at line 92 of file Alignments.cpp.
Transformation from local coordinates of the placed volume to the world system.
Aliases for the transformation from local coordinates to the world system
Definition at line 83 of file Alignments.cpp.
const std::vector< PlacedVolume > & Alignment::nodes | ( | ) | const |
Access to the node list.
Definition at line 78 of file Alignments.cpp.
|
inline |
Transformation from local coordinates of the placed volume to the world system.
Definition at line 174 of file Alignments.h.
void Alignment::worldToLocal | ( | const Double_t | global[3], |
Double_t | local[3] | ||
) | const |
Transformation from world coordinates of the local placed volume coordinates.
Definition at line 102 of file Alignments.cpp.
Transformation from local coordinates of the placed volume to the world system.
Definition at line 107 of file Alignments.cpp.
Transformation from world coordinates of the local placed volume coordinates.
Aliases for the transformation from world coordinates to the local volume
Definition at line 97 of file Alignments.cpp.
const TGeoHMatrix & Alignment::worldTransformation | ( | ) | const |
Create cached matrix to transform to world coordinates.
Definition at line 68 of file Alignments.cpp.