Belle II Software development
|
Displacement parameters of a TOP module. More...
#include <TOPGeoModuleDisplacement.h>
Public Member Functions | |
TOPGeoModuleDisplacement () | |
Default constructor. | |
TOPGeoModuleDisplacement (double x, double y, double z, double alpha, double beta, double gamma, const std::string &name="TOPModuleDisplacement") | |
Full constructor. | |
double | getX () const |
Returns translation in x. | |
double | getY () const |
Returns translation in y. | |
double | getZ () const |
Returns translation in z. | |
double | getAlpha () const |
Returns rotation angle around x. | |
double | getBeta () const |
Returns rotation angle around y. | |
double | getGamma () const |
Returns rotation angle around z. | |
ROOT::Math::Transform3D | getTransformation () const |
Returns transformation from local to nominal frame. | |
bool | isConsistent () const override |
Check for consistency of data members. | |
void | print (const std::string &title="Module displacement parameters") const override |
Print the content of the class. | |
void | setName (const std::string &name) |
Sets object name. | |
const std::string & | getName () const |
Returns object name. | |
virtual void | printSurface (const GeoOpticalSurface &surface) const |
Print the content of optical surface. | |
double | getReflectivity (const GeoOpticalSurface &surface, double energy) const |
Returns reflectivity of optical surface at given photon energy. | |
Protected Member Functions | |
void | printUnderlined (const std::string &title) const |
Print the content of the class. | |
ClassDef (TOPGeoBase, 1) | |
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 (TOPGeoModuleDisplacement, 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 | |
Displacement parameters of a TOP module.
To displace module: rotation first (around x, then y, then z), then translation (e.g. going from local to nominal frame)
Definition at line 25 of file TOPGeoModuleDisplacement.h.
|
inline |
|
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 44 of file TOPGeoModuleDisplacement.h.
|
inline |
Returns rotation angle around x.
Definition at line 74 of file TOPGeoModuleDisplacement.h.
|
inline |
Returns rotation angle around y.
Definition at line 80 of file TOPGeoModuleDisplacement.h.
|
inline |
Returns rotation angle around z.
Definition at line 86 of file TOPGeoModuleDisplacement.h.
|
inlineinherited |
|
inline |
Returns translation in x.
Definition at line 56 of file TOPGeoModuleDisplacement.h.
|
inline |
Returns translation in y.
Definition at line 62 of file TOPGeoModuleDisplacement.h.
|
inline |
Returns translation in z.
Definition at line 68 of file TOPGeoModuleDisplacement.h.
|
inlineoverridevirtual |
Check for consistency of data members.
Reimplemented from TOPGeoBase.
Definition at line 99 of file TOPGeoModuleDisplacement.h.
|
inlineinherited |
Sets object name.
name | object name |
Definition at line 45 of file TOPGeoBase.h.
|
private |
rotation angle around x
Definition at line 112 of file TOPGeoModuleDisplacement.h.
|
private |
rotation angle around y
Definition at line 113 of file TOPGeoModuleDisplacement.h.
|
private |
rotation angle around z
Definition at line 114 of file TOPGeoModuleDisplacement.h.
|
protectedinherited |
geometry object name
Definition at line 89 of file TOPGeoBase.h.
|
private |
translation in x
Definition at line 109 of file TOPGeoModuleDisplacement.h.
|
private |
translation in y
Definition at line 110 of file TOPGeoModuleDisplacement.h.
|
private |
translation in z
Definition at line 111 of file TOPGeoModuleDisplacement.h.