Belle II Software light-2406-ragdoll
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.
 
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.
 
double getGlobalHeight () const
 get the half height of the global volume, that is length in + and - y direction.
 
double getGlobalLength () const
 get the half length of the global volume, that is length in + and - z direction.
 
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

◆ addComponent()

void addComponent ( const GeoComponent component)
inline

add a component to the list of components

Definition at line 39 of file GeoConfiguration.h.

39{ m_components.emplace_back(component); }
std::vector< GeoComponent > m_components
list of components

◆ addMaterial()

void addMaterial ( const GeoMaterial material)
inline

add a material to the list of materials

Definition at line 37 of file GeoConfiguration.h.

37{ m_materials.emplace_back(material); }
std::vector< GeoMaterial > m_materials
list of Materials

◆ getComponents()

const std::vector< GeoComponent > & getComponents ( ) const
inline

get list of components

Definition at line 56 of file GeoConfiguration.h.

56{ return m_components; }

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

47{ return m_globalHeight; }

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

50{ return m_globalLength; }

◆ getGlobalMaterial()

const std::string & getGlobalMaterial ( ) const
inline

get the material of the global volume

Definition at line 52 of file GeoConfiguration.h.

52{ return m_globalMaterial; }

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

44{ return m_globalWidth; }

◆ getMaterials()

const std::vector< GeoMaterial > & getMaterials ( ) const
inline

get List of Materials

Definition at line 54 of file GeoConfiguration.h.

54{ return m_materials; }

◆ getName()

const std::string & getName ( ) const
inline

get the name of the detector

Definition at line 41 of file GeoConfiguration.h.

41{ return m_name; }

Member Data Documentation

◆ m_components

std::vector<GeoComponent> m_components
private

list of components

Definition at line 61 of file GeoConfiguration.h.

◆ m_globalHeight

double m_globalHeight {0}
private

half height of the global volume

Definition at line 67 of file GeoConfiguration.h.

◆ m_globalLength

double m_globalLength {0}
private

half length of the global volume

Definition at line 69 of file GeoConfiguration.h.

◆ m_globalMaterial

std::string m_globalMaterial
private

material of the global volume

Definition at line 71 of file GeoConfiguration.h.

◆ m_globalWidth

double m_globalWidth {0}
private

half width of the global volume

Definition at line 65 of file GeoConfiguration.h.

◆ m_materials

std::vector<GeoMaterial> m_materials
private

list of Materials

Definition at line 59 of file GeoConfiguration.h.

◆ m_name

std::string m_name
private

name of the detector configuration

Definition at line 63 of file GeoConfiguration.h.


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