Belle II Software development
TOPGeoBase Class Reference

Base class for geometry parameters. More...

#include <TOPGeoBase.h>

Inheritance diagram for TOPGeoBase:
TOPGeoBarSegment TOPGeoColdPlate TOPGeoEndPlate TOPGeoFrontEnd TOPGeoHoneycombPanel TOPGeoModule TOPGeoModuleDisplacement TOPGeoPMT TOPGeoPMTArray TOPGeoPMTArrayDisplacement TOPGeoPrismEnclosure TOPGeoQBB TOPGeoSideRails TOPGeometry TOPNominalQE TOPNominalTDC TOPNominalTTS TOPWavelengthFilter

Public Member Functions

 TOPGeoBase ()
 Default constructor.
 
 TOPGeoBase (const std::string &name)
 Constructor with name.
 
void setName (const std::string &name)
 Sets object name.
 
const std::string & getName () const
 Returns object name.
 
virtual bool isConsistent () const
 Check for consistency of data members.
 
virtual void print (const std::string &title) const
 Print the content of the class.
 
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
 

Detailed Description

Base class for geometry parameters.

Definition at line 25 of file TOPGeoBase.h.

Constructor & Destructor Documentation

◆ TOPGeoBase() [1/2]

TOPGeoBase ( )
inline

Default constructor.

Definition at line 31 of file TOPGeoBase.h.

32 {}

◆ TOPGeoBase() [2/2]

TOPGeoBase ( const std::string &  name)
inlineexplicit

Constructor with name.

Parameters
nameobject name

Definition at line 38 of file TOPGeoBase.h.

38 : m_name(name)
39 {}
std::string m_name
geometry object name
Definition: TOPGeoBase.h:89

Member Function Documentation

◆ getName()

const std::string & getName ( ) const
inline

Returns object name.

Returns
object name

Definition at line 51 of file TOPGeoBase.h.

51{return m_name;}

◆ isConsistent()

virtual bool isConsistent ( ) const
inlinevirtual

◆ setName()

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

Sets object name.

Parameters
nameobject name

Definition at line 45 of file TOPGeoBase.h.

45{m_name = name;}

Member Data Documentation

◆ m_name

std::string m_name
protected

geometry object name

Definition at line 89 of file TOPGeoBase.h.


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