Geant4 11.4.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
GIDI_branching1d.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 Branching1d
18 * Class for the GNDS <**branching1d**> node.
19 */
20
21/* *********************************************************************************************************//**
22 *
23 * @param a_construction [in] Used to pass user options for parsing.
24 * @param a_node [in] The **HAPI::Node** to be parsed and used to construct the XYs2d.
25 * @param a_setupInfo [in] Information create my the Protare constructor to help in parsing.
26 * @param a_parent [in] The parent GIDI::Suite.
27 ***********************************************************************************************************/
28
29Branching1d::Branching1d( Construction::Settings const &a_construction, HAPI::Node const &a_node, SetupInfo &a_setupInfo, Suite *a_parent ) :
30 Function1dForm( a_construction, a_node, a_setupInfo, FormType::branching1d, a_parent ),
31 m_initialState( a_setupInfo.m_initialState ),
32 m_multiplicity( 0.0 ) {
33
34 PoPI::NuclideGammaBranchStateInfo const *nuclideGammaBranchStateInfo = a_setupInfo.m_protare->nuclideGammaBranchStateInfos( ).find( m_initialState );
35 m_multiplicity = nuclideGammaBranchStateInfo->multiplicity( );
36}
37
38/* *********************************************************************************************************//**
39 ***********************************************************************************************************/
40
44
45/* *********************************************************************************************************//**
46 * Returns the domain minimum for the instance.
47 *
48 * @return The domain minimum for the instance.
49 ***********************************************************************************************************/
50
51double Branching1d::domainMin( ) const {
52
53 return( 0.0 ); // FIXME
54}
55
56/* *********************************************************************************************************//**
57 * Returns the domain maximum for the instance.
58 *
59 * @return The domain maximum for the instance.
60 ***********************************************************************************************************/
61
62double Branching1d::domainMax( ) const {
63
64 return( 1.0 ); // FIXME
65}
66
67/* *********************************************************************************************************//**
68 * Returns the value of the function *f(x1)* at the specified point and *a_x1*.
69 * **This is currently not implemented**.
70 *
71 * @param a_x1 [in] The value of the **x1** axis.
72 * @return The value of the function evaluated at *a_x1*.
73 ***********************************************************************************************************/
74
75double Branching1d::evaluate( LUPI_maybeUnused double a_x1 ) const {
76
77 return( m_multiplicity );
78}
79
80} // End namespace Functions.
81
82} // End namespace GIDI.
#define LUPI_maybeUnused
double evaluate(double a_x1) const
Branching1d(Construction::Settings const &a_construction, HAPI::Node const &a_node, SetupInfo &a_setupInfo, Suite *a_parent)
Function1dForm(std::string const &a_moniker, FormType a_type, ptwXY_interpolation a_interpolation, int a_index, double a_outerDomainValue)
Definition GIDI_form.cc:348
PoPI::NuclideGammaBranchStateInfos const & nuclideGammaBranchStateInfos() const
Definition GIDI.hpp:4731
ProtareSingle * m_protare
Definition GIDI.hpp:597
Definition GIDI.hpp:32
FormType
Definition GIDI.hpp:118