Belle II Software  release-08-01-10
TOPGeoPMTArrayDisplacement Class Reference

Displacement parameters of MCP-PMT array. More...

#include <TOPGeoPMTArrayDisplacement.h>

Inheritance diagram for TOPGeoPMTArrayDisplacement:
Collaboration diagram for TOPGeoPMTArrayDisplacement:

Public Member Functions

 TOPGeoPMTArrayDisplacement ()
 Default constructor.
 
 TOPGeoPMTArrayDisplacement (double x, double y, double alpha, const std::string &name="TOPPMTArrayDisplacement")
 Full constructor. More...
 
double getX () const
 Returns translation in x. More...
 
double getY () const
 Returns translation in y. More...
 
double getAlpha () const
 Returns rotation angle (around z) More...
 
bool isConsistent () const override
 Check for consistency of data members. More...
 
void print (const std::string &title="PMT array displacement parameters") 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...
 
double getReflectivity (const GeoOpticalSurface &surface, double energy) const
 Returns reflectivity of optical surface at given photon energy. More...
 

Protected Member Functions

void printUnderlined (const std::string &title) const
 Print the content of the class. More...
 
 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 (TOPGeoPMTArrayDisplacement, 1)
 ClassDef.
 

Private Attributes

float m_x = 0
 translation in x
 
float m_y = 0
 translation in y
 
float m_alpha = 0
 rotation angle around z
 

Detailed Description

Displacement parameters of MCP-PMT array.

To displace: rotation first, then translation

Definition at line 23 of file TOPGeoPMTArrayDisplacement.h.

Constructor & Destructor Documentation

◆ TOPGeoPMTArrayDisplacement()

TOPGeoPMTArrayDisplacement ( double  x,
double  y,
double  alpha,
const std::string &  name = "TOPPMTArrayDisplacement" 
)
inline

Full constructor.

Parameters
xtranslation in x
ytranslation in y
alpharotation angle around z
nameobject name

Definition at line 39 of file TOPGeoPMTArrayDisplacement.h.

40  :
41  TOPGeoBase(name), m_x(x), m_y(y), m_alpha(alpha)
42  {}
TOPGeoBase()
Default constructor.
Definition: TOPGeoBase.h:31

Member Function Documentation

◆ getAlpha()

double getAlpha ( ) const
inline

Returns rotation angle (around z)

Returns
rotation angle

Definition at line 60 of file TOPGeoPMTArrayDisplacement.h.

◆ getName()

const std::string& getName ( void  ) const
inlineinherited

Returns object name.

Returns
object name

Definition at line 51 of file TOPGeoBase.h.

◆ getX()

double getX ( ) const
inline

Returns translation in x.

Returns
translation in x

Definition at line 48 of file TOPGeoPMTArrayDisplacement.h.

◆ getY()

double getY ( ) const
inline

Returns translation in y.

Returns
translation in y

Definition at line 54 of file TOPGeoPMTArrayDisplacement.h.

◆ isConsistent()

bool isConsistent ( ) const
inlineoverridevirtual

Check for consistency of data members.

Returns
true if values consistent (valid)

Reimplemented from TOPGeoBase.

Definition at line 66 of file TOPGeoPMTArrayDisplacement.h.

◆ setName()

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

Sets object name.

Parameters
nameobject name

Definition at line 45 of file TOPGeoBase.h.


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