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

Class describing an condition to re-adjust an alignment. More...

#include <AlignmentData.h>

Public Types

enum  AlignmentFlags { HAVE_NONE = 0, HAVE_TRANSLATION = 1<<2, HAVE_ROTATION = 1<<3, HAVE_PIVOT = 1<<4 }
 
typedef Translation3D Pivot
 

Public Member Functions

 Delta ()=default
 Default constructor. More...
 
 Delta (const Position &tr)
 Initializing constructor. More...
 
 Delta (const RotationZYX &rot)
 Initializing constructor. More...
 
 Delta (const Position &tr, const RotationZYX &rot)
 Initializing constructor. More...
 
 Delta (const Translation3D &piv, const RotationZYX &rot)
 Initializing constructor. More...
 
 Delta (const Position &tr, const Translation3D &piv, const RotationZYX &rot)
 Initializing constructor. More...
 
 Delta (const Delta &c)
 Copy constructor. More...
 
 ~Delta ()
 Default destructor. More...
 
Deltaoperator= (const Delta &c)
 Assignment operator. More...
 
void clear ()
 Reset information to identity. More...
 
bool checkFlag (unsigned int mask) const
 Check a given flag. More...
 
void setFlag (unsigned int mask)
 Check a given flag. More...
 
bool hasTranslation () const
 Access flags: Check if the delta operation contains a translation. More...
 
bool hasRotation () const
 Access flags: Check if the delta operation contains a rotation. More...
 
bool hasPivot () const
 Access flags: Check if the delta operation contains a pivot. More...
 
void computeMatrix (TGeoHMatrix &tr_delta) const
 Compute the alignment delta for one detector element and its alignment condition. More...
 

Public Attributes

Position translation
 
Pivot pivot
 
RotationZYX rotation
 
unsigned int flags = 0
 

Detailed Description

Class describing an condition to re-adjust an alignment.

Author
M.Frank
Version
1.0

Definition at line 38 of file AlignmentData.h.

Member Typedef Documentation

◆ Pivot

Definition at line 40 of file AlignmentData.h.

Member Enumeration Documentation

◆ AlignmentFlags

Enumerator
HAVE_NONE 
HAVE_TRANSLATION 
HAVE_ROTATION 
HAVE_PIVOT 

Definition at line 46 of file AlignmentData.h.

Constructor & Destructor Documentation

◆ Delta() [1/7]

dd4hep::Delta::Delta ( )
default

Default constructor.

◆ Delta() [2/7]

dd4hep::Delta::Delta ( const Position tr)
inline

Initializing constructor.

Definition at line 56 of file AlignmentData.h.

◆ Delta() [3/7]

dd4hep::Delta::Delta ( const RotationZYX rot)
inline

Initializing constructor.

Definition at line 59 of file AlignmentData.h.

◆ Delta() [4/7]

dd4hep::Delta::Delta ( const Position tr,
const RotationZYX rot 
)
inline

Initializing constructor.

Definition at line 62 of file AlignmentData.h.

◆ Delta() [5/7]

dd4hep::Delta::Delta ( const Translation3D piv,
const RotationZYX rot 
)
inline

Initializing constructor.

Definition at line 65 of file AlignmentData.h.

◆ Delta() [6/7]

dd4hep::Delta::Delta ( const Position tr,
const Translation3D piv,
const RotationZYX rot 
)
inline

Initializing constructor.

Definition at line 68 of file AlignmentData.h.

◆ Delta() [7/7]

Delta::Delta ( const Delta c)

Copy constructor.

Definition at line 31 of file AlignmentData.cpp.

◆ ~Delta()

Delta::~Delta ( )

Default destructor.

Definition at line 37 of file AlignmentData.cpp.

Member Function Documentation

◆ checkFlag()

bool dd4hep::Delta::checkFlag ( unsigned int  mask) const
inline

Check a given flag.

Definition at line 79 of file AlignmentData.h.

◆ clear()

void Delta::clear ( )

Reset information to identity.

Definition at line 52 of file AlignmentData.cpp.

◆ computeMatrix()

void Delta::computeMatrix ( TGeoHMatrix &  tr_delta) const

Compute the alignment delta for one detector element and its alignment condition.

Definition at line 60 of file AlignmentData.cpp.

◆ hasPivot()

bool dd4hep::Delta::hasPivot ( ) const
inline

Access flags: Check if the delta operation contains a pivot.

Definition at line 87 of file AlignmentData.h.

◆ hasRotation()

bool dd4hep::Delta::hasRotation ( ) const
inline

Access flags: Check if the delta operation contains a rotation.

Definition at line 85 of file AlignmentData.h.

◆ hasTranslation()

bool dd4hep::Delta::hasTranslation ( ) const
inline

Access flags: Check if the delta operation contains a translation.

Definition at line 83 of file AlignmentData.h.

◆ operator=()

Delta & Delta::operator= ( const Delta c)

Assignment operator.

Definition at line 41 of file AlignmentData.cpp.

◆ setFlag()

void dd4hep::Delta::setFlag ( unsigned int  mask)
inline

Check a given flag.

Definition at line 81 of file AlignmentData.h.

Member Data Documentation

◆ flags

unsigned int dd4hep::Delta::flags = 0

Definition at line 44 of file AlignmentData.h.

◆ pivot

Pivot dd4hep::Delta::pivot

Definition at line 42 of file AlignmentData.h.

◆ rotation

RotationZYX dd4hep::Delta::rotation

Definition at line 43 of file AlignmentData.h.

◆ translation

Position dd4hep::Delta::translation

Definition at line 41 of file AlignmentData.h.


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