configuration of the geometry
More...
#include <GeoConfiguration.h>
|
| 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
|
|
configuration of the geometry
Definition at line 23 of file GeoConfiguration.h.
◆ GeoConfiguration()
GeoConfiguration |
( |
const std::string & | name, |
|
|
double | width, |
|
|
double | height, |
|
|
double | length, |
|
|
const std::string & | material ) |
|
inline |
Construct new geometry configuration.
- Parameters
-
name | name of the detector |
width | half width of the global volume |
height | half height of the global volume |
length | half length of the global volume |
material | material 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) {}
◆ addComponent()
add a component to the list of components
Definition at line 39 of file GeoConfiguration.h.
39{ m_components.emplace_back(component); }
◆ addMaterial()
add a material to the list of materials
Definition at line 37 of file GeoConfiguration.h.
37{ m_materials.emplace_back(material); }
◆ getComponents()
◆ 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 |
◆ getName()
const std::string & getName |
( |
| ) |
const |
|
inline |
◆ m_components
◆ m_globalHeight
double m_globalHeight {0} |
|
private |
◆ m_globalLength
double m_globalLength {0} |
|
private |
◆ m_globalMaterial
std::string m_globalMaterial |
|
private |
◆ m_globalWidth
◆ m_materials
◆ m_name
The documentation for this class was generated from the following file: