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

#include <GIDI.hpp>

Inheritance diagram for GIDI::ACE_URR::IncidentEnergy:

Public Member Functions

 IncidentEnergy (Construction::Settings const &a_construction, HAPI::Node const &a_node, SetupInfo &a_setupInfo)
 ~IncidentEnergy ()
double value () const
std::string const & unit () const
Table::Table const & table () const
void toXMLList (GUPI::WriteInfo &a_writeInfo, std::string const &a_indent) 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 AncestryfindInAncestry3 (std::string const &a_item)=0
virtual Ancestry const * findInAncestry3 (std::string const &a_item) const =0
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

Class for the LLNL define incidentEnergy node which is not a GNDS* 2.0 specifications. This node currently can be found in the **applicationData node of a reactionSuite file with the label "*LLNL::ACE_URR_probability_tables*".

Definition at line 4199 of file GIDI.hpp.

Constructor & Destructor Documentation

◆ IncidentEnergy()

GIDI::ACE_URR::IncidentEnergy::IncidentEnergy ( Construction::Settings const & a_construction,
HAPI::Node const & a_node,
SetupInfo & a_setupInfo )
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.

Definition at line 76 of file GIDI_URR_probabilityTables.cc.

76 :
77 Form( a_node, a_setupInfo, FormType::ACE_URR_probabilityTable ),
78 m_value( a_node.attribute( GIDI_valueChars ).as_double( ) ),
79 m_unit( a_node.attribute_as_string( GIDI_unitChars ) ),
80 m_table( a_construction, a_node.first_child( ), a_setupInfo ) {
81
82}
#define GIDI_unitChars
Definition GIDI.hpp:439
#define GIDI_valueChars
Definition GIDI.hpp:445
Form(FormType a_type)
Definition GIDI_form.cc:25
@ ACE_URR_probabilityTable
Definition GIDI.hpp:140

◆ ~IncidentEnergy()

GIDI::ACE_URR::IncidentEnergy::~IncidentEnergy ( )

Definition at line 87 of file GIDI_URR_probabilityTables.cc.

87 {
88
89}

Member Function Documentation

◆ table()

Table::Table const & GIDI::ACE_URR::IncidentEnergy::table ( ) const
inline

Returns a const reference to the m_table member.

Definition at line 4212 of file GIDI.hpp.

Referenced by MCGIDI::convertACE_URR_probabilityTablesFromGIDI().

◆ toXMLList()

void GIDI::ACE_URR::IncidentEnergy::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 98 of file GIDI_URR_probabilityTables.cc.

98 {
99
100 std::string indent2 = a_writeInfo.incrementalIndent( a_indent );
101 std::string attributes;
102
103 attributes = a_writeInfo.addAttribute( GIDI_valueChars, LUPI::Misc::doubleToShortestString( m_value ) );
104 attributes += a_writeInfo.addAttribute( GIDI_unitChars, m_unit );
105 a_writeInfo.addNodeStarter( a_indent, moniker( ), attributes );
106
107 m_table.toXMLList( a_writeInfo, indent2 );
108
109 a_writeInfo.addNodeEnder( moniker( ) );
110}
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 doubleToShortestString(double a_value, int a_significantDigits=15, int a_favorEFormBy=0)
Definition LUPI_misc.cc:349

◆ unit()

std::string const & GIDI::ACE_URR::IncidentEnergy::unit ( ) const
inline

Returns a const reference to the m_unit member.

Definition at line 4211 of file GIDI.hpp.

◆ value()

double GIDI::ACE_URR::IncidentEnergy::value ( ) const
inline

Returns the value of the m_value member.

Definition at line 4210 of file GIDI.hpp.

Referenced by MCGIDI::convertACE_URR_probabilityTablesFromGIDI().


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