Geant4 11.4.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
GIDI::Sums::CrossSectionSum Class Reference

#include <GIDI.hpp>

Inheritance diagram for GIDI::Sums::CrossSectionSum:

Public Member Functions

 CrossSectionSum (Construction::Settings const &a_construction, HAPI::Node const &a_node, SetupInfo &a_setupInfo, PoPI::Database const &a_pops, PoPI::Database const &a_internalPoPs)
GUPI::AncestryfindInAncestry3 (std::string const &a_item)
GUPI::Ancestry const * findInAncestry3 (std::string const &a_item) const
ComponentQ ()
ComponentcrossSection ()
void toXMLList (GUPI::WriteInfo &a_writeInfo, std::string const &a_indent="") const
Public Member Functions inherited from GIDI::Sums::Base
 Base (Construction::Settings const &a_construction, HAPI::Node const &a_node, SetupInfo &a_setupInfo, PoPI::Database const &a_pops, PoPI::Database const &a_internalPoPs, FormType a_type)
int ENDF_MT () const
Summands const & summands () const
Public Member Functions inherited from GIDI::Form
 Form (FormType a_type)
 Form (std::string const &a_moniker, FormType a_type, std::string const &a_label)
 Form (HAPI::Node const &a_node, SetupInfo &a_setupInfo, FormType a_type, Suite *a_suite=nullptr)
 Form (Form const &a_form)
virtual ~Form ()
Formoperator= (Form const &a_rhs)
Suiteparent () const
std::string const & label () const
void setLabel (std::string const &a_label)
virtual std::string actualMoniker () const
std::string const & keyName () const
void setKeyName (std::string const &a_keyName)
std::string const & keyValue () const
virtual void setKeyValue (std::string const &a_keyName) const
FormType type () const
Form const * sibling (std::string a_label) const
GUPI::AncestryfindInAncestry3 (LUPI_maybeUnused std::string const &a_item)
GUPI::Ancestry const * findInAncestry3 (LUPI_maybeUnused std::string const &a_item) const
std::string xlinkItemKey () const
Public Member Functions inherited from GUPI::Ancestry
 Ancestry (std::string const &a_moniker, std::string const &a_attribute="")
virtual ~Ancestry ()
Ancestryoperator= (Ancestry const &a_ancestry)
std::string const & moniker () const
void setMoniker (std::string const &a_moniker)
Ancestryancestor ()
Ancestry const * ancestor () const
void setAncestor (Ancestry *a_ancestor)
std::string attribute () const
Ancestryroot ()
Ancestry const * root () const
bool isChild (Ancestry *a_instance)
bool isParent (Ancestry *a_parent)
bool isRoot () const
AncestryfindInAncestry (std::string const &a_href)
Ancestry const * findInAncestry (std::string const &a_href) const
virtual LUPI_HOST void serialize (LUPI::DataBuffer &a_buffer, LUPI::DataBuffer::Mode a_mode)
std::string toXLink () const
void printXML () const

Additional Inherited Members

Static Public Member Functions inherited from GUPI::Ancestry
static std::string buildXLinkItemKey (std::string const &a_name, std::string const &a_key)

Detailed Description

This class represents the GNDS <crossSectionSum> node.

Definition at line 4457 of file GIDI.hpp.

Constructor & Destructor Documentation

◆ CrossSectionSum()

GIDI::Sums::CrossSectionSum::CrossSectionSum ( Construction::Settings const & a_construction,
HAPI::Node const & a_node,
SetupInfo & a_setupInfo,
PoPI::Database const & a_pops,
PoPI::Database const & a_internalPoPs )
Parameters
a_construction[in] Used to pass user options to the constructor.
a_node[in] The HAPI::Node to be parsed.
a_setupInfo[in] Information create my the Protare constructor to help in parsing.
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.

Definition at line 154 of file GIDI_sums.cc.

155 :
156 Base( a_construction, a_node, a_setupInfo, a_pops, a_internalPoPs, FormType::crossSectionSum ),
157 m_Q( a_construction, GIDI_QChars, GIDI_labelChars, a_node, a_setupInfo, a_pops, a_internalPoPs, parseQSuite, nullptr ),
158 m_crossSection( a_construction, GIDI_crossSectionChars, GIDI_labelChars, a_node, a_setupInfo, a_pops, a_internalPoPs, parseCrossSectionSuite, nullptr ) {
159
160 m_Q.setAncestor( this );
161 m_crossSection.setAncestor( this );
162}
#define GIDI_crossSectionChars
Definition GIDI.hpp:215
#define GIDI_QChars
Definition GIDI.hpp:219
#define GIDI_labelChars
Definition GIDI.hpp:438
Base(Construction::Settings const &a_construction, HAPI::Node const &a_node, SetupInfo &a_setupInfo, PoPI::Database const &a_pops, PoPI::Database const &a_internalPoPs, FormType a_type)
Form * parseCrossSectionSuite(Construction::Settings const &a_construction, Suite *parent, HAPI::Node const &a_node, SetupInfo &a_setupInfo, PoPI::Database const &a_pop, PoPI::Database const &a_internalPoPs, std::string const &a_name, Styles::Suite const *a_styles)
Form * parseQSuite(Construction::Settings const &a_construction, Suite *parent, HAPI::Node const &a_node, SetupInfo &a_setupInfo, PoPI::Database const &a_pop, PoPI::Database const &a_internalPoPs, std::string const &a_name, Styles::Suite const *a_styles)

