Chemical element.
More...
#include <TRT_PAI_element.h>
|
| | TRT_PAI_element () |
| | Default constructor for unnamed element.
|
| | TRT_PAI_element (const std::string &nm, const float *E, const float *S, int N, double Z, double A) |
| | Constructor of element.
|
| const std::string & | getName () |
| | Get element name.
|
| double | getAtomicA () |
| | Get atomic A of element.
|
| double | getAtomicZ () |
| | Get atomic Z of element.
|
| double | getDensity (double tempK=293.) |
| | Get density of element at atmospheric preassure.
|
| const std::vector< float > & | getLnELvls () |
| | Get vector of ln(energy) of energy levels (eV)
|
| const std::vector< float > & | getLnSigmas () |
| | Get vector of ln(cross sections) corresponding to energy levels (Mb)
|
Chemical element.
Definition at line 14 of file TRT_PAI_element.h.
◆ TRT_PAI_element() [1/2]
| TRT_PAI_element::TRT_PAI_element |
( |
| ) |
|
|
inline |
◆ TRT_PAI_element() [2/2]
| TRT_PAI_element::TRT_PAI_element |
( |
const std::string & | nm, |
|
|
const float * | E, |
|
|
const float * | S, |
|
|
int | N, |
|
|
double | Z, |
|
|
double | A ) |
Constructor of element.
- Parameters
-
| nm | element name |
| E | array of absorption energies (ev) |
| S | array of cross sections (Mb) |
| N | number of entries in these arrays |
| Z | atomic Z |
| A | atomic A |
Definition at line 13 of file TRT_PAI_element.cxx.
18 :
22{
23 for (
int i=0;
i<
N; ++
i ) {
26 }
27 return;
28}
std::vector< float > m_lnEnergyLvls
std::vector< float > m_lnCrossScts
◆ getAtomicA()
| double TRT_PAI_element::getAtomicA |
( |
| ) |
|
|
inline |
◆ getAtomicZ()
| double TRT_PAI_element::getAtomicZ |
( |
| ) |
|
|
inline |
◆ getDensity()
| double TRT_PAI_element::getDensity |
( |
double | tempK = 293. | ) |
|
Get density of element at atmospheric preassure.
- Parameters
-
| tempK | Temperature in Kelvin |
Definition at line 32 of file TRT_PAI_element.cxx.
32 {
34 if ( tempK>0. ) density = density*293./tempK;
35 return density;
36}
◆ getLnELvls()
| const std::vector< float > & TRT_PAI_element::getLnELvls |
( |
| ) |
|
|
inline |
Get vector of ln(energy) of energy levels (eV)
Definition at line 61 of file TRT_PAI_element.h.
◆ getLnSigmas()
| const std::vector< float > & TRT_PAI_element::getLnSigmas |
( |
| ) |
|
|
inline |
Get vector of ln(cross sections) corresponding to energy levels (Mb)
Definition at line 66 of file TRT_PAI_element.h.
◆ getName()
| const std::string & TRT_PAI_element::getName |
( |
| ) |
|
|
inline |
◆ m_atomicA
| double TRT_PAI_element::m_atomicA |
|
private |
◆ m_atomicZ
| double TRT_PAI_element::m_atomicZ |
|
private |
◆ m_lnCrossScts
| std::vector<float> TRT_PAI_element::m_lnCrossScts |
|
private |
◆ m_lnEnergyLvls
| std::vector<float> TRT_PAI_element::m_lnEnergyLvls |
|
private |
◆ m_name
| std::string TRT_PAI_element::m_name |
|
private |
The documentation for this class was generated from the following files: