|
Geant4 11.4.0
Toolkit for the simulation of the passage of particles through matter
|
#include <GIDI.hpp>
Public Member Functions | |
| Regions1d (Construction::Settings const &a_construction, HAPI::Node const &a_node, SetupInfo &a_setupInfo, Suite *a_parent) | |
| ~Regions1d () | |
| std::size_t | size () const |
| Function1dForm const * | operator[] (std::size_t a_index) const |
| double | domainMin () const |
| double | domainMax () const |
| void | append (Function1dForm *a_function) |
| 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 |
| std::vector< double > const & | Xs () const |
| std::vector< Function1dForm * > const & | function1ds () const |
| std::vector< Function1dForm * > & | function1ds () |
| 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 |
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) |
| GIDI::Functions::Regions1d::Regions1d | ( | Construction::Settings const & | a_construction, |
| HAPI::Node const & | a_node, | ||
| SetupInfo & | a_setupInfo, | ||
| Suite * | a_parent ) |
| 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 52 of file GIDI_regions1d.cc.
| GIDI::Functions::Regions1d::~Regions1d | ( | ) |
Definition at line 76 of file GIDI_regions1d.cc.
| void GIDI::Functions::Regions1d::append | ( | Function1dForm * | a_function | ) |
Appends the 1d function a_function to the region.
| a_function | [in] The 1d function (i.e., 1d region) to append to the Regions1d. |
Definition at line 111 of file GIDI_regions1d.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. |
| a_accuracy | [in] The accuracy use to convert the data to lin=lin interpolation if needed. |
| a_lowerEps | [in] The relative domain ammount to put a point below a boundary between two regions. |
| a_upperEps | [in] The relative domain ammount to put a point above a boundary between two regions. |
Reimplemented from GIDI::Functions::Function1dForm.
Definition at line 181 of file GIDI_regions1d.cc.
|
virtual |
Returns the domain maximum for the instance.
Implements GIDI::Functions::FunctionForm.
Definition at line 99 of file GIDI_regions1d.cc.
|
virtual |
Returns the domain minimum for the instance.
Implements GIDI::Functions::FunctionForm.
Definition at line 87 of file GIDI_regions1d.cc.
|
virtual |
The value of y(x1) at the point a_x1.
| a_x1 | [in] Domain value to evaluate this at. |
Implements GIDI::Functions::Function1dForm.
Definition at line 135 of file GIDI_regions1d.cc.
Referenced by evaluate().
|
inline |
|
inline |
|
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 161 of file GIDI_regions1d.cc.
|
inline |
|
inline |
Returns number of regions.
Definition at line 1335 of file GIDI.hpp.
Referenced by MCGIDI::Functions::Regions1d::Regions1d().
|
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 290 of file GIDI_regions1d.cc.
|
virtual |
This method calls the write method for each region of this.
| a_file | [in] The C FILE instance to write the data to. |
| a_format | [in] The format string passed to each region's write method. |
Reimplemented from GIDI::Functions::Function1dForm.
Definition at line 321 of file GIDI_regions1d.cc.
|
inline |