Member Function Documentation

◆ crossSection()

Component & GIDI::Sums::CrossSectionSum::crossSection ( )
inline

Returns a reference to the m_crossSection member.

Definition at line 4469 of file GIDI.hpp.

◆ findInAncestry3() [1/2]

GUPI::Ancestry * GIDI::Sums::CrossSectionSum::findInAncestry3 ( std::string const & a_item)
virtual

Returns a pointer to the member whose moniker is a_item.

Parameters
a_item[in] The moniker of the member to return.
Returns
Returns the pointer to the member of nullptr if it does not exists.

Implements GUPI::Ancestry.

Definition at line 171 of file GIDI_sums.cc.

171 {
172
173 if( a_item == GIDI_QChars ) return( &m_Q );
174 if( a_item == GIDI_crossSectionChars ) return( &m_crossSection );
175
176 return( nullptr );
177}

◆ findInAncestry3() [2/2]

GUPI::Ancestry const * GIDI::Sums::CrossSectionSum::findInAncestry3 ( std::string const & a_item) const
virtual

Returns a pointer to the member whose moniker is a_item.

Parameters
a_item[in] The moniker of the member to return.
Returns
Returns the pointer to the member of nullptr if it does not exists.

Implements GUPI::Ancestry.

Definition at line 186 of file GIDI_sums.cc.

186 {
187
188 if( a_item == GIDI_QChars ) return( &m_Q );
189 if( a_item == GIDI_crossSectionChars ) return( &m_crossSection );
190
191 return( nullptr );
192}

◆ Q()

Component & GIDI::Sums::CrossSectionSum::Q ( )
inline

Returns a reference to the m_Q member.

Definition at line 4468 of file GIDI.hpp.

◆ toXMLList()

void GIDI::Sums::CrossSectionSum::toXMLList ( GUPI::WriteInfo & a_writeInfo,
std::string const & a_indent = "" ) const
virtual

Fills the argument a_writeInfo with the XML lines that represent this. Recursively enters each sub-node.

Parameters
a_writeInfo[in/out] Instance containing incremental indentation and other information and stores the appended lines.
a_indent[in] The amount to indent this node.

Reimplemented from GUPI::Ancestry.

Definition at line 201 of file GIDI_sums.cc.

201 {
202
203 std::string indent2 = a_writeInfo.incrementalIndent( a_indent );
204 std::string attributes;
205
206 attributes = a_writeInfo.addAttribute( GIDI_labelChars, label( ) );
207 attributes += a_writeInfo.addAttribute( GIDI_ENDF_MT_Chars, intToString( ENDF_MT( ) ) );
208 a_writeInfo.addNodeStarter( a_indent, moniker( ), attributes );
209
210 summands( ).toXMLList( a_writeInfo, indent2 );
211
212 m_Q.toXMLList( a_writeInfo, indent2 );
213 m_crossSection.toXMLList( a_writeInfo, indent2 );
214
215 a_writeInfo.addNodeEnder( moniker( ) );
216}
#define GIDI_ENDF_MT_Chars
Definition GIDI.hpp:420
std::string const & label() const
Definition GIDI.hpp:658
int ENDF_MT() const
Definition GIDI.hpp:4448
Summands const & summands() const
Definition GIDI.hpp:4449
void toXMLList(GUPI::WriteInfo &a_writeInfo, std::string const &a_indent="") const
Definition GIDI_sums.cc:304
std::string const & moniker() const
Definition GUPI.hpp:102
void addNodeEnder(std::string const &a_moniker)
Definition GUPI.hpp:59
std::string incrementalIndent(std::string const &indent)
Definition GUPI.hpp:52
void addNodeStarter(std::string const &indent, std::string const &a_moniker, std::string const &a_attributes="")
Definition GUPI.hpp:55
std::string addAttribute(std::string const &a_name, std::string const &a_value) const
Definition GUPI.hpp:60
std::string intToString(int a_value)
Definition GIDI_misc.cc:415

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