|
Geant4 11.4.0
Toolkit for the simulation of the passage of particles through matter
|
#include <MCGIDI.hpp>
Public Member Functions | |
| LUPI_HOST_DEVICE | GRIN_levelsAndProbabilities () |
| LUPI_HOST | GRIN_levelsAndProbabilities (SetupInfo &a_setupInfo, PoPI::Database const &a_pops, GIDI::Table::Table const &a_table, bool a_normalize) |
| LUPI_HOST_DEVICE | ~GRIN_levelsAndProbabilities () |
| LUPI_HOST void | set (std::vector< int > const &a_levels, std::vector< double > const &a_probabilities) |
| template<typename RNG> | |
| LUPI_HOST_DEVICE int | sampleInelasticLevel (double a_energy, RNG &&a_rng) |
| LUPI_HOST_DEVICE void | serialize (LUPI::DataBuffer &a_buffer, LUPI::DataBuffer::Mode a_mode) |
Public Attributes | |
| Vector< int > | m_levels |
| Vector< double > | m_summedProbabilities |
| Vector< bool > | m_isModelledLevel |
This class stores a Vector of summed probabilities and a Vector of their associated nuclide level as needed by inelastic and cpature GRIN continuum reaction data.
Definition at line 1006 of file MCGIDI.hpp.
| LUPI_HOST_DEVICE MCGIDI::GRIN_levelsAndProbabilities::GRIN_levelsAndProbabilities | ( | ) |
Definition at line 22 of file MCGIDI_GRIN.cc.
| LUPI_HOST MCGIDI::GRIN_levelsAndProbabilities::GRIN_levelsAndProbabilities | ( | SetupInfo & | a_setupInfo, |
| PoPI::Database const & | a_pops, | ||
| GIDI::Table::Table const & | a_table, | ||
| bool | a_normalize ) |
| a_setupInfo | [in] Used internally when constructing a Protare to pass information to other constructors. |
| a_table | [in] The table with a column containing nucide ids and a column with their probabilities. |
Definition at line 31 of file MCGIDI_GRIN.cc.
| LUPI_HOST_DEVICE MCGIDI::GRIN_levelsAndProbabilities::~GRIN_levelsAndProbabilities | ( | ) |
Definition at line 59 of file MCGIDI_GRIN.cc.
|
inline |
| LUPI_HOST_DEVICE void MCGIDI::GRIN_levelsAndProbabilities::serialize | ( | LUPI::DataBuffer & | a_buffer, |
| LUPI::DataBuffer::Mode | a_mode ) |
This method serializes this for broadcasting as needed for MPI and GPUs. The method can count the number of required bytes, pack this or unpack this depending on a_mode.
| a_buffer | [in] The buffer to read or write data to depending on a_mode. |
| a_mode | [in] Specifies the action of this method. |
Definition at line 93 of file MCGIDI_GRIN.cc.
| LUPI_HOST void MCGIDI::GRIN_levelsAndProbabilities::set | ( | std::vector< int > const & | a_levels, |
| std::vector< double > const & | a_probabilities ) |
Definition at line 66 of file MCGIDI_GRIN.cc.
| Vector<bool> MCGIDI::GRIN_levelsAndProbabilities::m_isModelledLevel |
The entry for each item in m_levels which is true if the level is a modelled level and false otherwise.
Definition at line 1011 of file MCGIDI.hpp.
Referenced by GRIN_levelsAndProbabilities(), serialize(), and set().
| Vector<int> MCGIDI::GRIN_levelsAndProbabilities::m_levels |
The list of nuclide indices for the nuclides in m_state as stored in member ProtareSingle::m_nuclideGammaBranchStateInfos.
Definition at line 1009 of file MCGIDI.hpp.
Referenced by GRIN_levelsAndProbabilities(), serialize(), and set().
| Vector<double> MCGIDI::GRIN_levelsAndProbabilities::m_summedProbabilities |
The running sum of the probability for choosing a state from m_states.
Definition at line 1010 of file MCGIDI.hpp.
Referenced by GRIN_levelsAndProbabilities(), serialize(), and set().