|
Geant4 11.4.0
Toolkit for the simulation of the passage of particles through matter
|
#include <GIDI.hpp>
Public Member Functions | |
| ParticleInfo (std::string const &a_id, std::string const &a_pid, double a_mass, double a_excitationEnergy=0.0) | |
| ParticleInfo (std::string const &a_id, PoPI::Database const &a_globalPoPs, PoPI::Database const &a_internalPoPs, bool a_requiredInGlobalPoPs) | |
| ParticleInfo (ParticleInfo const &a_particleInfo) | |
| ParticleInfo & | operator= (ParticleInfo const &a_rhs) |
| std::string const & | ID () const |
| std::string const & | qualifier () const |
| std::string const & | pid () const |
| bool | isAlias () const |
| PhysicalQuantity const & | mass () const |
| PhysicalQuantity const & | excitationEnergy () const |
| double | mass (std::string const &a_unit) const |
Static Public Member Functions | |
| static std::string const | IDPortion (std::string const &a_id) |
| static std::string const | qualifierPortion (std::string const &a_id) |
This class stores an abridged set of particle information from PoPI::Database as needed by GIDI.
Note, the stored mass does not include the mass associated with nuclear excitation energy. This addition mass is store in m_excitationEnergy.
| GIDI::ParticleInfo::ParticleInfo | ( | std::string const & | a_ID, |
| std::string const & | a_pid, | ||
| double | a_mass, | ||
| double | a_excitationEnergy = 0.0 ) |
| a_ID | [in] The particle's PoPs ID. |
| a_pid | [in] The same as a_id unless particle is an alias, then the final particle's id. |
| a_mass | [in] The particle's groud state mass. For nuclide and nucleus, this is the |
| a_excitationEnergy | [in] The particle's nuclear excitation energy. |
Definition at line 28 of file GIDI_particleInfo.cc.
Referenced by operator=(), ParticleInfo(), ParticleInfo(), and ParticleInfo().
| GIDI::ParticleInfo::ParticleInfo | ( | std::string const & | a_ID, |
| PoPI::Database const & | a_pops, | ||
| PoPI::Database const & | a_internalPoPs, | ||
| bool | a_requiredInGlobalPoPs ) |
| a_ID | [in] The particle's PoPs ID. |
| a_pops | [in] A PoPI::Database instance used to get particle indices and possibly other particle information. |
| a_internalPoPs | [in] The internal PoPI::Database instance used to get particle indices and possibly other particle information. This is the <PoPs> node under the <reactionSuite> node. |
| a_requiredInGlobalPoPs | [in] If true, the ID must be in a_pops. |
Definition at line 45 of file GIDI_particleInfo.cc.
| GIDI::ParticleInfo::ParticleInfo | ( | ParticleInfo const & | a_particleInfo | ) |
Copy constructor for ParticleInfo.
| a_particleInfo | [in] ParticleInfo instance to copy. |
Definition at line 99 of file GIDI_particleInfo.cc.
|
inline |
Returns a const reference to m_excitationEnergy member.
Definition at line 766 of file GIDI.hpp.
Referenced by operator=(), and ParticleInfo().
|
inline |
Returns a const reference to m_id member.
Definition at line 760 of file GIDI.hpp.
Referenced by GIDI::Transporting::MG::form(), IDPortion(), GIDI::ProtareSingle::multiGroupGain(), operator=(), ParticleInfo(), GIDI::Product::Product(), and GIDI::Reaction::recalculateMultiGroupData().
|
static |
This static method returns the non-qualifier portion of a particle's id. For example, for the id "Th232{1s1/2}", the string "Th232" is returned.
| a_ID | [in] The id's whose non-qualifier portion is to be returned. |
Definition at line 150 of file GIDI_particleInfo.cc.
Referenced by ParticleInfo(), and ParticleInfo().
|
inline |
|
inline |
Returns a const reference to m_mass member.
Definition at line 765 of file GIDI.hpp.
Referenced by operator=(), and ParticleInfo().
| double GIDI::ParticleInfo::mass | ( | std::string const & | a_unit | ) | const |
| ParticleInfo & GIDI::ParticleInfo::operator= | ( | ParticleInfo const & | a_rhs | ) |
The assignment operator. This method sets the members of this to those of a_rhs except for those not set by base classes.
| a_rhs | [in] Instance whose member are used to set the members of this. |
Definition at line 115 of file GIDI_particleInfo.cc.
|
inline |
Returns a const reference to m_pid member.
Definition at line 762 of file GIDI.hpp.
Referenced by GIDI::GRIN::GRIN_continuumGammas::GRIN_continuumGammas(), MCGIDI::MultiGroupHash::MultiGroupHash(), operator=(), and ParticleInfo().
|
inline |
Returns a const reference to *m_qualifier**.
Definition at line 761 of file GIDI.hpp.
Referenced by operator=(), ParticleInfo(), and qualifierPortion().
|
static |
This static method returns the qualifier portion of a particle's id. For example, for the id "Th232{1s1/2}", the string "1s1/2" is returned.
| a_ID | [in] The id's whose qualifier portion is to be returned. |
Definition at line 166 of file GIDI_particleInfo.cc.
Referenced by ParticleInfo(), and ParticleInfo().