Geant4 11.4.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
GIDI_gridded3d.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#include <HAPI.hpp>
12
13namespace GIDI {
14
15namespace Functions {
16
17/*! \class Gridded3d
18 * Class for the GNDS <**gridded3d**> node.
19 */
20
21/* *********************************************************************************************************//**
22 * Constructed from data in a <**product**> node.
23 *
24 * @param a_construction [in] Used to pass user options to the constructor.
25 * @param a_node [in] The **HAPI::Node** to be parsed and used to construct the Gridded3d.
26 * @param a_setupInfo [in] Information create my the Protare constructor to help in parsing.
27 ***********************************************************************************************************/
28
29Gridded3d::Gridded3d( Construction::Settings const &a_construction, HAPI::Node const &a_node, SetupInfo &a_setupInfo ) :
30 Function3dForm( a_construction, a_node, a_setupInfo, FormType::gridded3d ),
31 m_data( a_node.child( GIDI_arrayChars ), a_setupInfo, a_construction.useSystem_strtod( ) ) {
32
33}
34
35/* *********************************************************************************************************//**
36 ***********************************************************************************************************/
37
41
42/* *********************************************************************************************************//**
43 * Only for internal use. Called by ProtareTNSL instance to zero the lower energy multi-group data covered by the ProtareSingle that
44 * contains the TNSL data covers the lower energy multi-group data.
45 *
46 * @param a_maxTNSL_index [in] All elements up to *a_maxTNSL_index* exclusive are zero-ed.
47 ***********************************************************************************************************/
48
50
51}
52
53/* *********************************************************************************************************//**
54 * Fills the argument *a_writeInfo* with the XML lines that represent *this*. Recursively enters each sub-node.
55 *
56 * @param a_writeInfo [in/out] Instance containing incremental indentation and other information and stores the appended lines.
57 * @param a_indent [in] The amount to indent *this* node.
58 ***********************************************************************************************************/
59
60void Gridded3d::toXMLList( GUPI::WriteInfo &a_writeInfo, std::string const &a_indent ) const {
61
62 std::string indent2 = a_writeInfo.incrementalIndent( a_indent );
63
64 a_writeInfo.addNodeStarter( a_indent, moniker( ) );
65 axes( ).toXMLList( a_writeInfo, indent2 );
66 m_data.toXMLList( a_writeInfo, indent2 );
67 a_writeInfo.addNodeEnder( moniker( ) );
68}
69
70} // End namespace Functions.
71
72} // End namespace GIDI.
#define GIDI_arrayChars
Definition GIDI.hpp:258
#define LUPI_maybeUnused
void toXMLList(GUPI::WriteInfo &a_writeInfo, std::string const &a_indent="") const
Definition GIDI_axes.cc:113
Function3dForm(std::string const &a_moniker, FormType a_type, ptwXY_interpolation a_interpolation, int a_index, double a_outerDomainValue)
Axes const & axes() const
Definition GIDI.hpp:1012
void modifiedMultiGroupElasticForTNSL(std::size_t maxTNSL_index)
void toXMLList(GUPI::WriteInfo &a_writeInfo, std::string const &a_indent) const
Gridded3d(Construction::Settings const &a_construction, HAPI::Node const &a_node, SetupInfo &a_setupInfo)
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
Definition GIDI.hpp:32
FormType
Definition GIDI.hpp:118