Belle II Software development
TOPGeoPrismEnclosure Class Reference

Geometry parameters of prism enclosure (simplified) More...

#include <TOPGeoPrismEnclosure.h>

Inheritance diagram for TOPGeoPrismEnclosure:
TOPGeoBase

Public Member Functions

 TOPGeoPrismEnclosure ()
 Default constructor.
 
 TOPGeoPrismEnclosure (double length, double height, double angle, double bottomThickness, double sideThickness, double backThickness, double frontThickness, double extensionThickness, const std::string &material, const std::string &name="TOPPrismEnclosure")
 Full constructor.
 
double getLength () const
 Returns full length.
 
double getBodyLength () const
 Returns length w/o back and front plates.
 
double getHeight () const
 Returns height up to the side rails.
 
double getAngle () const
 Returns angle of side wall.
 
double getBottomThickness () const
 Returns bottom thickness.
 
double getSideThickness () const
 Returns side wall thickness.
 
double getBackThickness () const
 Returns back wall thickness.
 
double getFrontThickness () const
 Returns front wall thickness.
 
double getExtensionThickness () const
 Returns extension plate thickness.
 
const std::string & getMaterial () const
 Returns material name.
 
bool isConsistent () const override
 Check for consistency of data members.
 
virtual void print (const std::string &title="QBB prism enclosure geometry 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 (TOPGeoPrismEnclosure, 1)
 ClassDef.
 

Private Attributes

float m_length = 0
 length
 
float m_height = 0
 height up to the side rails
 
float m_angle = 0
 angle of side wall
 
float m_bottomThickness = 0
 bottom thickness
 
float m_sideThickness = 0
 side wall thickness
 
float m_backThickness = 0
 back wall thickness
 
float m_frontThickness = 0
 front wall thickness
 
float m_extensionThickness = 0
 extension plate thickness
 
std::string m_material
 material name
 

Detailed Description

Geometry parameters of prism enclosure (simplified)

Definition at line 23 of file TOPGeoPrismEnclosure.h.

Constructor & Destructor Documentation

◆ TOPGeoPrismEnclosure() [1/2]

Default constructor.

Definition at line 29 of file TOPGeoPrismEnclosure.h.

30 {}

◆ TOPGeoPrismEnclosure() [2/2]

TOPGeoPrismEnclosure ( double  length,
double  height,
double  angle,
double  bottomThickness,
double  sideThickness,
double  backThickness,
double  frontThickness,
double  extensionThickness,
const std::string &  material,
const std::string &  name = "TOPPrismEnclosure" 
)
inline

Full constructor.

Parameters
lengthlength
heightheight up to the side rails
angleangle of side wall
bottomThicknessbottom thickness
sideThicknessside wall thickness
backThicknessback wall thickness
frontThicknessfront wall thickness
extensionThicknessextension plate thickness
materialmaterial name
namevolume name in Geant

Definition at line 45 of file TOPGeoPrismEnclosure.h.

54 : TOPGeoBase(name),
55 m_length(length), m_height(height), m_angle(angle),
56 m_bottomThickness(bottomThickness), m_sideThickness(sideThickness),
57 m_backThickness(backThickness), m_frontThickness(frontThickness),
58 m_extensionThickness(extensionThickness),
59 m_material(material)
60 {}
TOPGeoBase()
Default constructor.
Definition: TOPGeoBase.h:31
float m_angle
angle of side wall
std::string m_material
material name
float m_extensionThickness
extension plate thickness
float m_backThickness
back wall thickness
float m_frontThickness
front wall thickness
float m_bottomThickness
bottom thickness
float m_height
height up to the side rails
float m_sideThickness
side wall thickness

Member Function Documentation

◆ getAngle()

double getAngle ( ) const
inline

Returns angle of side wall.

Returns
angle

Definition at line 87 of file TOPGeoPrismEnclosure.h.

87{return m_angle;}

◆ getBackThickness()

double getBackThickness ( ) const
inline

Returns back wall thickness.

Returns
thickness

Definition at line 105 of file TOPGeoPrismEnclosure.h.

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

◆ getBodyLength()

double getBodyLength ( ) const
inline

Returns length w/o back and front plates.

Returns
length

Definition at line 72 of file TOPGeoPrismEnclosure.h.

73 {
75 }
double getBackThickness() const
Returns back wall thickness.
double getFrontThickness() const
Returns front wall thickness.
double getLength() const
Returns full length.

◆ getBottomThickness()

double getBottomThickness ( ) const
inline

Returns bottom thickness.

Returns
thickness

Definition at line 93 of file TOPGeoPrismEnclosure.h.

93{return m_bottomThickness / s_unit;}

◆ getExtensionThickness()

double getExtensionThickness ( ) const
inline

Returns extension plate thickness.

Returns
thickness

Definition at line 117 of file TOPGeoPrismEnclosure.h.

◆ getFrontThickness()

double getFrontThickness ( ) const
inline

Returns front wall thickness.

Returns
thickness

Definition at line 111 of file TOPGeoPrismEnclosure.h.

111{return m_frontThickness / s_unit;}

◆ getHeight()

double getHeight ( ) const
inline

Returns height up to the side rails.

Returns
height

Definition at line 81 of file TOPGeoPrismEnclosure.h.

81{return m_height / s_unit;}

◆ getLength()

double getLength ( ) const
inline

Returns full length.

Returns
length

Definition at line 66 of file TOPGeoPrismEnclosure.h.

66{return m_length / s_unit;}

◆ getMaterial()

const std::string & getMaterial ( ) const
inline

Returns material name.

Returns
material name

Definition at line 123 of file TOPGeoPrismEnclosure.h.

123{return m_material;}

◆ 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

◆ getSideThickness()

double getSideThickness ( ) const
inline

Returns side wall thickness.

Returns
thickness

Definition at line 99 of file TOPGeoPrismEnclosure.h.

99{return m_sideThickness / s_unit;}

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

float m_angle = 0
private

angle of side wall

Definition at line 141 of file TOPGeoPrismEnclosure.h.

◆ m_backThickness

float m_backThickness = 0
private

back wall thickness

Definition at line 144 of file TOPGeoPrismEnclosure.h.

◆ m_bottomThickness

float m_bottomThickness = 0
private

bottom thickness

Definition at line 142 of file TOPGeoPrismEnclosure.h.

◆ m_extensionThickness

float m_extensionThickness = 0
private

extension plate thickness

Definition at line 146 of file TOPGeoPrismEnclosure.h.

◆ m_frontThickness

float m_frontThickness = 0
private

front wall thickness

Definition at line 145 of file TOPGeoPrismEnclosure.h.

◆ m_height

float m_height = 0
private

height up to the side rails

Definition at line 140 of file TOPGeoPrismEnclosure.h.

◆ m_length

float m_length = 0
private

length

Definition at line 139 of file TOPGeoPrismEnclosure.h.

◆ m_material

std::string m_material
private

material name

Definition at line 147 of file TOPGeoPrismEnclosure.h.

◆ m_name

std::string m_name
protectedinherited

geometry object name

Definition at line 89 of file TOPGeoBase.h.

◆ m_sideThickness

float m_sideThickness = 0
private

side wall thickness

Definition at line 143 of file TOPGeoPrismEnclosure.h.


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