Belle II Software  release-08-02-06
ARICHGeoGlobalDisplacement Class Reference

Global displacement parameters for ARICH. More...

#include <ARICHGeoGlobalDisplacement.h>

Inheritance diagram for ARICHGeoGlobalDisplacement:
Collaboration diagram for ARICHGeoGlobalDisplacement:

Public Member Functions

 ARICHGeoGlobalDisplacement ()
 Default constructor.
 
 ARICHGeoGlobalDisplacement (double x, double y, double z, double alpha, double beta, double gamma)
 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 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...
 
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...
 
void setName (const std::string &name)
 Sets object name. More...
 
const std::string & getName () const
 Returns object name. More...
 
virtual bool isConsistent () const
 Check for consistency of data members. More...
 
virtual void print (const std::string &title) const
 Print the content of the class. 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

 ClassDef (ARICHGeoGlobalDisplacement, 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
 

Detailed Description

Global displacement parameters for ARICH.

Definition at line 22 of file ARICHGeoGlobalDisplacement.h.

Constructor & Destructor Documentation

◆ ARICHGeoGlobalDisplacement()

ARICHGeoGlobalDisplacement ( double  x,
double  y,
double  z,
double  alpha,
double  beta,
double  gamma 
)
inline

Full constructor.

Parameters
xdisplacement in x
ydisplacement in y
zdisplacement in z
alpharotation angle around x
betarotation angle around y
gammarotation angle around z

Definition at line 40 of file ARICHGeoGlobalDisplacement.h.

41  :
42  m_x(x), m_y(y), m_z(z),
43  m_alpha(alpha), m_beta(beta), m_gamma(gamma)
44  {}

Member Function Documentation

◆ getAlpha()

double getAlpha ( ) const
inline

Returns rotation angle around x.

Returns
rotation angle

Definition at line 109 of file ARICHGeoGlobalDisplacement.h.

◆ getBeta()

double getBeta ( ) const
inline

Returns rotation angle around y.

Returns
rotation angle

Definition at line 115 of file ARICHGeoGlobalDisplacement.h.

◆ getGamma()

double getGamma ( ) const
inline

Returns rotation angle around z.

Returns
rotation angle

Definition at line 121 of file ARICHGeoGlobalDisplacement.h.

◆ getName()

const std::string& getName ( ) const
inlineinherited

Returns object name.

Returns
object name

Definition at line 49 of file ARICHGeoBase.h.

◆ getX()

double getX ( ) const
inline

Returns translation in x.

Returns
x coordinate

Definition at line 91 of file ARICHGeoGlobalDisplacement.h.

◆ getY()

double getY ( ) const
inline

Returns translation in y.

Returns
y coordinate

Definition at line 97 of file ARICHGeoGlobalDisplacement.h.

◆ getZ()

double getZ ( ) const
inline

Returns translation in z.

Returns
z coordinate

Definition at line 103 of file ARICHGeoGlobalDisplacement.h.

◆ isConsistent()

virtual bool isConsistent ( ) const
inlinevirtualinherited

Check for consistency of data members.

Returns
true if values consistent (valid)

Reimplemented in ARICHPositionElement, ARICHGeoSupport, ARICHGeoMirrors, ARICHGeoMasterVolume, ARICHGeoHAPD, ARICHGeoDetectorPlane, and ARICHGeoAerogelPlane.

Definition at line 55 of file ARICHGeoBase.h.

◆ print()

◆ printPlacement()

void printPlacement ( double  x,
double  y,
double  z,
double  rx,
double  ry,
double  rz 
) const
virtualinherited

Print volume positioning parameters.

Parameters
xx position
yy position
zz position
rxrotation around x-axis
ryrotation around y-axis
rzrotation around z-axis

Definition at line 25 of file ARICHGeoBase.cc.

◆ printSurface()

void printSurface ( const GeoOpticalSurface surface) const
virtualinherited

Print the content of optical surface.

Parameters
surfaceoptical surface parameters

Definition at line 32 of file ARICHGeoBase.cc.

◆ setAlpha()

void setAlpha ( double  alpha)
inline

Sets rotation around x.

Parameters
alpharotation angle around x

Definition at line 71 of file ARICHGeoGlobalDisplacement.h.

◆ setBeta()

void setBeta ( double  beta)
inline

Sets rotation around y.

Parameters
alpharotation angle around y

Definition at line 78 of file ARICHGeoGlobalDisplacement.h.

◆ setGamma()

void setGamma ( double  gamma)
inline

Sets rotation around z.

Parameters
alpharotation angle around z

Definition at line 85 of file ARICHGeoGlobalDisplacement.h.

◆ setName()

void setName ( const std::string &  name)
inlineinherited

Sets object name.

Parameters
nameobject name

Definition at line 43 of file ARICHGeoBase.h.

◆ setX()

void setX ( double  x)
inline

Sets translation in x.

Parameters
xtranslation in x

Definition at line 53 of file ARICHGeoGlobalDisplacement.h.

◆ setY()

void setY ( double  y)
inline

Sets translation in y.

Parameters
ytranslation in y

Definition at line 59 of file ARICHGeoGlobalDisplacement.h.

◆ setZ()

void setZ ( double  z)
inline

Sets translation in z.

Parameters
ztranslation in z

Definition at line 65 of file ARICHGeoGlobalDisplacement.h.


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