|
Geant4 11.4.0
Toolkit for the simulation of the passage of particles through matter
|
#include <G4GIDI.hh>
Public Member Functions | |
| G4GIDI (G4int a_ip, std::string const &a_dataDirectory) | |
| G4GIDI (G4int a_ip, std::list< std::string > const &a_dataDirectory) | |
| ~G4GIDI () | |
| G4int | projectileIP () const |
| G4int | numberOfDataDirectories () const |
| G4int | addDataDirectory (std::string const &a_dataDirectory) |
| G4int | removeDataDirectory (std::string const &a_dataDirectory) |
| std::string const | getDataDirectoryAtIndex (G4int a_index) const |
| std::vector< std::string > * | getDataDirectories () const |
| bool | isThisDataAvailable (std::string const &a_lib_name, G4int a_Z, G4int a_A, G4int a_M=0) const |
| bool | isThisDataAvailable (std::string const &a_lib_name, std::string const &a_targetName) const |
| std::string | dataFilename (std::string const &lib_name, G4int a_Z, G4int a_A, G4int a_M=0) const |
| std::string | dataFilename (std::string const &lib_name, std::string const &a_targetName) const |
| std::vector< std::string > * | getNamesOfAvailableLibraries (G4int a_Z, G4int a_A, G4int a_M=0) const |
| std::vector< std::string > * | getNamesOfAvailableLibraries (std::string const &a_targetName) const |
| std::vector< std::string > * | getNamesOfAvailableTargets () const |
| G4GIDI_target * | readTarget (std::string const &lib_name, G4int a_Z, G4int a_A, G4int a_M=0, bool a_bind=true) |
| G4GIDI_target * | readTarget (std::string const &lib_name, std::string const &a_targetName, bool a_bind=true) |
| G4GIDI_target * | getAlreadyReadTarget (G4int a_Z, G4int a_A, G4int a_M=0) |
| G4GIDI_target * | getAlreadyReadTarget (std::string const &a_targetName) |
| G4int | freeTarget (G4int a_Z, G4int a_A, G4int a_M=0) |
| G4int | freeTarget (std::string const &a_targetSymbol) |
| G4int | freeTarget (G4GIDI_target *a_target) |
| std::vector< std::string > * | getListOfReadTargetsNames () |
| G4GIDI::G4GIDI | ( | G4int | a_ip, |
| std::string const & | a_dataDirectory ) |
| a_ip | [in] One of the following ids for the projectile (0:photon, 1:neutron, 2:proton, 3:deutron, 4:triton, 5:helion or 6:alpha). |
| a_dataDirectory | [in] A path to a map file to load. |
Definition at line 84 of file G4GIDI.cc.
| G4GIDI::G4GIDI | ( | G4int | a_ip, |
| std::list< std::string > const & | a_dataDirectories ) |
| a_id | [in] This argument is ignored but needed for backwards compatibility. |
| a_dataDirectories | [in] A list of paths to a map files to load. |
Definition at line 97 of file G4GIDI.cc.
| G4GIDI::~G4GIDI | ( | ) |
| int G4GIDI::addDataDirectory | ( | std::string const & | a_dataDirectory | ) |
Adds the map file a_dataDirectory to this.
| a_dataDirectory | [in] A path to a map file to load. |
Definition at line 121 of file G4GIDI.cc.
Referenced by G4GIDI().
| std::string G4GIDI::dataFilename | ( | std::string const & | a_lib_name, |
| G4int | a_Z, | ||
| G4int | a_A, | ||
| G4int | a_M = 0 ) const |
Returns the file path to the specified target or nullptr if the target does not exists.
| a_lib_name | [in] The evaluation. Call be an empty string. |
| a_Z | [in] The atomic number of the target. |
| a_A | [in] The mass number of the taret. |
| a_M | [in] The meta-stable index of the target. |
Definition at line 233 of file G4GIDI.cc.
Referenced by dataFilename().
| std::string G4GIDI::dataFilename | ( | std::string const & | a_lib_name, |
| std::string const & | a_targetName ) const |
Returns the file path to the specified target or nullptr if the target does not exists.
| a_lib_name | [in] The evaluation. Call be an empty string. |
| a_targetName | [in] The target PoPs id. |
Definition at line 247 of file G4GIDI.cc.
| G4int G4GIDI::freeTarget | ( | G4GIDI_target * | a_target | ) |
If a_target is in member m_protares, removed it from m_protares, delete it and return 0. Otherwise, do nothing and return 1.
| a_target | [in] The evaluation. Call be an empty std::string. |
Definition at line 430 of file G4GIDI.cc.
Determines target name from a_Z, a_A and a_M and calls freeTarget with target's name, and returns its return value.
| a_Z | [in] The atomic number of the target. |
| a_A | [in] The mass number of the taret. |
| a_M | [in] The meta-stable index of the target. |
Definition at line 453 of file G4GIDI.cc.
Referenced by freeTarget(), and freeTarget().
| G4int G4GIDI::freeTarget | ( | std::string const & | targetSymbol | ) |
If target with name targetSymbol is in member m_protares, call freeTarget with target's pointer and return freeTarget's return value. Otherwise, return 1.
Definition at line 465 of file G4GIDI.cc.
| G4GIDI_target * G4GIDI::getAlreadyReadTarget | ( | G4int | a_Z, |
| G4int | a_A, | ||
| G4int | a_M = 0 ) |
Determines target name from a_Z, a_A and a_M and calls getAlreadyReadTarget with target's name, and returns its return value.
| a_Z | [in] The atomic number of the target. |
| a_A | [in] The mass number of the taret. |
| a_M | [in] The meta-stable index of the target. |
Definition at line 398 of file G4GIDI.cc.
Referenced by getAlreadyReadTarget().
| G4GIDI_target * G4GIDI::getAlreadyReadTarget | ( | std::string const & | a_targetName | ) |
Returns the pointer to the G4GIDI_target with name a_targetName in member m_protares or nullptr if one does not exists in m_protares.
| a_targetName | [in] The name of the target. |
Definition at line 412 of file G4GIDI.cc.
| std::vector< std::string > * G4GIDI::getDataDirectories | ( | ) | const |
Returns a list of paths to all loaded map files.
Definition at line 177 of file G4GIDI.cc.
| std::string const G4GIDI::getDataDirectoryAtIndex | ( | G4int | a_index | ) | const |
Removes the map file with path a_dataDirectory from this.
| a_dataDirectory | [in] A path to a map file to unload. |
Definition at line 162 of file G4GIDI.cc.
| std::vector< std::string > * G4GIDI::getListOfReadTargetsNames | ( | void | ) |
If target with name targetSymbol is in member m_protares, call freeTarget with target's pointer and return freeTarget's return value. Otherwise, return 1.
Definition at line 480 of file G4GIDI.cc.
| std::vector< std::string > * G4GIDI::getNamesOfAvailableLibraries | ( | G4int | a_Z, |
| G4int | a_A, | ||
| G4int | a_M = 0 ) const |
Determines target name from a_Z, a_A and a_M and calls getNamesOfAvailableLibraries with target's name, and returns its return value.
| a_Z | [in] The atomic number of the target. |
| a_A | [in] The mass number of the taret. |
| a_M | [in] The meta-stable index of the target. |
Definition at line 268 of file G4GIDI.cc.
Referenced by G4LENDManager::GetLENDTarget(), getNamesOfAvailableLibraries(), and G4LENDManager::IsLENDTargetAvailable().
| std::vector< std::string > * G4GIDI::getNamesOfAvailableLibraries | ( | std::string const & | a_targetName | ) | const |
Returns the list of all evaluations that have a target named a_targetName. User is responsible for freeing the returned list.
Definition at line 279 of file G4GIDI.cc.
| std::vector< std::string > * G4GIDI::getNamesOfAvailableTargets | ( | ) | const |
Returns the list of available targets for this.
Definition at line 300 of file G4GIDI.cc.
| bool G4GIDI::isThisDataAvailable | ( | std::string const & | a_lib_name, |
| G4int | a_Z, | ||
| G4int | a_A, | ||
| G4int | a_M = 0 ) const |
Returns true if the specified target exists in a map file and false otherwise.
| a_lib_name | [in] The evaluation. Call be an empty string. |
| a_Z | [in] The atomic number of the target. |
| a_A | [in] The mass number of the taret. |
| a_M | [in] The meta-stable index of the target. |
Definition at line 199 of file G4GIDI.cc.
Referenced by G4LENDManager::GetLENDTarget(), and isThisDataAvailable().
| bool G4GIDI::isThisDataAvailable | ( | std::string const & | a_lib_name, |
| std::string const & | a_targetName ) const |
Returns true if the specified target exists in a map file and false otherwise.
| a_lib_name | [in] The evaluation. Call be an empty string. |
| a_targetName | [in] The target PoPs id. |
Definition at line 213 of file G4GIDI.cc.
|
inline |
| G4GIDI_target * G4GIDI::readTarget | ( | std::string const & | a_lib_name, |
| G4int | a_Z, | ||
| G4int | a_A, | ||
| G4int | a_M = 0, | ||
| bool | bind = true ) |
Returns the specified target or nullptr if the target does not exists.
| a_lib_name | [in] The evaluation. Call be an empty string. |
| a_Z | [in] The atomic number of the target. |
| a_A | [in] The mass number of the taret. |
| a_M | [in] The meta-stable index of the target. |
Definition at line 331 of file G4GIDI.cc.
Referenced by G4LENDManager::GetLENDTarget(), and readTarget().
| G4GIDI_target * G4GIDI::readTarget | ( | std::string const & | a_lib_name, |
| std::string const & | a_targetName, | ||
| bool | a_bind = true ) |
Returns the protare specified by a_targetName and the projectile for this.
| a_lib_name | [in] The evaluation. Call be an empty std::string. |
| a_targetName | [in] The target PoPs id. |
| a_bind | [in] If true, read target is added to member m_protares. |
Definition at line 346 of file G4GIDI.cc.
| int G4GIDI::removeDataDirectory | ( | std::string const & | a_dataDirectory | ) |
Removes the map file with path a_dataDirectory from this.
| a_dataDirectory | [in] A path to a map file to unload. |
Definition at line 138 of file G4GIDI.cc.