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

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)
 Copy constructor. More...
 
virtual ~AlignmentData ()
 Default destructor. More...
 
AlignmentDataoperator= (const AlignmentData &copy)
 Assignment operator necessary due to copy constructor. More...
 
AlignmentDatadata ()
 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 Transform3DlocalToWorld () 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< PlacedVolumenodes
 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...
 

Detailed Description

Derived condition data-object definition.

Author
M.Frank
Version
1.0

Definition at line 98 of file AlignmentData.h.

Member Typedef Documentation

◆ BitMask

typedef unsigned int dd4hep::AlignmentData::BitMask

Forward declaration of the utility bit mask.

Definition at line 101 of file AlignmentData.h.

Member Enumeration Documentation

◆ AlignmentFlags

Enumerator
HAVE_NONE 
HAVE_WORLD_TRAFO 
HAVE_PARENT_TRAFO 
HAVE_OTHER 

Definition at line 103 of file AlignmentData.h.

◆ DataType

Enumerator
IDEAL 
SURVEY 
TIME_STAMPED 

Definition at line 109 of file AlignmentData.h.

Constructor & Destructor Documentation

◆ AlignmentData() [1/2]

AlignmentData::AlignmentData ( )

Standard constructor.

Definition at line 99 of file AlignmentData.cpp.

◆ AlignmentData() [2/2]

AlignmentData::AlignmentData ( const AlignmentData copy)

Copy constructor.

Definition at line 106 of file AlignmentData.cpp.

◆ ~AlignmentData()

AlignmentData::~AlignmentData ( )
virtual

Default destructor.

Definition at line 116 of file AlignmentData.cpp.

Member Function Documentation

◆ data()

AlignmentData& dd4hep::AlignmentData::data ( )
inline

Data accessor for decorator.

Definition at line 144 of file AlignmentData.h.

◆ detectorToLocal() [1/4]

Position dd4hep::AlignmentData::detectorToLocal ( const Double_t  det[3]) const
inline

Transformation from detector element coordinates to the local placed volume coordinates.

Definition at line 195 of file AlignmentData.h.

◆ detectorToLocal() [2/4]

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.

◆ detectorToLocal() [3/4]

Position AlignmentData::detectorToLocal ( const Position detector) const

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.

◆ detectorToLocal() [4/4]

void AlignmentData::detectorToLocal ( const Position detector,
Position local 
) const

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.

◆ detectorTransformation()

const TGeoHMatrix& dd4hep::AlignmentData::detectorTransformation ( ) const
inline

Access the alignment/placement matrix with respect to the world.

Definition at line 150 of file AlignmentData.h.

◆ localToDetector() [1/4]

Position dd4hep::AlignmentData::localToDetector ( const Double_t  local[3]) const
inline

Transformation from local coordinates of the placed volume to the world system.

Definition at line 184 of file AlignmentData.h.

◆ localToDetector() [2/4]

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.

◆ localToDetector() [3/4]

Position AlignmentData::localToDetector ( const Position local) const

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.

◆ localToDetector() [4/4]

void AlignmentData::localToDetector ( const Position local,
Position detector 
) const

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.

◆ localToWorld() [1/5]

const Transform3D& dd4hep::AlignmentData::localToWorld ( ) const
inline

Access the currently applied alignment/placement matrix.

Definition at line 152 of file AlignmentData.h.

◆ localToWorld() [2/5]

Position dd4hep::AlignmentData::localToWorld ( const Double_t  local[3]) const
inline

Transformation from local coordinates of the placed volume to the world system.

Definition at line 162 of file AlignmentData.h.

◆ localToWorld() [3/5]

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.

◆ localToWorld() [4/5]

Position AlignmentData::localToWorld ( const Position local) const

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.

◆ localToWorld() [5/5]

void AlignmentData::localToWorld ( const Position local,
Position global 
) const

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.

◆ nominal()

Alignment AlignmentData::nominal ( ) const

Access the ideal/nominal alignment/placement matrix.

Definition at line 229 of file AlignmentData.cpp.

◆ operator=()

AlignmentData & AlignmentData::operator= ( const AlignmentData copy)

Assignment operator necessary due to copy constructor.

Definition at line 121 of file AlignmentData.cpp.

◆ worldToLocal() [1/4]

Position dd4hep::AlignmentData::worldToLocal ( const Double_t  global[3]) const
inline

Transformation from local coordinates of the placed volume to the world system.

Definition at line 173 of file AlignmentData.h.

◆ worldToLocal() [2/4]

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.

◆ worldToLocal() [3/4]

Position AlignmentData::worldToLocal ( const Position global) const

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.

◆ worldToLocal() [4/4]

void AlignmentData::worldToLocal ( const Position global,
Position local 
) const

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.

◆ worldTransformation()

const TGeoHMatrix& dd4hep::AlignmentData::worldTransformation ( ) const
inline

Create cached matrix to transform to world coordinates.

Definition at line 148 of file AlignmentData.h.

Member Data Documentation

◆ delta

Delta dd4hep::AlignmentData::delta

Alignment changes.

Definition at line 116 of file AlignmentData.h.

◆ detector

DetElement dd4hep::AlignmentData::detector

Reference to the next hosting detector element.

Definition at line 126 of file AlignmentData.h.

◆ detectorTrafo

TGeoHMatrix dd4hep::AlignmentData::detectorTrafo
mutable

Intermediate buffer to store the transformation to the parent detector element.

Definition at line 120 of file AlignmentData.h.

◆ flag

BitMask dd4hep::AlignmentData::flag
mutable

Flag to remember internally calculated quatities.

Definition at line 130 of file AlignmentData.h.

◆ magic

unsigned int dd4hep::AlignmentData::magic

Magic word to verify object if necessary.

Definition at line 132 of file AlignmentData.h.

◆ nodes

std::vector<PlacedVolume> dd4hep::AlignmentData::nodes

The list of TGeoNodes (physical placements)

Definition at line 122 of file AlignmentData.h.

◆ placement

PlacedVolume dd4hep::AlignmentData::placement

The subdetector placement corresponding to the actual detector element's volume.

Definition at line 128 of file AlignmentData.h.

◆ trToWorld

Transform3D dd4hep::AlignmentData::trToWorld

Transformation from volume to the world.

Definition at line 124 of file AlignmentData.h.

◆ worldTrafo

TGeoHMatrix dd4hep::AlignmentData::worldTrafo
mutable

Intermediate buffer to store the transformation to the world coordination system.

Definition at line 118 of file AlignmentData.h.


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