Geant4
11.4.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
GIDI_isotropic2d.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
13
namespace
GIDI
{
14
15
namespace
Functions
{
16
17
/*! \class Isotropic2d
18
* Class for the GNDS <**isotropic2d**> node.
19
*/
20
21
/* *********************************************************************************************************/
/**
22
*
23
* @param a_construction [in] Used to pass user options to the constructor.
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
29
Isotropic2d::Isotropic2d
(
Construction::Settings
const
&a_construction,
HAPI::Node
const
&a_node,
SetupInfo
&a_setupInfo,
Suite
*a_parent ) :
30
Function2dForm
( a_construction, a_node, a_setupInfo,
FormType
::
isotropic2d
, a_parent ) {
31
32
}
33
34
/* *********************************************************************************************************/
/**
35
***********************************************************************************************************/
36
37
Isotropic2d::~Isotropic2d
( ) {
38
39
}
40
41
/* *********************************************************************************************************/
/**
42
* Returns the domain minimum for the instance.
43
*
44
* @return The domain minimum for the instance.
45
***********************************************************************************************************/
46
47
double
Isotropic2d::domainMin
( )
const
{
48
49
// BRB FIXME.
50
return
( 0. );
51
}
52
53
/* *********************************************************************************************************/
/**
54
* Returns the domain maximum for the instance.
55
*
56
* @return The domain maximum for the instance.
57
***********************************************************************************************************/
58
59
double
Isotropic2d::domainMax
( )
const
{
60
61
// BRB FIXME.
62
return
( 0. );
63
}
64
65
/* *********************************************************************************************************/
/**
66
* Returns the value 0.5.
67
*
68
* @param a_x2 [in] The is ignored.
69
* @param a_x1 [in] The is ignored.
70
* @return The value 0.5.
71
***********************************************************************************************************/
72
73
double
Isotropic2d::evaluate
(
LUPI_maybeUnused
double
a_x2,
LUPI_maybeUnused
double
a_x1 )
const
{
74
75
return
( 0.5 );
76
}
77
78
}
// End namespace Functions.
79
80
}
// End namespace GIDI.
GIDI.hpp
HAPI.hpp
LUPI_maybeUnused
#define LUPI_maybeUnused
Definition
LUPI_defines.hpp:16
GIDI::Construction::Settings
Definition
GIDI.hpp:541
GIDI::Functions::Function2dForm::Function2dForm
Function2dForm(std::string const &a_moniker, FormType a_type, ptwXY_interpolation a_interpolation, int a_index, double a_outerDomainValue)
Definition
GIDI_form.cc:476
GIDI::Functions::Isotropic2d::evaluate
double evaluate(double a_x2, double a_x1) const
GIDI::Functions::Isotropic2d::Isotropic2d
Isotropic2d(Construction::Settings const &a_construction, HAPI::Node const &a_node, SetupInfo &a_setupInfo, Suite *a_parent)
Definition
GIDI_isotropic2d.cc:29
GIDI::Functions::Isotropic2d::domainMax
double domainMax() const
Definition
GIDI_isotropic2d.cc:59
GIDI::Functions::Isotropic2d::domainMin
double domainMin() const
Definition
GIDI_isotropic2d.cc:47
GIDI::Functions::Isotropic2d::~Isotropic2d
~Isotropic2d()
Definition
GIDI_isotropic2d.cc:37
GIDI::SetupInfo
Definition
GIDI.hpp:594
GIDI::Suite
Definition
GIDI.hpp:2567
HAPI::Node
Definition
HAPI.hpp:166
GIDI::Functions
Definition
GIDI.hpp:49
GIDI
Definition
GIDI.hpp:32
GIDI::FormType
FormType
Definition
GIDI.hpp:118
GIDI::FormType::isotropic2d
@ isotropic2d
Definition
GIDI.hpp:127
geant4-v11.4.0
source
processes
hadronic
models
lend
src
GIDI_isotropic2d.cc
Generated by
1.16.1