11 #include <arich/dbobjects/ARICHGeoBase.h>
12 #include <arich/dbobjects/ARICHPositionElement.h>
15 #include <TRotation.h>
46 m_rotationInverse = 0;
57 ARICHGeoBase::operator=(align);
59 if (m_rotation)
delete m_rotation;
60 if (m_rotationInverse)
delete m_rotationInverse;
61 if (m_translation)
delete m_translation;
63 m_rotationInverse = 0;
74 if (m_rotation)
delete m_rotation;
75 if (m_rotationInverse)
delete m_rotationInverse;
76 if (m_translation)
delete m_translation;
102 void print(
const std::string& title =
"ARICH global alignment parameters")
const;
109 const TVector3&
getTranslation()
const {
if (!m_translation) setTransformation();
return *m_translation;}
117 if (!m_rotation) setTransformation();
121 TVector3 pointToGlobal(
const TVector3& point)
const;
122 TVector3 momentumToGlobal(
const TVector3& momentum)
const;
123 TVector3 pointToLocal(
const TVector3& point)
const;
124 TVector3 momentumToLocal(
const TVector3& momentum)
const;
128 void setTransformation()
const;
132 mutable TRotation* m_rotation = 0 ;
133 mutable TRotation* m_rotationInverse = 0;
134 mutable TVector3* m_translation = 0;
Base class for geometry parameters.
Geometry parameters of ARICH Master volume (envelope)
void print(const std::string &title="ARICH global alignment parameters") const
Print the content of the class.
const TRotation & getRotation() const
Get rotation matrix of ARICH master volume in global Belle II coordinates.
const ARICHPositionElement & getAlignmentElement() const
Returns alignment parameters (element)
~ARICHGlobalAlignment()
Destructor.
ARICHGlobalAlignment(const ARICHGlobalAlignment &align)
Copy constructor.
const TVector3 & getTranslation() const
Get position of ARICH master volume center point in global Belle II coordinates.
ARICHGlobalAlignment & operator=(const ARICHGlobalAlignment &align)
Assignment operator.
ClassDef(ARICHGlobalAlignment, 1)
ClassDef.
void setAlignmentElement(const ARICHPositionElement &align)
Sets alignment parameters (element)
ARICHGlobalAlignment()
Default constructor.
Position element for ARICH.
Abstract base class for different kinds of events.