Belle II Software development
TOPGeoPMTArrayDisplacement Class Reference

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

#include <TOPGeoPMTArrayDisplacement.h>

Inheritance diagram for TOPGeoPMTArrayDisplacement:
TOPGeoBase

Public Member Functions

 TOPGeoPMTArrayDisplacement ()
 Default constructor.
 
 TOPGeoPMTArrayDisplacement (double x, double y, double alpha, const std::string &name="TOPPMTArrayDisplacement")
 Full constructor.
 
double getX () const
 Returns translation in x.
 
double getY () const
 Returns translation in y.
 
double getAlpha () const
 Returns rotation angle (around z)
 
bool isConsistent () const override
 Check for consistency of data members.
 
void print (const std::string &title="PMT array 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 (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() [1/2]

Default constructor.

Definition at line 29 of file TOPGeoPMTArrayDisplacement.h.

30 {}

◆ TOPGeoPMTArrayDisplacement() [2/2]

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.

60{return m_alpha;}

◆ getName()

const std::string & getName ( ) const
inlineinherited

Returns object name.

Returns
object name

Definition at line 51 of file TOPGeoBase.h.

51{return m_name;}
std::string m_name
geometry object name
Definition: TOPGeoBase.h:89

◆ getX()

double getX ( ) const
inline

Returns translation in x.

Returns
translation in x

Definition at line 48 of file TOPGeoPMTArrayDisplacement.h.

48{return m_x / s_unit;}
static double s_unit
conversion unit for length
Definition: TOPGeoBase.h:86

◆ getY()

double getY ( ) const
inline

Returns translation in y.

Returns
translation in y

Definition at line 54 of file TOPGeoPMTArrayDisplacement.h.

54{return m_y / s_unit;}

◆ 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.

66{return true;}

◆ setName()

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

Sets object name.

Parameters
nameobject name

Definition at line 45 of file TOPGeoBase.h.

45{m_name = name;}

Member Data Documentation

◆ m_alpha

float m_alpha = 0
private

rotation angle around z

Definition at line 78 of file TOPGeoPMTArrayDisplacement.h.

◆ m_name

std::string m_name
protectedinherited

geometry object name

Definition at line 89 of file TOPGeoBase.h.

◆ m_x

float m_x = 0
private

translation in x

Definition at line 76 of file TOPGeoPMTArrayDisplacement.h.

◆ m_y

float m_y = 0
private

translation in y

Definition at line 77 of file TOPGeoPMTArrayDisplacement.h.


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