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(),
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
◆ addComponent()
add a component to the list of components
Definition at line 39 of file GeoConfiguration.h.
std::vector< GeoComponent > m_components
list of components
◆ addMaterial()
add a material to the list of materials
Definition at line 37 of file GeoConfiguration.h.
std::vector< GeoMaterial > m_materials
list of Materials
◆ 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.
◆ 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.
◆ getGlobalMaterial()
const std::string & getGlobalMaterial |
( |
| ) |
const |
|
inline |
◆ 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.
◆ 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: