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

#include <GIDI.hpp>

Inheritance diagram for GIDI::Functions::PrimaryGamma2d:

Public Member Functions

 PrimaryGamma2d (Construction::Settings const &a_construction, HAPI::Node const &a_node, SetupInfo &a_setupInfo, Suite *a_parent)
 ~PrimaryGamma2d ()
double domainMin () const
double domainMax () const
double value () const
std::string const & finalState () const
double evaluate (double a_x2, double a_x1) const
void toXMLList_func (GUPI::WriteInfo &a_writeInfo, std::string const &a_indent, bool a_embedded, bool a_inRegions) const
Public Member Functions inherited from GIDI::Functions::Function2dForm
 Function2dForm (std::string const &a_moniker, FormType a_type, ptwXY_interpolation a_interpolation, int a_index, double a_outerDomainValue)
 Function2dForm (std::string const &a_moniker, FormType a_type, Axes const &a_axes, ptwXY_interpolation a_interpolation, int a_index, double a_outerDomainValue)
 Function2dForm (Construction::Settings const &a_construction, HAPI::Node const &a_node, SetupInfo &a_setupInfo, FormType a_type, Suite *a_suite=nullptr)
 Function2dForm (Function2dForm const &a_form)
 ~Function2dForm ()
Public Member Functions inherited from GIDI::Functions::FunctionForm
 FunctionForm (std::string const &a_moniker, FormType a_type, int a_dimension, ptwXY_interpolation a_interpolation, int a_index, double a_outerDomainValue)
 FunctionForm (std::string const &a_moniker, FormType a_type, int a_dimension, Axes const &a_axes, ptwXY_interpolation a_interpolation, int a_index, double a_outerDomainValue)
 FunctionForm (Construction::Settings const &a_construction, HAPI::Node const &a_node, SetupInfo &a_setupInfo, FormType a_type, int a_dimension, Suite *a_suite=nullptr)
 FunctionForm (FunctionForm const &a_form)
 ~FunctionForm ()
FunctionFormoperator= (FunctionForm const &a_rhs)
int dimension () const
int index () const
double outerDomainValue () const
void setOuterDomainValue (double a_outerDomainValue)
Axes const & axes () const
Axesaxes ()
ptwXY_interpolation interpolation () const
void setInterpolation (ptwXY_interpolation a_interpolation)
std::string interpolationString () 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 GNDS <primaryGamma> node.

Definition at line 1638 of file GIDI.hpp.

Constructor & Destructor Documentation

◆ PrimaryGamma2d()

GIDI::Functions::PrimaryGamma2d::PrimaryGamma2d ( Construction::Settings const & a_construction,
HAPI::Node const & a_node,
SetupInfo & a_setupInfo,
Suite * a_parent )
Parameters
a_construction[in] Used to pass user options to the constructor.
a_node[in] The HAPI::Node to be parsed and used to construct the XYs2d.
a_setupInfo[in] Information create my the Protare constructor to help in parsing.
a_parent[in] The parent GIDI::Suite.

Definition at line 28 of file GIDI_primaryGamma2d.cc.

28 :
29 Function2dForm( a_construction, a_node, a_setupInfo, FormType::primaryGamma2d, a_parent ),
30 m_domainMin( a_node.attribute( GIDI_domainMinChars ).as_double( ) ),
31 m_domainMax( a_node.attribute( GIDI_domainMaxChars ).as_double( ) ),
32 m_value( a_node.attribute( GIDI_valueChars ).as_double( ) ),
33 m_finalState( a_node.attribute_as_string( GIDI_finalStateChars ) ) {
34
35}
#define GIDI_finalStateChars
Definition GIDI.hpp:448
#define GIDI_valueChars
Definition GIDI.hpp:445
#define GIDI_domainMaxChars
Definition GIDI.hpp:447
#define GIDI_domainMinChars
Definition GIDI.hpp:446
Function2dForm(std::string const &a_moniker, FormType a_type, ptwXY_interpolation a_interpolation, int a_index, double a_outerDomainValue)
Definition GIDI_form.cc:476

◆ ~PrimaryGamma2d()

GIDI::Functions::PrimaryGamma2d::~PrimaryGamma2d ( )

Definition at line 40 of file GIDI_primaryGamma2d.cc.

40 {
41
42}

Member Function Documentation

◆ domainMax()

double GIDI::Functions::PrimaryGamma2d::domainMax ( ) const
inlinevirtual

Returns the value of the m_domainMax member.

Implements GIDI::Functions::FunctionForm.

Definition at line 1651 of file GIDI.hpp.

Referenced by toXMLList_func().

◆ domainMin()

double GIDI::Functions::PrimaryGamma2d::domainMin ( ) const
inlinevirtual

Returns the value of the m_domainMin member.

Implements GIDI::Functions::FunctionForm.

Definition at line 1650 of file GIDI.hpp.

Referenced by toXMLList_func().

◆ evaluate()

double GIDI::Functions::PrimaryGamma2d::evaluate ( double a_x2,
double a_x1 ) const
virtual

◆ finalState()

std::string const & GIDI::Functions::PrimaryGamma2d::finalState ( ) const
inline

Returns a reference to the m_finalState member.

Definition at line 1653 of file GIDI.hpp.

Referenced by MCGIDI::Probabilities::PrimaryGamma2d::PrimaryGamma2d().

◆ toXMLList_func()

void GIDI::Functions::PrimaryGamma2d::toXMLList_func ( GUPI::WriteInfo & a_writeInfo,
std::string const & a_indent,
bool a_embedded,
bool a_inRegions ) 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.
a_embedded[in] If true, this function is embedded in a higher dimensional function.
a_inRegions[in] This is not used in this method.

Reimplemented from GIDI::Functions::FunctionForm.

Definition at line 70 of file GIDI_primaryGamma2d.cc.

70 {
71
72 std::string indent2 = a_writeInfo.incrementalIndent( a_indent );
73 std::string attributes = a_writeInfo.addAttribute( GIDI_valueChars, LUPI::Misc::doubleToShortestString( value( ) ) );
74
77 a_writeInfo.addNodeStarter( a_indent, moniker( ), attributes );
78
79 axes( ).toXMLList( a_writeInfo, indent2 );
80
81 a_writeInfo.addNodeEnder( moniker( ) );
82}
void toXMLList(GUPI::WriteInfo &a_writeInfo, std::string const &a_indent="") const
Definition GIDI_axes.cc:113
Axes const & axes() const
Definition GIDI.hpp:1012
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

Referenced by evaluate().

◆ value()

double GIDI::Functions::PrimaryGamma2d::value ( ) const
inline

Returns the value of the m_value member.

Definition at line 1652 of file GIDI.hpp.

Referenced by toXMLList_func().


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