Geant4 11.4.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
PoPI::DecayData Class Reference

#include <PoPI.hpp>

Public Member Functions

 DecayData (HAPI::Node const &a_node)
 ~DecayData ()
Suite< DecayMode, DecayData > const & decayModes (void) const
void calculateNuclideGammaBranchStateInfo (PoPI::Database const &a_pops, NuclideGammaBranchStateInfo &a_nuclideGammaBranchStateInfo) const
void toXMLList (std::vector< std::string > &a_XMLList, std::string const &a_indent1) const

Detailed Description

Definition at line 802 of file PoPI.hpp.

Constructor & Destructor Documentation

◆ DecayData()

PoPI::DecayData::DecayData ( HAPI::Node const & a_node)

Definition at line 31 of file PoPI_decayData.cc.

31 :
32 m_decayModes( PoPI_decayModesChars ) {
33
34 m_decayModes.appendFromParentNode2( a_node.child( PoPI_decayModesChars ), this );
35}
#define PoPI_decayModesChars

◆ ~DecayData()

PoPI::DecayData::~DecayData ( )

Definition at line 39 of file PoPI_decayData.cc.

39 {
40
41}

Member Function Documentation

◆ calculateNuclideGammaBranchStateInfo()

void PoPI::DecayData::calculateNuclideGammaBranchStateInfo ( PoPI::Database const & a_pops,
NuclideGammaBranchStateInfo & a_nuclideGammaBranchStateInfo ) const

Definition at line 45 of file PoPI_decayData.cc.

45 {
46
47 for( std::size_t i1 = 0; i1 < m_decayModes.size( ); ++i1 ) {
48 DecayMode const &decayMode = m_decayModes[i1];
49
50 decayMode.calculateNuclideGammaBranchStateInfo( a_pops, a_nuclideGammaBranchStateInfo );
51 }
52}

Referenced by PoPI::Nuclide::calculateNuclideGammaBranchStateInfos().

◆ decayModes()

Suite< DecayMode, DecayData > const & PoPI::DecayData::decayModes ( void ) const
inline

Definition at line 811 of file PoPI.hpp.

811{ return( m_decayModes ); }

◆ toXMLList()

void PoPI::DecayData::toXMLList ( std::vector< std::string > & a_XMLList,
std::string const & a_indent1 ) const

Adds the contents of this to a_XMLList where each item in a_XMLList is one line (without linefeeds) to output as an XML representation of this.

Parameters
a_XMLList[in] The list to add an XML output representation of this to.
a_indent1[in] The amount of indentation to added to each line added to a_XMLList.

Definition at line 61 of file PoPI_decayData.cc.

61 {
62
63 std::string::size_type size = m_decayModes.size( );
64
65 if( size == 0 ) return;
66
67 std::string header = a_indent1 + "<" + PoPI_decayDataChars + ">";
68 a_XMLList.push_back( std::move( header ) );
69
70 if( size > 0 ) {
71 std::string indent2 = a_indent1 + " ";
72 m_decayModes.toXMLList( a_XMLList, indent2 );
73 }
74
76}
#define PoPI_decayDataChars
Definition PoPI.hpp:84
void appendXMLEnd(std::vector< std::string > &a_XMLList, std::string const &a_label)
Definition PoPI_misc.cc:53

The documentation for this class was generated from the following files: