Belle II Software development
ARICHGeoGlobalDisplacement.h
1/**************************************************************************
2 * basf2 (Belle II Analysis Software Framework) *
3 * Author: The Belle II Collaboration *
4 * *
5 * See git log for contributors and copyright holders. *
6 * This file is licensed under LGPL-3.0, see LICENSE.md. *
7 **************************************************************************/
8
9#pragma once
10
11#include <arich/dbobjects/ARICHGeoBase.h>
12
13namespace Belle2 {
23 public:
24
29 {}
30
40 ARICHGeoGlobalDisplacement(double x, double y, double z,
41 double alpha, double beta, double gamma):
42 m_x(x), m_y(y), m_z(z),
43 m_alpha(alpha), m_beta(beta), m_gamma(gamma)
44 {}
45
47 {}
48
53 void setX(double x) {m_x = x;}
54
59 void setY(double y) {m_y = y;}
60
65 void setZ(double z) {m_z = z;}
66
71 void setAlpha(double alpha) {m_alpha = alpha;}
72
73
78 void setBeta(double beta) {m_beta = beta;}
79
80
85 void setGamma(double gamma) {m_gamma = gamma;}
86
91 double getX() const {return m_x / s_unit;}
92
97 double getY() const {return m_y / s_unit;}
98
103 double getZ() const {return m_z / s_unit;}
104
109 double getAlpha() const {return m_alpha;}
110
115 double getBeta() const {return m_beta;}
116
121 double getGamma() const {return m_gamma;}
122
123
124 private:
125
126 float m_x = 0;
127 float m_y = 0;
128 float m_z = 0;
129 float m_alpha = 0;
130 float m_beta = 0;
131 float m_gamma = 0;
135 };
136
138} // end namespace Belle2
Base class for geometry parameters.
Definition: ARICHGeoBase.h:24
static double s_unit
conversion unit for length
Definition: ARICHGeoBase.h:83
Global displacement parameters for ARICH.
double getGamma() const
Returns rotation angle around z.
double getX() const
Returns translation in x.
void setBeta(double beta)
Sets rotation around y.
void setZ(double z)
Sets translation in z.
double getAlpha() const
Returns rotation angle around x.
void setAlpha(double alpha)
Sets rotation around x.
void setY(double y)
Sets translation in y.
ClassDef(ARICHGeoGlobalDisplacement, 1)
ClassDef.
void setGamma(double gamma)
Sets rotation around z.
double getZ() const
Returns translation in z.
void setX(double x)
Sets translation in x.
double getY() const
Returns translation in y.
ARICHGeoGlobalDisplacement(double x, double y, double z, double alpha, double beta, double gamma)
Full constructor.
double getBeta() const
Returns rotation angle around y.
Abstract base class for different kinds of events.