Belle II Software
release-08-01-10
|
Position element for ARICH. More...
#include <ARICHPositionElement.h>
Public Member Functions | |
ARICHPositionElement () | |
Default constructor. | |
ARICHPositionElement (double x, double y, double z, double alpha, double beta, double gamma, const std::string &name="ARICHAlignment") | |
Full constructor. More... | |
void | setX (double x) |
Sets translation in x. More... | |
void | setY (double y) |
Sets translation in y. More... | |
void | setZ (double z) |
Sets translation in z. More... | |
void | setRPhi (double r, double phi) |
Sets x,y from r,phi. More... | |
void | setAlpha (double alpha) |
Sets rotation around x. More... | |
void | setBeta (double beta) |
Sets rotation around y. More... | |
void | setGamma (double gamma) |
Sets rotation around z. More... | |
void | addShift (double dx, double dy, double dz, double dalpha, double dbeta, double dgamma) |
Shift the existing values of parameters. More... | |
double | getX () const |
Returns translation in x. More... | |
double | getY () const |
Returns translation in y. More... | |
double | getZ () const |
Returns translation in z. More... | |
double | getAlpha () const |
Returns rotation angle around x. More... | |
double | getBeta () const |
Returns rotation angle around y. More... | |
double | getGamma () const |
Returns rotation angle around z. More... | |
TRotation | getRotation () const |
Returns rotation matrix. More... | |
TVector3 | getTranslation () const |
Returns translation vector (always in basf2 units!) More... | |
bool | isConsistent () const override |
Check for consistency of data members. More... | |
void | print (const std::string &title="Parmeters of position element") const override |
Print the content of the class. More... | |
void | setName (const std::string &name) |
Sets object name. More... | |
const std::string & | getName () const |
Returns object name. More... | |
virtual void | printSurface (const GeoOpticalSurface &surface) const |
Print the content of optical surface. More... | |
virtual void | printPlacement (double x, double y, double z, double rx, double ry, double rz) const |
Print volume positioning parameters. More... | |
Protected Member Functions | |
ClassDef (ARICHGeoBase, 2) | |
ClassDef. | |
Protected Attributes | |
std::string | m_name |
geometry object name | |
Static Protected Attributes | |
static double | s_unit = Unit::cm |
conversion unit for length | |
static std::string | s_unitName |
conversion unit name | |
Private Member Functions | |
ClassDefOverride (ARICHPositionElement, 1) | |
ClassDef. | |
Private Attributes | |
float | m_x = 0 |
translation in x | |
float | m_y = 0 |
translation in y | |
float | m_z = 0 |
translation in z | |
float | m_alpha = 0 |
rotation angle around x | |
float | m_beta = 0 |
rotation angle around y | |
float | m_gamma = 0 |
rotation angle around z | |
Position element for ARICH.
Holding parameters for displacement and alignment of arich components
Definition at line 26 of file ARICHPositionElement.h.
|
inline |
Full constructor.
x | translation in x |
y | translation in y |
z | translation in z |
alpha | rotation angle around x |
beta | rotation angle around y |
gamma | rotation angle around z |
name | object name |
Definition at line 45 of file ARICHPositionElement.h.
|
inline |
Shift the existing values of parameters.
dx | translation in x |
dy | translation in y |
dz | translation in z |
dalpha | rotation angle around x |
dbeta | rotation angle around y |
dgamma | rotation angle around z |
Definition at line 113 of file ARICHPositionElement.h.
|
inline |
Returns rotation angle around x.
Definition at line 145 of file ARICHPositionElement.h.
|
inline |
Returns rotation angle around y.
Definition at line 151 of file ARICHPositionElement.h.
|
inline |
Returns rotation angle around z.
Definition at line 157 of file ARICHPositionElement.h.
|
inlineinherited |
|
inline |
Returns rotation matrix.
Definition at line 163 of file ARICHPositionElement.h.
|
inline |
Returns translation vector (always in basf2 units!)
Definition at line 174 of file ARICHPositionElement.h.
|
inline |
Returns translation in x.
Definition at line 127 of file ARICHPositionElement.h.
|
inline |
Returns translation in y.
Definition at line 133 of file ARICHPositionElement.h.
|
inline |
Returns translation in z.
Definition at line 139 of file ARICHPositionElement.h.
|
inlineoverridevirtual |
Check for consistency of data members.
Reimplemented from ARICHGeoBase.
Definition at line 180 of file ARICHPositionElement.h.
|
inlineoverridevirtual |
Print the content of the class.
title | title to be printed |
Reimplemented from ARICHGeoBase.
Definition at line 186 of file ARICHPositionElement.h.
|
virtualinherited |
Print volume positioning parameters.
x | x position |
y | y position |
z | z position |
rx | rotation around x-axis |
ry | rotation around y-axis |
rz | rotation around z-axis |
Definition at line 25 of file ARICHGeoBase.cc.
|
virtualinherited |
Print the content of optical surface.
surface | optical surface parameters |
Definition at line 32 of file ARICHGeoBase.cc.
|
inline |
Sets rotation around x.
alpha | rotation angle around x |
Definition at line 88 of file ARICHPositionElement.h.
|
inline |
Sets rotation around y.
alpha | rotation angle around y |
Definition at line 95 of file ARICHPositionElement.h.
|
inline |
Sets rotation around z.
alpha | rotation angle around z |
Definition at line 102 of file ARICHPositionElement.h.
|
inlineinherited |
|
inline |
Sets x,y from r,phi.
r | radius |
phi | phi angle |
Definition at line 78 of file ARICHPositionElement.h.
|
inline |
Sets translation in x.
x | translation in x |
Definition at line 59 of file ARICHPositionElement.h.
|
inline |
Sets translation in y.
y | translation in y |
Definition at line 65 of file ARICHPositionElement.h.
|
inline |
Sets translation in z.
z | translation in z |
Definition at line 71 of file ARICHPositionElement.h.