Belle II Software development
GeoMaterialComponent Class Reference

Component of a material. More...

#include <GeoMaterialComponent.h>

Inheritance diagram for GeoMaterialComponent:

Public Member Functions

 GeoMaterialComponent ()=default
 default constructor
 
 GeoMaterialComponent (const std::string &name, bool isElement, double fraction)
 full constructor
 
void setName (const std::string &name)
 set name of the component
 
void setIselement (bool isElement)
 set true if the component is a chemical element, false if it is a composite material
 
void setFraction (double fraction)
 set fraction of the component from the full materials
 
const std::string & getName () const
 get name of the component
 
bool getIselement () const
 get true if the component is a chemical element, false if it is a composite material
 
double getFraction () const
 get fraction of the component from the full materials
 

Private Member Functions

 ClassDef (GeoMaterialComponent, 1)
 Add ROOT reflection info.
 

Private Attributes

std::string m_name
 name of the component
 
bool m_isElement
 true if the component is a chemical element, false if it is a composite material
 
double m_fraction
 fraction of the component from the full materials
 

Detailed Description

Component of a material.

Definition at line 19 of file GeoMaterialComponent.h.

Constructor & Destructor Documentation

◆ GeoMaterialComponent()

GeoMaterialComponent ( const std::string &  name,
bool  isElement,
double  fraction 
)
inline

full constructor

Definition at line 24 of file GeoMaterialComponent.h.

24 :
25 m_name(name), m_isElement(isElement), m_fraction(fraction) {}
bool m_isElement
true if the component is a chemical element, false if it is a composite material
double m_fraction
fraction of the component from the full materials
std::string m_name
name of the component

Member Function Documentation

◆ getFraction()

double getFraction ( ) const
inline

get fraction of the component from the full materials

Definition at line 37 of file GeoMaterialComponent.h.

37{ return m_fraction; }

◆ getIselement()

bool getIselement ( ) const
inline

get true if the component is a chemical element, false if it is a composite material

Definition at line 35 of file GeoMaterialComponent.h.

35{ return m_isElement; }

◆ getName()

const std::string & getName ( ) const
inline

get name of the component

Definition at line 33 of file GeoMaterialComponent.h.

33{ return m_name; }

◆ setFraction()

void setFraction ( double  fraction)
inline

set fraction of the component from the full materials

Definition at line 31 of file GeoMaterialComponent.h.

31{ m_fraction = fraction; }

◆ setIselement()

void setIselement ( bool  isElement)
inline

set true if the component is a chemical element, false if it is a composite material

Definition at line 29 of file GeoMaterialComponent.h.

29{ m_isElement = isElement; }

◆ setName()

void setName ( const std::string &  name)
inline

set name of the component

Definition at line 27 of file GeoMaterialComponent.h.

27{ m_name = name; }

Member Data Documentation

◆ m_fraction

double m_fraction
private

fraction of the component from the full materials

Definition at line 44 of file GeoMaterialComponent.h.

◆ m_isElement

bool m_isElement
private

true if the component is a chemical element, false if it is a composite material

Definition at line 42 of file GeoMaterialComponent.h.

◆ m_name

std::string m_name
private

name of the component

Definition at line 40 of file GeoMaterialComponent.h.


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