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

#include <GIDI.hpp>

Inheritance diagram for GIDI::Distributions::AngularTwoBody:

Public Member Functions

 AngularTwoBody (std::string const &a_label, Frame a_productFrame, Functions::Function2dForm *a_angular=nullptr)
 AngularTwoBody (Construction::Settings const &a_construction, HAPI::Node const &a_node, SetupInfo &a_setupInfo, Suite *a_parent)
 ~AngularTwoBody ()
Functions::Function2dForm const * angular () const
void toXMLList (GUPI::WriteInfo &a_writeInfo, std::string const &a_indent="") const
Public Member Functions inherited from GIDI::Distributions::Distribution
 Distribution (std::string const &a_moniker, FormType a_type, std::string const &a_label, Frame a_productFrame)
 Distribution (HAPI::Node const &a_node, SetupInfo &a_setupInfo, FormType a_type, Suite *a_parent)
Frame productFrame () const
void toXMLNodeStarter (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 angularTwoBody node.

Definition at line 2246 of file GIDI.hpp.

Constructor & Destructor Documentation

◆ AngularTwoBody() [1/2]

GIDI::Distributions::AngularTwoBody::AngularTwoBody ( std::string const & a_label,
Frame a_productFrame,
Functions::Function2dForm * a_angular = nullptr )
Parameters
a_label[in] The label for this form.
a_productFrame[in] The frame the product data as in.
a_angular[in] The 2-d functional angular representation.

Definition at line 110 of file GIDI_distributions.cc.

110 :
112 m_angular( a_angular ) {
113
114 if( a_angular != nullptr ) a_angular->setAncestor( this );
115}
#define GIDI_angularTwoBodyChars
Definition GIDI.hpp:343
Distribution(std::string const &a_moniker, FormType a_type, std::string const &a_label, Frame a_productFrame)

◆ AngularTwoBody() [2/2]

GIDI::Distributions::AngularTwoBody::AngularTwoBody ( 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 AngularTwoBody.
a_setupInfo[in] Information create my the Protare constructor to help in parsing.
a_parent[in] The m_distribution member of GIDI::Product this distribution form belongs to.

Definition at line 125 of file GIDI_distributions.cc.

125 :
126 Distribution( a_node, a_setupInfo, FormType::angularTwoBody, a_parent ),
127 m_angular( data2dParse( a_construction, a_node.first_child( ), a_setupInfo, nullptr ) ) {
128
129}
Functions::Function2dForm * data2dParse(Construction::Settings const &a_construction, HAPI::Node const &a_node, SetupInfo &a_setupInfo, Suite *parent)

◆ ~AngularTwoBody()

GIDI::Distributions::AngularTwoBody::~AngularTwoBody ( )

Definition at line 134 of file GIDI_distributions.cc.

134 {
135
136 delete m_angular;
137}

Member Function Documentation

◆ angular()

Functions::Function2dForm const * GIDI::Distributions::AngularTwoBody::angular ( ) const
inline

Returns the value of the m_angular member as a const pointer.

Definition at line 2256 of file GIDI.hpp.

◆ toXMLList()

void GIDI::Distributions::AngularTwoBody::toXMLList ( GUPI::WriteInfo & a_writeInfo,
std::string const & a_indent = "" ) 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.

Reimplemented from GUPI::Ancestry.

Definition at line 146 of file GIDI_distributions.cc.

146 {
147
148 std::string indent2 = a_writeInfo.incrementalIndent( a_indent );
149
150 toXMLNodeStarter( a_writeInfo, a_indent );
151 if( m_angular != nullptr ) m_angular->toXMLList( a_writeInfo, indent2 );
152 a_writeInfo.addNodeEnder( moniker( ) );
153}
void toXMLNodeStarter(GUPI::WriteInfo &a_writeInfo, std::string const &a_indent="") const
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

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