Geant4 11.4.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
GIDI_URR_probabilityTables1d.cc
Go to the documentation of this file.
1/*
2# <<BEGIN-copyright>>
3# Copyright 2019, Lawrence Livermore National Security, LLC.
4# This file is part of the gidiplus package (https://github.com/LLNL/gidiplus).
5# gidiplus is licensed under the MIT license (see https://opensource.org/licenses/MIT).
6# SPDX-License-Identifier: MIT
7# <<END-copyright>>
8*/
9
10#include "GIDI.hpp"
11
12namespace GIDI {
13
14namespace Functions {
15
16/*! \class URR_probabilityTables1d
17 * Class for the **GNDS* **URR_probabilityTables1d** node.
18 */
19
20/* *********************************************************************************************************//**
21 * @param a_construction [in] Used to pass user options to the constructor.
22 * @param a_node [in] The **HAPI::Node** to be parsed.
23 * @param a_setupInfo [in] Information create my the Protare constructor to help in parsing.
24 * @param a_parent [in] The parent GIDI::Suite.
25 ***********************************************************************************************************/
26
28 SetupInfo &a_setupInfo, Suite *a_parent ) :
29 Function1dForm( a_construction, a_node, a_setupInfo, FormType::URR_probabilityTables1d, a_parent ),
30 m_function2d( data2dParse( a_construction, a_node.first_child( ), a_setupInfo, nullptr ) ) {
31
32 if( m_function2d != nullptr ) m_function2d->setAncestor( this );
33}
34
35/* *********************************************************************************************************//**
36 ***********************************************************************************************************/
37
39
40 delete m_function2d;
41}
42
43/* *********************************************************************************************************//**
44 * Returns the minimum energy for the URR probability tables.
45 ***********************************************************************************************************/
46
48
49 return( m_function2d->domainMin( ) );
50}
51
52/* *********************************************************************************************************//**
53 * Returns the maximum energy for the URR probability tables.
54 ***********************************************************************************************************/
55
57
58 return( m_function2d->domainMax( ) );
59}
60
61/* *********************************************************************************************************//**
62 * Returns the average value for the URR probability tables at energy *a_x1*. Currently does not work; always returns 0.0.
63 *
64 * @param a_x1 [in] The projectile energy to evaluate the URR probability tables at.
65 ***********************************************************************************************************/
66
68
69 return( 0.0 );
70}
71
72/* *********************************************************************************************************//**
73 * Fills the argument *a_writeInfo* with the XML lines that represent *this*. Recursively enters each sub-node.
74 *
75 * @param a_writeInfo [in/out] Instance containing incremental indentation and other information and stores the appended lines.
76 * @param a_indent [in] The amount to indent *this* node.
77 * @param a_embedded [in] If *true*, *this* function is embedded in a higher dimensional function.
78 * @param a_inRegions [in] If *true*, *this* is in a Regions2d container.
79 ***********************************************************************************************************/
80
81void URR_probabilityTables1d::toXMLList_func( GUPI::WriteInfo &a_writeInfo, std::string const &a_indent, LUPI_maybeUnused bool a_embedded, LUPI_maybeUnused bool a_inRegions ) const {
82
83 std::string indent2 = a_writeInfo.incrementalIndent( a_indent );
84 std::string attributes;
85
86 if( label( ) != "" ) attributes = a_writeInfo.addAttribute( GIDI_labelChars, label( ) );
87 a_writeInfo.addNodeStarter( a_indent, moniker( ), attributes );
88
89 if( m_function2d != nullptr ) m_function2d->toXMLList_func( a_writeInfo, indent2, false, false );
90
91 a_writeInfo.addNodeEnder( moniker( ) );
92}
93
94} // End namespace Functions.
95
96} // End namespace GIDI.
#define GIDI_labelChars
Definition GIDI.hpp:438
#define LUPI_maybeUnused
std::string const & label() const
Definition GIDI.hpp:658
Function1dForm(std::string const &a_moniker, FormType a_type, ptwXY_interpolation a_interpolation, int a_index, double a_outerDomainValue)
Definition GIDI_form.cc:348
void toXMLList_func(GUPI::WriteInfo &a_writeInfo, std::string const &a_indent, bool a_embedded, bool a_inRegions) const
URR_probabilityTables1d(Construction::Settings const &a_construction, HAPI::Node const &a_node, SetupInfo &a_setupInfo, Suite *a_parent)
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
Definition GIDI.hpp:32
FormType
Definition GIDI.hpp:118
Functions::Function2dForm * data2dParse(Construction::Settings const &a_construction, HAPI::Node const &a_node, SetupInfo &a_setupInfo, Suite *parent)