|
Geant4 11.4.0
Toolkit for the simulation of the passage of particles through matter
|
#include <GIDI.hpp>
Public Member Functions | |
| Particles () | |
| ~Particles () | |
| std::map< std::string, Particle > & | particles () |
| std::map< std::string, Particle > const & | particles () const |
| Particle const * | particle (std::string const &a_particleID) const |
| bool | add (Particle const &a_particle) |
| bool | remove (std::string const &a_particleID) |
| void | clear () |
| bool | hasParticle (std::string const &a_id) const |
| void | process (Protare const &a_protare, std::string const &a_label) |
| std::vector< std::string > | sortedIDs (bool a_orderIsAscending=true) const |
| void | print () const |
| GIDI::Transporting::Particles::Particles | ( | ) |
Definition at line 26 of file GIDI_settings_particle.cc.
| GIDI::Transporting::Particles::~Particles | ( | ) |
Definition at line 33 of file GIDI_settings_particle.cc.
| bool GIDI::Transporting::Particles::add | ( | Particle const & | a_particle | ) |
Adds the Particle a_particle to this. If a particle with the same id as a_particle exists in this the a_particle is not added and false is returned.
| a_particle | [in] The Particle to add to this as a particle to transport. |
Definition at line 63 of file GIDI_settings_particle.cc.
Referenced by G4GIDI::readTarget().
|
inline |
| bool GIDI::Transporting::Particles::hasParticle | ( | std::string const & | a_id | ) | const |
Returns true if Particle with id a_id is in this and false otherwise.
| a_id | [in] The PoPs id of the particle to check for in this. |
Definition at line 97 of file GIDI_settings_particle.cc.
Referenced by GIDI::Product::areAllProductsTracked(), MCGIDI::HeatedCrossSectionContinuousEnergy::HeatedCrossSectionContinuousEnergy(), MCGIDI::OutputChannel::OutputChannel(), and GIDI::Product::productIDs().
| Particle const * GIDI::Transporting::Particles::particle | ( | std::string const & | a_pid | ) | const |
Returns a pointer to the Particle in this with PoPs id a_pid.
| a_pid | [in] The PoPs id of the particle to return. |
Definition at line 45 of file GIDI_settings_particle.cc.
Referenced by GIDI::collapse(), GIDI::collapse(), hasParticle(), MCGIDI::MultiGroupHash::MultiGroupHash(), GIDI::Transporting::Settings::multiGroupZeroMatrix(), GIDI::Transporting::Settings::multiGroupZeroVector(), print(), process(), and remove().
|
inline |
Returns the value of the m_particles member.
Definition at line 3692 of file GIDI.hpp.
Referenced by MCGIDI::HeatedCrossSectionContinuousEnergy::HeatedCrossSectionContinuousEnergy(), GIDI::ProtareSingle::multiGroupDepositionEnergy(), GIDI::Reaction::multiGroupDepositionEnergy(), GIDI::ProtareSingle::multiGroupDepositionMomentum(), GIDI::Reaction::multiGroupDepositionMomentum(), and GIDI::Reaction::multiGroupProductMatrix().
|
inline |
| void GIDI::Transporting::Particles::print | ( | ) | const |
Prints the contents of this to std::cout. Mainly used for debugging.
Definition at line 151 of file GIDI_settings_particle.cc.
| void GIDI::Transporting::Particles::process | ( | Protare const & | a_protare, |
| std::string const & | a_label ) |
Process all the data in this. This includes determining the mapping between the uncollapsed (specified by a_label) and the collapsed multi-group boundaries, and grouping the flux data for each Particle.
| a_protare | [in] The Protare whose multi-group data are to accessed. |
| a_label | [in] The label of the multi-group data to process. |
Definition at line 111 of file GIDI_settings_particle.cc.
| bool GIDI::Transporting::Particles::remove | ( | std::string const & | a_pid | ) |
Removes the Particle in this with PoPs id a_pid.
| a_pid | [in] The PoPs id of the particle to remove from this. |
Definition at line 80 of file GIDI_settings_particle.cc.
| std::vector< std::string > GIDI::Transporting::Particles::sortedIDs | ( | bool | a_orderIsAscending = true | ) | const |
Returns the particle IDs of this as a sorted std::vector<std::string> list.
| a_orderIsAscending | [in] If true IDs are sorted in ascending order, otherwise IDs are in descending order. |
Definition at line 138 of file GIDI_settings_particle.cc.
Referenced by print().