|
Geant4 11.4.0
Toolkit for the simulation of the passage of particles through matter
|
#include <GIDI.hpp>
Public Member Functions | |
| Map (std::string const &a_fileName, PoPI::Database const &a_pops, Map const *a_parent=nullptr) | |
| Map (HAPI::Node const &a_node, std::string const &a_fileName, PoPI::Database const &a_pops, Map const *a_parent=nullptr) | |
| ~Map () | |
| Map const * | parent () const |
| std::string const & | fileName () const |
| std::string const & | realFileName () const |
| std::string const & | library () const |
| std::string const & | resolvedLibrary () const |
| void | libraries (std::vector< std::string > &a_libraries) const |
| std::size_t | size () const |
| BaseEntry const * | operator[] (std::size_t a_index) const |
| ProtareBase const * | findProtareEntry (std::string const &a_projectileID, std::string const &a_targetID, std::string const &a_library="", std::string const &a_evaluation="") const |
| void | findProtareEntries (FindProtareEntries &a_protareEntries, std::regex const &a_projectileID, std::regex const &a_targetID, std::regex const &a_library=std::regex(".*"), std::regex const &a_evaluation=std::regex(".*")) const |
| std::string | protareFilename (std::string const &a_projectileID, std::string const &a_targetID, std::string const &a_library="", std::string const &a_evaluation="", BaseEntry::PathForm a_form=BaseEntry::PathForm::real) const |
| bool | isProtareAvailable (std::string const &a_projectileID, std::string const &a_targetID, std::string const &a_library="", std::string const &a_evaluation="") const |
| bool | isTNSL_target (std::string const &a_targetID) const |
| std::vector< std::string > | availableEvaluations (std::string const &a_projectileID, std::string const &a_targetID) const |
| GIDI::Protare * | protare (Construction::Settings const &a_construction, PoPI::Database const &a_pops, std::string const &a_projectileID, std::string const &a_targetID, std::string const &a_library="", std::string const &a_evaluation="", bool a_targetRequiredInGlobalPoPs=true, bool a_requiredInPoPs=true) const |
| std::vector< ProtareBase const * > | directory (std::string const &a_projectileID="", std::string const &a_targetID="", std::string const &a_library="", std::string const &a_evaluation="") const |
| bool | walk (MapWalkCallBack a_mapWalkCallBack, void *a_userData, int a_level=0) const |
| GUPI::Ancestry * | findInAncestry3 (LUPI_maybeUnused std::string const &a_item) |
| GUPI::Ancestry const * | findInAncestry3 (LUPI_maybeUnused std::string const &a_item) const |
| void | saveAs (std::string const &a_fileName) const |
| void | toXMLList (GUPI::WriteInfo &a_writeInfo, std::string const &a_indent="") const |
| std::string | RIS_fileName () |
| bool | RIS_fileExist () |
| RISI::Projectiles const & | RIS_load (std::string const &a_energyUnit) |
| std::string | replacementTarget (PoPI::Database const &a_pops, std::string const &a_projectile, std::string const &a_target) |
| 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) |
| virtual std::string | xlinkItemKey () const |
| 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::Map::Map::Map | ( | std::string const & | a_fileName, |
| PoPI::Database const & | a_pops, | ||
| Map const * | a_parent = nullptr ) |
| a_fileName | [in] The path to the map file to parse to construct a Map instance. |
| a_pops | [in] A PoPI::Database instance used to get particle indices and possibly other particle information. |
| a_parent | [in] Pointer to the Map containing this. |
Definition at line 555 of file GIDI_map.cc.
| GIDI::Map::Map::Map | ( | HAPI::Node const & | a_node, |
| std::string const & | a_fileName, | ||
| PoPI::Database const & | a_pops, | ||
| Map const * | a_parent = nullptr ) |
| a_node | [in] HAPI::Node corresponding to the map node |
| a_fileName | [in] std::string, the name of the file containing this map. |
| a_pops | [in] A PoPI::Database instance used to get particle indices and possibly other particle information. |
| a_parent | [in] Pointer to the Map containing this. |
Definition at line 569 of file GIDI_map.cc.
| GIDI::Map::Map::~Map | ( | ) |
Definition at line 636 of file GIDI_map.cc.
| std::vector< std::string > GIDI::Map::Map::availableEvaluations | ( | std::string const & | a_projectileID, |
| std::string const & | a_targetID ) const |
Returns a list of all evaluations with a match to a_projectileID and a_targetID.
| a_projectileID | [in] The projectile's id to match. |
| a_targetID | [in] The target's id to match. |
Definition at line 753 of file GIDI_map.cc.
| std::vector< ProtareBase const * > GIDI::Map::Map::directory | ( | std::string const & | a_projectileID = "", |
| std::string const & | a_targetID = "", | ||
| std::string const & | a_library = "", | ||
| std::string const & | a_evaluation = "" ) const |
Returns a list of all Protare entry's matching the input data.
| a_projectileID | [in] The projectile's id to match. |
| a_targetID | [in] The target's id to match. |
| a_library | [in] The library to match. |
| a_evaluation | [in] The evaluation to match. |
Definition at line 856 of file GIDI_map.cc.
|
inline |
|
inline |
|
inline |
| void GIDI::Map::Map::findProtareEntries | ( | FindProtareEntries & | a_protareEntries, |
| std::regex const & | a_projectileID, | ||
| std::regex const & | a_targetID, | ||
| std::regex const & | a_library = std::regex( ".*" ), | ||
| std::regex const & | a_evaluation = std::regex( ".*" ) ) const |
Returns the list of all Protare entries that match a_projectileID, a_targetID, a_library and a_evaluation. The arguments a_projectileID, a_targetID, a_library and a_evaluation can be an C++ regex string. An empty string for any of the arguments will match all.
| a_protareEntries | [out] The list of ProtareBase found. |
| a_projectileID | [in] The projectile's id to match. |
| a_targetID | [in] The target's id to match. |
| a_library | [in] The library to match. |
| a_evaluation | [in] The evaluation to match. |
Definition at line 699 of file GIDI_map.cc.
Referenced by replacementTarget().
| ProtareBase const * GIDI::Map::Map::findProtareEntry | ( | std::string const & | a_projectileID, |
| std::string const & | a_targetID, | ||
| std::string const & | a_library = "", | ||
| std::string const & | a_evaluation = "" ) const |
Returns the Protare to the first protare to match a_projectileID, a_targetID and a_evaluation. If a_evaluation is an empty string, only a_projectileID and a_targetID are matched.
| a_projectileID | [in] The projectile's id to match. |
| a_targetID | [in] The target's id to match. |
| a_library | [in] The library to match. |
| a_evaluation | [in] The evaluation to match. |
Definition at line 675 of file GIDI_map.cc.
Referenced by isTNSL_target(), protare(), protareFilename(), and replacementTarget().
|
inline |
| bool GIDI::Map::Map::isTNSL_target | ( | std::string const & | a_targetID | ) | const |
Returns true if a_targetID is a thermal neutron scattering law (TNSL) target id contained this map, including recursion, and false otherwise.
| a_targetID | [in] The target's id. |
Definition at line 736 of file GIDI_map.cc.
| void GIDI::Map::Map::libraries | ( | std::vector< std::string > & | a_libraries | ) | const |
Fills a_libraries with the name of all the libraries this is contained in. The first library in the list is the library this is defined in and the last is the starting library.
| a_libraries | [out] The instances that is filled with the library names. |
Definition at line 657 of file GIDI_map.cc.
Referenced by GIDI::Map::BaseEntry::libraries().
|
inline |
|
inline |
|
inline |
| GIDI::Protare * GIDI::Map::Map::protare | ( | Construction::Settings const & | a_construction, |
| PoPI::Database const & | a_pops, | ||
| std::string const & | a_projectileID, | ||
| std::string const & | a_targetID, | ||
| std::string const & | a_library = "", | ||
| std::string const & | a_evaluation = "", | ||
| bool | a_targetRequiredInGlobalPoPs = true, | ||
| bool | a_requiredInPoPs = true ) const |
If a protare matching a_projectileID, a_targetID and a_evaluation is found, the Protare constructor is called with its fileName.
| a_construction | [in] Pass to the Protare constructor. |
| a_pops | [in] A PoPI::Database instance used to get particle indices and possibly other particle information. |
| a_projectileID | [in] The projectile's id to match. |
| a_targetID | [in] The target's id to match. |
| a_library | [in] The library to match. |
| a_evaluation | [in] The evaluation to match. |
| a_targetRequiredInGlobalPoPs | [in] If true, the target is required to be in a_pops. |
| a_ignorePoPs | [in] If true, no particle is required to be in a_pops. |
Definition at line 787 of file GIDI_map.cc.
Referenced by protare().
| std::string GIDI::Map::Map::protareFilename | ( | std::string const & | a_projectileID, |
| std::string const & | a_targetID, | ||
| std::string const & | a_library = "", | ||
| std::string const & | a_evaluation = "", | ||
| BaseEntry::PathForm | a_form = BaseEntry::PathForm::real ) const |
Returns the path to the first protare to match a_projectileID, a_targetID and a_evaluation. If a_evaluation is an empty string, only a_projectileID and a_targetID are matched.
| a_projectileID | [in] The projectile's id to match. |
| a_targetID | [in] The target's id to match. |
| a_library | [in] The library to match. |
| a_evaluation | [in] The evaluation to match. |
| a_form | [in] Determines the form of the path returned. |
Definition at line 719 of file GIDI_map.cc.
Referenced by isProtareAvailable().
|
inline |
| std::string GIDI::Map::Map::replacementTarget | ( | PoPI::Database const & | a_pops, |
| std::string const & | a_projectile, | ||
| std::string const & | a_target ) |
If this has target a_target for projectile a_projectile, then a_target is returned. If it does not have target a_target, for projectile a_projectile, then a reasonable substitute is returned if one can be found in this. If no reasonable substitute is found, an empty string is returned.
| a_pops | [in] A PoPI::Database instance used to get information about a_target.. |
| a_projectile | [in] The PoPs id of the projectile. |
| a_target | [in] The PoPs id of the target. |
Definition at line 995 of file GIDI_map.cc.
| std::string const & GIDI::Map::Map::resolvedLibrary | ( | ) | const |
Definition at line 644 of file GIDI_map.cc.
| bool GIDI::Map::Map::RIS_fileExist | ( | ) |
Returns true if the RIS file for this map file exists and false otherwise.
Definition at line 958 of file GIDI_map.cc.
Referenced by RIS_load().
| std::string GIDI::Map::Map::RIS_fileName | ( | ) |
Returns the name of the RIS file for this map file. All RIS files must have a standard name which is the name of the map file with its extension replaced with ".ris".
Definition at line 944 of file GIDI_map.cc.
Referenced by RIS_fileExist(), RIS_fileName(), and RIS_load().
| RISI::Projectiles const & GIDI::Map::Map::RIS_load | ( | std::string const & | a_energyUnit | ) |
Load the data from the RIS file if it exists. If it does not exists, no error is reported and the returned RISI::Projectiles will be empty.
| a_energyUnit | [in/out] The unit desired for threshold energies. |
Definition at line 972 of file GIDI_map.cc.
| void GIDI::Map::Map::saveAs | ( | std::string const & | a_fileName | ) | const |
Write this to a file in GNDS/XML format.
| a_fileName | [in] Name of file to save XML lines to. |
Definition at line 902 of file GIDI_map.cc.
|
inline |
|
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. |
Reimplemented from GUPI::Ancestry.
Definition at line 921 of file GIDI_map.cc.
Referenced by saveAs().
| bool GIDI::Map::Map::walk | ( | MapWalkCallBack | a_mapWalkCallBack, |
| void * | a_userData, | ||
| int | a_level = 0 ) const |
A method to walk a map file. For each Protare entry found, the a_mapWalkCallBack function is called with a pointer to the Protare entry and a_userData has its arguments.
| a_mapWalkCallBack | [in] The callback function. |
| a_userData | [in] Pointer to user data. |
| a_level | [in] Nested level of this map file. For internal use. |
Definition at line 876 of file GIDI_map.cc.
Referenced by directory(), and walk().