68 #ifndef __OutOfBoundsException_h 85 const std::string& aSymbol,
86 unsigned short aZNumber,
89 const std::string& aState):
93 m_atomic_number(aZNumber),
94 m_molar_mass(aMolarMass),
105 m_name(anElement.m_name),
106 m_symbol(anElement.m_symbol),
107 m_atomic_number(anElement.m_atomic_number),
108 m_molar_mass(anElement.m_molar_mass),
109 m_density(anElement.m_density),
110 m_state(anElement.m_state),
111 m_p_energy_set(anElement.m_p_energy_set),
112 m_p_mass_attenuation_coefficient_set(anElement.m_p_mass_attenuation_coefficient_set)
void setDensity(double aDensity)
Set the density of the element.
double getDensity() const
Accessor on the density of the element.
std::vector< double > m_p_mass_attenuation_coefficient_set
The mass attenuation coefficient set corresponding to the energy set.
double m_density
The density of the element.
void setName(const std::string &aName)
Set the name of the element.
unsigned short m_atomic_number
The atomic number of the element.
std::vector< double > m_p_energy_set
The energy set.
double getMU(double anEnergy)
void setAtomicNumber(unsigned short aZNumber)
Set the atomic number (Z) of the element.
unsigned short getAtomicNumber() const
Accessor on the atomic number (Z) of the element.
double getEnergyChannel(unsigned int i) const
std::string m_name
The name of the element.
unsigned short Z() const
Accessor on the atomic number (Z) of the element.
void setSymbol(const std::string &aSymbol)
Set the symbol of the element.
void setMolarMass(double aMolarMass)
Set the molar mass of the element.
std::string m_symbol
The symbol of the element.
double getMolarMass() const
Accessor on the molar mass of the element.
double getMassAttenuationCoefficientChannel(unsigned int i) const
std::string m_state
The state of the element.
const std::string & getName() const
Accessor on the name of the element.
const double keV
kiloelectron volt
AtomicElement is a class to manage elements in material.
unsigned int getEnergyChannelNumber() const
double getMassAttenuationTotal(double anEnergy)
AtomicElement(const std::string &aName="", const std::string &aSymbol="", unsigned short aZNumber=0, double aMolarMass=0, double aDensity=0, const std::string &aState="")
Default Constructor.
void setState(const std::string &aState)
Set the state of the element.
Units, such as meters, etc.
double m_molar_mass
The molar mass of the element.
const std::string & getSymbol() const
Accessor on the symbol of the element.
Class to handle exceptions when accessing an array cell that is not accessible, i.e. out of bounds memory access.
const std::string & getState() const
Accessor on the state of the element.
AtomicElement & operator=(const AtomicElement &anElement)
Copy operator.
~AtomicElement()
Destructor.
const double cm2
square centimeter
unsigned short getZ() const
Accessor on the atomic number (Z) of the element.