Class to represent a material informaion in the Database.
More...
#include <GeoMaterial.h>
Class to represent a material informaion in the Database.
Definition at line 22 of file GeoMaterial.h.
◆ addComponent()
add a component to the material.
Fall fractions should add up to one but this is not verified
Definition at line 37 of file GeoMaterial.h.
std::vector< GeoMaterialComponent > m_components
components of this material
◆ addProperty()
add a property to the material
Definition at line 39 of file GeoMaterial.h.
std::vector< GeoMaterialProperty > m_properties
properties of this material
◆ getComponents() [1/2]
◆ getComponents() [2/2]
◆ getDensity()
double getDensity |
( |
| ) |
const |
|
inline |
get the density of the material (in default framework units
Definition at line 45 of file GeoMaterial.h.
double m_density
density of the material
◆ getName()
const std::string & getName |
( |
| ) |
const |
|
inline |
get the name of the material
Definition at line 41 of file GeoMaterial.h.
std::string m_name
name of the material
◆ getPressure()
double getPressure |
( |
| ) |
const |
|
inline |
get the pressure of the material (in default framework units
Definition at line 49 of file GeoMaterial.h.
double m_pressure
pressure of the material
◆ getProperties()
◆ getState()
get the state of the material
Definition at line 43 of file GeoMaterial.h.
int m_state
Geant4 state of the material.
◆ getTemperature()
double getTemperature |
( |
| ) |
const |
|
inline |
get the temperature of the material (in default framework units
Definition at line 47 of file GeoMaterial.h.
double m_temperature
temperature of the material
◆ hasProperties()
bool hasProperties |
( |
| ) |
const |
|
inline |
check if the material has at least one property
- Returns
- true if there is at least one property
Definition at line 58 of file GeoMaterial.h.
◆ setDensity()
void setDensity |
( |
double |
density | ) |
|
|
inline |
set the density of the material (in default framework units
Definition at line 31 of file GeoMaterial.h.
◆ setName()
void setName |
( |
const std::string & |
name | ) |
|
|
inline |
◆ setPressure()
void setPressure |
( |
double |
pressure | ) |
|
|
inline |
set the pressure of the material (in default framework units
Definition at line 35 of file GeoMaterial.h.
◆ setState()
void setState |
( |
int |
state | ) |
|
|
inline |
◆ setTemperature()
void setTemperature |
( |
double |
temperature | ) |
|
|
inline |
set the temperature of the material (in default framework units
Definition at line 33 of file GeoMaterial.h.
◆ m_components
◆ m_density
◆ m_name
◆ m_pressure
◆ m_properties
◆ m_state
◆ m_temperature
The documentation for this class was generated from the following file: