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

configuration of the geometry More...

#include <GeoConfiguration.h>

Inheritance diagram for GeoConfiguration:
Collaboration diagram for GeoConfiguration:

Public Member Functions

 GeoConfiguration ()=default
 empty constructor for ROOT
 
 GeoConfiguration (const std::string &name, double width, double height, double length, const std::string &material)
 Construct new geometry configuration. More...
 
void addMaterial (const GeoMaterial &material)
 add a material to the list of materials
 
void addComponent (const GeoComponent &component)
 add a component to the list of components
 
const std::string & getName () const
 get the name of the detector
 
double getGlobalWidth () const
 get the half width of the global volume, that is length in + and - x direction. More...
 
double getGlobalHeight () const
 get the half height of the global volume, that is length in + and - y direction. More...
 
double getGlobalLength () const
 get the half length of the global volume, that is length in + and - z direction. More...
 
const std::string & getGlobalMaterial () const
 get the material of the global volume
 
const std::vector< GeoMaterial > & getMaterials () const
 get List of Materials
 
const std::vector< GeoComponent > & getComponents () const
 get list of components
 

Private Member Functions

 ClassDef (GeoConfiguration, 1)
 Add ROOT reflection info.
 

Private Attributes

std::vector< GeoMaterialm_materials
 list of Materials
 
std::vector< GeoComponentm_components
 list of components
 
std::string m_name
 name of the detector configuration
 
double m_globalWidth {0}
 half width of the global volume
 
double m_globalHeight {0}
 half height of the global volume
 
double m_globalLength {0}
 half length of the global volume
 
std::string m_globalMaterial
 material of the global volume
 

Detailed Description

configuration of the geometry

Definition at line 23 of file GeoConfiguration.h.

Constructor & Destructor Documentation

◆ GeoConfiguration()

GeoConfiguration ( const std::string &  name,
double  width,
double  height,
double  length,
const std::string &  material 
)
inline

Construct new geometry configuration.

Parameters
namename of the detector
widthhalf width of the global volume
heighthalf height of the global volume
lengthhalf length of the global volume
materialmaterial of the global volume

Definition at line 34 of file GeoConfiguration.h.

34  : TObject(),
35  m_name(name), m_globalWidth(width), m_globalHeight(height), m_globalLength(length), m_globalMaterial(material) {}
double m_globalLength
half length of the global volume
double m_globalWidth
half width of the global volume
double m_globalHeight
half height of the global volume
std::string m_globalMaterial
material of the global volume
std::string m_name
name of the detector configuration

Member Function Documentation

◆ getGlobalHeight()

double getGlobalHeight ( ) const
inline

get the half height of the global volume, that is length in + and - y direction.

Will be determined automatically to fit all volumes if set to non-positive value.

Definition at line 47 of file GeoConfiguration.h.

◆ getGlobalLength()

double getGlobalLength ( ) const
inline

get the half length of the global volume, that is length in + and - z direction.

Will be determined automatically to fit all volumes if set to non-positive value.

Definition at line 50 of file GeoConfiguration.h.

◆ getGlobalWidth()

double getGlobalWidth ( ) const
inline

get the half width of the global volume, that is length in + and - x direction.

Will be determined automatically to fit all volumes if set to non-positive value.

Definition at line 44 of file GeoConfiguration.h.


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