|
Geant4 11.4.0
Toolkit for the simulation of the passage of particles through matter
|
#include <GIDI.hpp>
Public Member Functions | |
| XYs1d () | |
| XYs1d (Axes const &a_axes, ptwXY_interpolation m_interpolation, int a_index=0, double a_outerDomainValue=0.0) | |
| XYs1d (Axes const &a_axes, ptwXY_interpolation m_interpolation, std::vector< double > const &a_values, int a_index=0, double a_outerDomainValue=0.0) | |
| XYs1d (Axes const &a_axes, ptwXY_interpolation m_interpolation, std::vector< double > const &a_xs, std::vector< double > const &a_ys, int a_index=0, double a_outerDomainValue=0.0) | |
| XYs1d (Axes const &a_axes, ptwXYPoints *a_ptwXY, int a_index=0, double a_outerDomainValue=0.0) | |
| XYs1d (Construction::Settings const &a_construction, HAPI::Node const &a_node, SetupInfo &a_setupInfo, Suite *a_parent) | |
| XYs1d (XYs1d const &a_XYs1d) | |
| ~XYs1d () | |
| XYs1d & | operator= (XYs1d const &a_rhs) |
| std::size_t | size () const |
| ptwXYPoints const * | ptwXY () const |
| ptwXYPoints * | ptwXY () |
| std::pair< double, double > | operator[] (std::size_t a_index) const |
| XYs1d | operator+ (XYs1d const &a_XYs1d) const |
| XYs1d & | operator+= (XYs1d const &a_XYs1d) |
| XYs1d | operator- (XYs1d const &a_XYs1d) const |
| XYs1d & | operator-= (XYs1d const &a_XYs1d) |
| XYs1d | operator* (double a_value) const |
| XYs1d | operator* (XYs1d const &a_XYs1d) const |
| XYs1d & | operator*= (double a_value) |
| XYs1d & | operator*= (XYs1d const &a_XYs1d) |
| double | domainMin () const |
| double | domainMax () const |
| std::vector< double > | xs () const |
| std::vector< double > | ys () const |
| std::vector< double > | ysMappedToXs (std::vector< double > const &a_xs, std::size_t *a_offset) const |
| XYs1d | domainSlice (double a_domainMin, double a_domainMax, bool a_fill) const |
| XYs1d | domainSliceMax (double a_domainMax) const |
| double | evaluate (double a_x1) const |
| void | mapToXsAndAdd (std::size_t a_offset, std::vector< double > const &a_Xs, std::vector< double > &a_results, double a_scaleFactor) const |
| XYs1d * | asXYs1d (bool a_asLinlin, double a_accuray, double a_lowerEps, double a_upperEps) const |
| double | integrate (double a_dommainMin, double a_dommainMax) |
| double | normalize () |
| Xs_pdf_cdf1d | toXs_pdf_cdf1d () |
| void | toXMLList_func (GUPI::WriteInfo &a_writeInfo, std::string const &a_indent, bool a_embedded, bool a_inRegions) const |
| void | write (FILE *a_file, std::string const &a_format) const |
| Public Member Functions inherited from GIDI::Functions::Function1dForm | |
| Function1dForm (std::string const &a_moniker, FormType a_type, ptwXY_interpolation a_interpolation, int a_index, double a_outerDomainValue) | |
| Function1dForm (std::string const &a_moniker, FormType a_type, Axes const &a_axes, ptwXY_interpolation a_interpolation, int a_index, double a_outerDomainValue) | |
| Function1dForm (Construction::Settings const &a_construction, HAPI::Node const &a_node, SetupInfo &a_setupInfo, FormType a_type, Suite *a_suite=nullptr) | |
| Function1dForm (Function1dForm const &a_form) | |
| ~Function1dForm () | |
| Function1dForm & | operator= (Function1dForm const &a_rhs) |
| void | print (std::string const &a_format) const |
| 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 () | |
| FunctionForm & | operator= (FunctionForm const &a_rhs) |
| int | dimension () const |
| int | index () const |
| double | outerDomainValue () const |
| void | setOuterDomainValue (double a_outerDomainValue) |
| Axes const & | axes () const |
| Axes & | axes () |
| 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 () |
| Form & | operator= (Form const &a_rhs) |
| Suite * | parent () 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::Ancestry * | findInAncestry3 (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 () |
| Ancestry & | operator= (Ancestry const &a_ancestry) |
| std::string const & | moniker () const |
| void | setMoniker (std::string const &a_moniker) |
| Ancestry * | ancestor () |
| Ancestry const * | ancestor () const |
| void | setAncestor (Ancestry *a_ancestor) |
| std::string | attribute () const |
| Ancestry * | root () |
| Ancestry const * | root () const |
| bool | isChild (Ancestry *a_instance) |
| bool | isParent (Ancestry *a_parent) |
| bool | isRoot () const |
| Ancestry * | findInAncestry (std::string const &a_href) |
| Ancestry const * | findInAncestry (std::string const &a_href) const |
| virtual Ancestry * | findInAncestry3 (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 |
Static Public Member Functions | |
| static XYs1d * | makeConstantXYs1d (Axes const &a_axes, double a_domainMin, double a_domainMax, double a_value) |
| Static Public Member Functions inherited from GUPI::Ancestry | |
| static std::string | buildXLinkItemKey (std::string const &a_name, std::string const &a_key) |
| GIDI::Functions::XYs1d::XYs1d | ( | ) |
Constructor an empty XYs1d instance.
Definition at line 30 of file GIDI_XYs1d.cc.
Referenced by asXYs1d(), domainSlice(), domainSliceMax(), makeConstantXYs1d(), operator*(), operator*(), operator*=(), operator*=(), operator+(), operator+=(), operator-(), operator-=(), operator=(), XYs1d(), XYs1d(), XYs1d(), XYs1d(), XYs1d(), XYs1d(), and XYs1d().
| GIDI::Functions::XYs1d::XYs1d | ( | Axes const & | a_axes, |
| ptwXY_interpolation | a_interpolation, | ||
| int | a_index = 0, | ||
| double | a_outerDomainValue = 0.0 ) |
Constructor that creates an empty instance.
| a_axes | [in] The axes to copy for this. |
| a_interpolation | [in] The interpolation along the outer most independent axis and the dependent axis. |
| a_index | [in] Currently not used. |
| a_outerDomainValue | [in] If embedded in a higher dimensional function, the value of the domain of the next higher dimension. |
Definition at line 48 of file GIDI_XYs1d.cc.
| GIDI::Functions::XYs1d::XYs1d | ( | Axes const & | a_axes, |
| ptwXY_interpolation | a_interpolation, | ||
| std::vector< double > const & | a_values, | ||
| int | a_index = 0, | ||
| double | a_outerDomainValue = 0.0 ) |
Constructor that create an instance from a list of doubles via a_values which must have an even number of values.
| a_axes | [in] The axes to copy for this. |
| a_interpolation | [in] The interpolation along the outer most independent axis and the dependent axis. |
| a_values | [in] The data values as ( x_1, y_1, x_2, y_2, ..., x_n, y_n ). Must be an even number since they are n-pairs of xy values. |
| a_index | [in] Currently not used. |
| a_outerDomainValue | [in] If embedded in a higher dimensional function, the value of the domain of the next higher dimension. |
Definition at line 67 of file GIDI_XYs1d.cc.
| GIDI::Functions::XYs1d::XYs1d | ( | Axes const & | a_axes, |
| ptwXY_interpolation | a_interpolation, | ||
| std::vector< double > const & | a_xs, | ||
| std::vector< double > const & | a_ys, | ||
| int | a_index = 0, | ||
| double | a_outerDomainValue = 0.0 ) |
Constructor that creates an instance from a list of x values and a list of y values. The size of a_xs and a_ys must be the same.
| a_axes | [in] The axes to copy for this. |
| a_interpolation | [in] The interpolation along the outer most independent axis and the dependent axis. |
| a_xs | [in] The data values as ( x_1, x_2, ..., x_n ). |
| a_ys | [in] The data values as ( y_1, y_2, ..., y_n ). |
| a_index | [in] Currently not used. |
| a_outerDomainValue | [in] If embedded in a higher dimensional function, the value of the domain of the next higher dimension. |
Definition at line 88 of file GIDI_XYs1d.cc.
| GIDI::Functions::XYs1d::XYs1d | ( | Axes const & | a_axes, |
| ptwXYPoints * | a_ptwXY, | ||
| int | a_index = 0, | ||
| double | a_outerDomainValue = 0.0 ) |
Constructor that uses an existing ptwXYPoints instance. The m_ptwXY member is set to ptwXYPoints (i.e., this XYs1d instance now owns the inputted ptwXYPoints instance).
| a_axes | [in] The axes to copy for this. |
| a_ptwXY | [in] The ptwXYPoints instance that this takes ownership of.* |
| a_index | [in] Currently not used. |
| a_outerDomainValue | [in] If embedded in a higher dimensional function, the value of the domain of the next higher dimension. |
Definition at line 109 of file GIDI_XYs1d.cc.
| GIDI::Functions::XYs1d::XYs1d | ( | Construction::Settings const & | a_construction, |
| HAPI::Node const & | a_node, | ||
| SetupInfo & | a_setupInfo, | ||
| Suite * | a_parent ) |
Constructs the instance from a HAPI::Node instance.
| a_construction | [in] Used to pass user options for parsing. |
| a_node | [in] The XYs1d HAPI::Node to be parsed and to construct the instance. |
| a_setupInfo | [in] Information create my the Protare constructor to help in parsing. |
| a_parent | [in] If imbedded in a two dimensional function, its pointers. |
Definition at line 124 of file GIDI_XYs1d.cc.
| GIDI::Functions::XYs1d::XYs1d | ( | XYs1d const & | a_XYs1d | ) |
The XYs1d copy constructor.
| a_XYs1d | [in] The XYs1d instance to copy. |
Definition at line 145 of file GIDI_XYs1d.cc.
| GIDI::Functions::XYs1d::~XYs1d | ( | ) |
Definition at line 156 of file GIDI_XYs1d.cc.
|
virtual |
This methods returns an XYs1d representation of this. The calling function owns the created instance and is responible for freeing it.
| a_asLinlin | [in] If true, the inpolatation of the returned XYs1d instance will always be lin-lin. Otherwise, the interpolation depends on the child 1d functions. This argument is not needed or used for this class. |
| a_accuracy | [in] The accuracy use to convert the data to lin=lin interpolation if needed. This argument is not needed or used for this cl |
| a_lowerEps | [in] The dulling of the point at the domain minimum. |
| a_upperEps | [in] The dulling of the point at the domain maximum. |
Reimplemented from GIDI::Functions::Function1dForm.
Definition at line 537 of file GIDI_XYs1d.cc.
Referenced by GIDI::calculate1dMultiGroupDataInComponent(), GIDI::calculate1dMultiGroupFissionEnergyRelease(), and GIDI::Reaction::modifyCrossSection().
|
inlinevirtual |
Returns last x1 value of this.
Implements GIDI::Functions::FunctionForm.
Definition at line 1115 of file GIDI.hpp.
Referenced by GIDI::calculate1dMultiGroupDataInComponent(), and GIDI::Reaction::modifyCrossSection().
|
inlinevirtual |
Returns first x1 value of this.
Implements GIDI::Functions::FunctionForm.
Definition at line 1114 of file GIDI.hpp.
Referenced by GIDI::calculate1dMultiGroupDataInComponent(), and GIDI::Reaction::modifyCrossSection().
| XYs1d GIDI::Functions::XYs1d::domainSlice | ( | double | a_domainMin, |
| double | a_domainMax, | ||
| bool | a_fill ) const |
Returns an XYs1d instance that is a domain slice of this from domainMin to domainMax. If the minimum (maximum) of this is greater (less) than domainMin (domainMax) that domain is unchanged. If this's minimum is less than domainMin, a_fill is true and there is no point at domainMin then an interpolated point is added at domainMin. Similarly for domainMax.
| a_domainMin | [in] The minimum domain for the returned instance if this' minimum is less than **domainMin*. |
| a_domainMax | [in] The maximum domain for the returned instance if this' maximum is less than **domainMax*. |
| a_fill | [in] If true, values at domainMin and domainMax are added if needed. |
Definition at line 445 of file GIDI_XYs1d.cc.
Referenced by GIDI::Reaction::modifyCrossSection().
| XYs1d GIDI::Functions::XYs1d::domainSliceMax | ( | double | a_domainMax | ) | const |
Returns an XYs1d instance that is this from its domain minimum to domainMax.
| a_domainMax | [in] The maximum domain |
Definition at line 465 of file GIDI_XYs1d.cc.
|
virtual |
The y value of this at the domain value a_x1.
| a_x1 | [in] Domain value to evaluate this at. |
Implements GIDI::Functions::Function1dForm.
Definition at line 484 of file GIDI_XYs1d.cc.
Referenced by GIDI::Functions::Regions1d::asXYs1d(), GIDI::Reaction::modifyCrossSection(), and GIDI::Reaction::Reaction().
| double GIDI::Functions::XYs1d::integrate | ( | double | a_dommainMin, |
| double | a_dommainMax ) |
This method returns this that is norimalized (i.e., its integral if 1.). The returned value is the integral of this before being normalized.
Definition at line 560 of file GIDI_XYs1d.cc.
|
static |
This is a factory function for the XYs1d class that creates a XYs1d instance with the constant value of a_value for the domain from a_domainMin to a_domainMax.
| a_axes | [in] The axes for the function. |
| a_domainMin | [in] The minimum of the domain for which the function is defined. |
| a_domainMax | [in] The maximum of the domain for which the function is defined. |
| a_value | [in] The y-value of the function over its domain. |
Definition at line 678 of file GIDI_XYs1d.cc.
Referenced by GIDI::calculate1dMultiGroupDataInComponent(), and GIDI::Reaction::modifyCrossSection().
|
virtual |
Evaluates this at the X-values in a_Xs[a_offset:] and adds the results to a_results[a_offset:]. a_Xs and a_results must be the same size otherwise a throw is executed.
| a_offset | [in] The offset in a_Xs to start. |
| a_Xs | [in] The list of domain values to evaluate this at. |
| a_results | [in] The list whose values are added to by the Y-values of this. |
| a_scaleFactor | [in] A factor applied to each evaluation before it is added to a_results. |
Reimplemented from GIDI::Functions::Function1dForm.
Definition at line 511 of file GIDI_XYs1d.cc.
| double GIDI::Functions::XYs1d::normalize | ( | ) |
This method returns this that is norimalized (i.e., its integral if 1.). The returned value is the integral of this before being normalized.
Definition at line 578 of file GIDI_XYs1d.cc.
| XYs1d GIDI::Functions::XYs1d::operator* | ( | double | a_value | ) | const |
Multiplies this by a double and returns the result.
| a_value | [in] Number with this instance. |
Definition at line 286 of file GIDI_XYs1d.cc.
Multiplies this with another XYs1d instances and returns the result.
| a_rhs | [in] The XYs1d instance to multiply with this instance. |
Definition at line 302 of file GIDI_XYs1d.cc.
| XYs1d & GIDI::Functions::XYs1d::operator*= | ( | double | a_value | ) |
Multiplies a double with this.
| a_rhs | [in] The XYs1d instance to subtract from this instance. |
Definition at line 318 of file GIDI_XYs1d.cc.
Multiplies this with an XYs1d instance.
| a_rhs | [in] The XYs1d instance to subtract from this instance. |
Definition at line 337 of file GIDI_XYs1d.cc.
Adds two XYs1d instances and returns the result.
| a_rhs | [in] The XYs1d instance to add to this instance. |
Definition at line 205 of file GIDI_XYs1d.cc.
Adds an XYs1d instance to this.
| a_rhs | [in] The XYs1d instance to add to this instance. |
Definition at line 220 of file GIDI_XYs1d.cc.
Subtracts two XYs1d instances and returns the result.
| a_rhs | [in] The XYs1d instance to substract from this instance. |
Definition at line 245 of file GIDI_XYs1d.cc.
Subtracts an XYs1d instance from this.
| a_rhs | [in] The XYs1d instance to subtract from this instance. |
Definition at line 260 of file GIDI_XYs1d.cc.
The assignment operator. This method sets the members of this to those of a_rhs except for those not set by base classes.
| a_rhs | [in] Instance whose member are used to set the members of this. |
Definition at line 168 of file GIDI_XYs1d.cc.
| std::pair< double, double > GIDI::Functions::XYs1d::operator[] | ( | std::size_t | a_index | ) | const |
The element access methods that returns a point (i.e., an x1, y pair).
| a_index | [in] The index of the element to access. |
Definition at line 188 of file GIDI_XYs1d.cc.
|
inline |
|
inline |
Returns the value of the m_ptwXY member.
Definition at line 1101 of file GIDI.hpp.
Referenced by GIDI::Reaction::modifyCrossSection(), GIDI::multiGroupTwoXYs1ds(), GIDI::multiGroupXYs1d(), operator*=(), operator+=(), operator-=(), operator=(), GIDI::ProtareTNSL::TNSL_crossSectionSumCorrection(), and XYs1d().
|
inline |
Returns the number of points (i.e., x,y pairs) in this.
Definition at line 1100 of file GIDI.hpp.
Referenced by domainMax(), GIDI::Reaction::modifyCrossSection(), toXMLList_func(), xs(), MCGIDI::Functions::XYs1d::XYs1d(), ys(), and ysMappedToXs().
|
virtual |
Fills the argument a_writeInfo with the XML lines that represent this. Recursively enters each sub-node.
| 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] If true, this is in a Regions1d container. |
Reimplemented from GIDI::Functions::FunctionForm.
Definition at line 625 of file GIDI_XYs1d.cc.
| Xs_pdf_cdf1d GIDI::Functions::XYs1d::toXs_pdf_cdf1d | ( | ) |
This method returns a Xs_pdf_cdf1d representation of this.
Definition at line 598 of file GIDI_XYs1d.cc.
|
virtual |
Writes the (x,y) values to a_file. The format string must have two double conversion specifiers (e.g., " %12.3e %.6f").
| a_file | [in] The C FILE instance to write the data to. |
| a_format | [in] The format string passed to the C printf function. |
Reimplemented from GIDI::Functions::Function1dForm.
Definition at line 663 of file GIDI_XYs1d.cc.
| std::vector< double > GIDI::Functions::XYs1d::xs | ( | ) | const |
Returns the list of x1 values of this.
Definition at line 361 of file GIDI_XYs1d.cc.
Referenced by toXs_pdf_cdf1d().
| std::vector< double > GIDI::Functions::XYs1d::ys | ( | ) | const |
Returns the list of y values of this.
Definition at line 380 of file GIDI_XYs1d.cc.
Referenced by toXs_pdf_cdf1d().
| std::vector< double > GIDI::Functions::XYs1d::ysMappedToXs | ( | std::vector< double > const & | a_xs, |
| std::size_t * | a_offset ) const |
Returns a list of values that are this y mapped to the x1 values in a_xs.
| a_xs | [in] The list of x1 values to map this' y values to. |
| a_offset | [out] The index of the first value in a_xs where this starts. |
Definition at line 401 of file GIDI_XYs1d.cc.