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

#include <GIDI.hpp>

Inheritance diagram for GIDI::Functions::Weighted_function2d:

Public Member Functions

 Weighted_function2d (Construction::Settings const &a_construction, HAPI::Node const &a_node, SetupInfo &a_setupInfo, Suite *a_parent)
 ~Weighted_function2d ()
double domainMin () const
double domainMax () const
Function1dForm const * weight () const
Function2dForm const * energy () const
double evaluate (double a_x2, double a_x1) 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
virtual void toXMLList_func (GUPI::WriteInfo &a_writeInfo, std::string const &a_indent, bool a_embedded, bool a_inRegions) 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 <weighted> node.

Definition at line 1796 of file GIDI.hpp.

Constructor & Destructor Documentation

◆ Weighted_function2d()

GIDI::Functions::Weighted_function2d::Weighted_function2d ( 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 for parsing.
a_node[in] The HAPI::Node to be parsed to construct a Weighted_function2d instance.
a_setupInfo[in] Information create my the Protare constructor to help in parsing.
a_parent[in] The parent GIDI::Suite.

Definition at line 458 of file GIDI_energyFunctions2d.cc.

458 :
459 Function2dForm( a_construction, a_node, a_setupInfo, FormType::weighted_function2d, a_parent ) {
460
461 HAPI::Node child = a_node.first_child( );
462 m_weight = data1dParse( a_construction, child, a_setupInfo, nullptr );
463
464 child.to_next_sibling( );
465 m_energy = data2dParse( a_construction, child, a_setupInfo, nullptr );
466}
Function2dForm(std::string const &a_moniker, FormType a_type, ptwXY_interpolation a_interpolation, int a_index, double a_outerDomainValue)
Definition GIDI_form.cc:476
void to_next_sibling() const
Definition HAPI_Node.cc:112
Functions::Function1dForm * data1dParse(Construction::Settings const &a_construction, HAPI::Node const &a_node, SetupInfo &a_setupInfo, Suite *parent)
@ weighted_function2d
Definition GIDI.hpp:129
Functions::Function2dForm * data2dParse(Construction::Settings const &a_construction, HAPI::Node const &a_node, SetupInfo &a_setupInfo, Suite *parent)

◆ ~Weighted_function2d()

GIDI::Functions::Weighted_function2d::~Weighted_function2d ( )

Definition at line 471 of file GIDI_energyFunctions2d.cc.

471 {
472
473 delete m_weight;
474 delete m_energy;
475}

Member Function Documentation

◆ domainMax()

double GIDI::Functions::Weighted_function2d::domainMax ( ) const
virtual

Returns the domain maximum for the instance.

Returns
The domain maximum for the instance.

Implements GIDI::Functions::FunctionForm.

Definition at line 494 of file GIDI_energyFunctions2d.cc.

494 {
495
496 return( m_weight->domainMax( ) );
497}

◆ domainMin()

double GIDI::Functions::Weighted_function2d::domainMin ( ) const
virtual

Returns the domain minimum for the instance.

Returns
The domain minimum for the instance.

Implements GIDI::Functions::FunctionForm.

Definition at line 483 of file GIDI_energyFunctions2d.cc.

483 {
484
485 return( m_weight->domainMin( ) );
486}

◆ energy()

Function2dForm const * GIDI::Functions::Weighted_function2d::energy ( ) const
inline

Returns the value of the m_energy member.

Definition at line 1810 of file GIDI.hpp.

◆ evaluate()

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

Returns the value of the function evaluated at the specified projectile's energy and product's energy. Currently not implemented.

Parameters
a_x2[in] The projectile's energy.
a_x1[in] The product's energy.
Returns
The value of the function evaluated at a_x2, and a_x1.

Implements GIDI::Functions::Function2dForm.

Definition at line 508 of file GIDI_energyFunctions2d.cc.

508 {
509
510 throw Exception( "Weighted_function2d::evaluate: not implemented." );
511}

◆ weight()

Function1dForm const * GIDI::Functions::Weighted_function2d::weight ( ) const
inline

Returns the value of the m_weight member.

Definition at line 1809 of file GIDI.hpp.


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