Belle II Software
release-08-01-10
|
Class to represent a material informaion in the Database. More...
#include <GeoMaterial.h>
Public Member Functions | |
GeoMaterial ()=default | |
default constructor | |
void | setName (const std::string &name) |
set the name of the material | |
void | setState (int state) |
set the state of the material | |
void | setDensity (double density) |
set the density of the material (in default framework units | |
void | setTemperature (double temperature) |
set the temperature of the material (in default framework units | |
void | setPressure (double pressure) |
set the pressure of the material (in default framework units | |
void | addComponent (const GeoMaterialComponent &component) |
add a component to the material. More... | |
void | addProperty (const GeoMaterialProperty &property) |
add a property to the material | |
const std::string & | getName () const |
get the name of the material | |
int | getState () const |
get the state of the material | |
double | getDensity () const |
get the density of the material (in default framework units | |
double | getTemperature () const |
get the temperature of the material (in default framework units | |
double | getPressure () const |
get the pressure of the material (in default framework units | |
std::vector< GeoMaterialComponent > & | getComponents () |
get all components | |
const std::vector< GeoMaterialComponent > & | getComponents () const |
get all components | |
const std::vector< GeoMaterialProperty > & | getProperties () const |
get all properties | |
bool | hasProperties () const |
check if the material has at least one property More... | |
Private Member Functions | |
ClassDef (GeoMaterial, 1) | |
reflection info for ROOT | |
Private Attributes | |
std::string | m_name {""} |
name of the material | |
int | m_state {0} |
Geant4 state of the material. | |
double | m_density {0} |
density of the material | |
double | m_temperature {0} |
temperature of the material | |
double | m_pressure {0} |
pressure of the material | |
std::vector< GeoMaterialComponent > | m_components |
components of this material | |
std::vector< GeoMaterialProperty > | m_properties |
properties of this material | |
Class to represent a material informaion in the Database.
Definition at line 22 of file GeoMaterial.h.
|
inline |
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.
|
inline |
check if the material has at least one property
Definition at line 58 of file GeoMaterial.h.