DD4hep
1.30.0
Detector Description Toolkit for High Energy Physics
|
Derived condition data-object definition. More...
#include <AlignmentData.h>
Public Types | |
enum | AlignmentFlags { HAVE_NONE = 0, HAVE_WORLD_TRAFO = 1<<0, HAVE_PARENT_TRAFO = 1<<1, HAVE_OTHER = 1<<31 } |
enum | DataType { IDEAL = 1<<10, SURVEY = 1<<11, TIME_STAMPED = 1<<12 } |
typedef unsigned int | BitMask |
Forward declaration of the utility bit mask. More... | |
Public Member Functions | |
AlignmentData () | |
Standard constructor. More... | |
AlignmentData (const AlignmentData ©) | |
Copy constructor. More... | |
virtual | ~AlignmentData () |
Default destructor. More... | |
AlignmentData & | operator= (const AlignmentData ©) |
Assignment operator necessary due to copy constructor. More... | |
AlignmentData & | data () |
Data accessor for decorator. More... | |
Alignment | nominal () const |
Access the ideal/nominal alignment/placement matrix. 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 Transform3D & | localToWorld () const |
Access the currently applied alignment/placement matrix. 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 Attributes | |
Delta | delta |
Alignment changes. More... | |
TGeoHMatrix | worldTrafo |
Intermediate buffer to store the transformation to the world coordination system. More... | |
TGeoHMatrix | detectorTrafo |
Intermediate buffer to store the transformation to the parent detector element. More... | |
std::vector< PlacedVolume > | nodes |
The list of TGeoNodes (physical placements) More... | |
Transform3D | trToWorld |
Transformation from volume to the world. More... | |
DetElement | detector |
Reference to the next hosting detector element. More... | |
PlacedVolume | placement |
The subdetector placement corresponding to the actual detector element's volume. More... | |
BitMask | flag |
Flag to remember internally calculated quatities. More... | |
unsigned int | magic |
Magic word to verify object if necessary. More... | |
typedef unsigned int dd4hep::AlignmentData::BitMask |
Forward declaration of the utility bit mask.
Definition at line 101 of file AlignmentData.h.
Enumerator | |
---|---|
HAVE_NONE | |
HAVE_WORLD_TRAFO | |
HAVE_PARENT_TRAFO | |
HAVE_OTHER |
Definition at line 103 of file AlignmentData.h.
Enumerator | |
---|---|
IDEAL | |
SURVEY | |
TIME_STAMPED |
Definition at line 109 of file AlignmentData.h.
AlignmentData::AlignmentData | ( | ) |
Standard constructor.
Definition at line 99 of file AlignmentData.cpp.
AlignmentData::AlignmentData | ( | const AlignmentData & | copy | ) |
Copy constructor.
Definition at line 106 of file AlignmentData.cpp.
|
virtual |
Default destructor.
Definition at line 116 of file AlignmentData.cpp.
|
inline |
Data accessor for decorator.
Definition at line 144 of file AlignmentData.h.
|
inline |
Transformation from detector element coordinates to the local placed volume coordinates.
Definition at line 195 of file AlignmentData.h.
void AlignmentData::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 224 of file AlignmentData.cpp.
Transformation from detector element coordinates to the local placed volume coordinates.
Transform a point from local coordinates of the DetElement to global coordinates.
Definition at line 206 of file AlignmentData.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 216 of file AlignmentData.cpp.
|
inline |
Access the alignment/placement matrix with respect to the world.
Definition at line 150 of file AlignmentData.h.
|
inline |
Transformation from local coordinates of the placed volume to the world system.
Definition at line 184 of file AlignmentData.h.
void AlignmentData::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 201 of file AlignmentData.cpp.
Transformation from local coordinates of the placed volume to the world system.
Transform a point from local coordinates to the coordinates of the DetElement.
Definition at line 185 of file AlignmentData.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 194 of file AlignmentData.cpp.
|
inline |
Access the currently applied alignment/placement matrix.
Definition at line 152 of file AlignmentData.h.
|
inline |
Transformation from local coordinates of the placed volume to the world system.
Definition at line 162 of file AlignmentData.h.
void AlignmentData::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 158 of file AlignmentData.cpp.
Transformation from local coordinates of the placed volume to the world system.
Transform a point from local coordinates of a given level to global coordinates.
Definition at line 142 of file AlignmentData.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 151 of file AlignmentData.cpp.
Alignment AlignmentData::nominal | ( | ) | const |
Access the ideal/nominal alignment/placement matrix.
Definition at line 229 of file AlignmentData.cpp.
AlignmentData & AlignmentData::operator= | ( | const AlignmentData & | copy | ) |
Assignment operator necessary due to copy constructor.
Definition at line 121 of file AlignmentData.cpp.
|
inline |
Transformation from local coordinates of the placed volume to the world system.
Definition at line 173 of file AlignmentData.h.
void AlignmentData::worldToLocal | ( | const Double_t | global[3], |
Double_t | local[3] | ||
) | const |
Transformation from world coordinates of the local placed volume coordinates.
Definition at line 180 of file AlignmentData.cpp.
Transformation from local coordinates of the placed volume to the world system.
Transform a point from local coordinates of a given level to global coordinates.
Definition at line 163 of file AlignmentData.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 173 of file AlignmentData.cpp.
|
inline |
Create cached matrix to transform to world coordinates.
Definition at line 148 of file AlignmentData.h.
Delta dd4hep::AlignmentData::delta |
Alignment changes.
Definition at line 116 of file AlignmentData.h.
DetElement dd4hep::AlignmentData::detector |
Reference to the next hosting detector element.
Definition at line 126 of file AlignmentData.h.
|
mutable |
Intermediate buffer to store the transformation to the parent detector element.
Definition at line 120 of file AlignmentData.h.
|
mutable |
Flag to remember internally calculated quatities.
Definition at line 130 of file AlignmentData.h.
unsigned int dd4hep::AlignmentData::magic |
Magic word to verify object if necessary.
Definition at line 132 of file AlignmentData.h.
std::vector<PlacedVolume> dd4hep::AlignmentData::nodes |
The list of TGeoNodes (physical placements)
Definition at line 122 of file AlignmentData.h.
PlacedVolume dd4hep::AlignmentData::placement |
The subdetector placement corresponding to the actual detector element's volume.
Definition at line 128 of file AlignmentData.h.
Transform3D dd4hep::AlignmentData::trToWorld |
Transformation from volume to the world.
Definition at line 124 of file AlignmentData.h.
|
mutable |
Intermediate buffer to store the transformation to the world coordination system.
Definition at line 118 of file AlignmentData.h.