Geant4  10.00.p01
G4GIDI Class Reference

#include <G4GIDI.hh>

Public Member Functions

 G4GIDI (int ip, std::string &dataDirectory)
 
 G4GIDI (int ip, std::list< std::string > &dataDirectory)
 
 ~G4GIDI ()
 
int numberOfDataDirectories (void)
 
int addDataDirectory (std::string &dataDirectory)
 
int removeDataDirectory (std::string &dataDirectory)
 
std::string getDataDirectoryAtIndex (int index)
 
std::vector< std::string > * getDataDirectories (void)
 
bool isThisDataAvailable (std::string &lib_name, int iZ, int iA, int iM=0)
 
bool isThisDataAvailable (std::string &lib_name, std::string &targetName)
 
char * dataFilename (std::string &lib_name, int iZ, int iA, int iM=0)
 
char * dataFilename (std::string &lib_name, std::string &targetName)
 
std::vector< std::string > * getNamesOfAvailableLibraries (int iZ, int iA, int iM=0)
 
std::vector< std::string > * getNamesOfAvailableLibraries (std::string &targetName)
 
std::vector< std::string > * getNamesOfAvailableTargets (void)
 
G4GIDI_targetreadTarget (std::string &lib_name, int iZ, int iA, int iM=0, bool bind=true)
 
G4GIDI_targetreadTarget (std::string &lib_name, std::string &targetName, bool bind=true)
 
G4GIDI_targetgetAlreadyReadTarget (int iZ, int iA, int iM=0)
 
G4GIDI_targetgetAlreadyReadTarget (std::string &targetName)
 
int freeTarget (int iZ, int iA, int iM=0)
 
int freeTarget (std::string &targetSymbol)
 
int freeTarget (G4GIDI_target *target)
 
std::vector< std::string > * getListOfReadTargetsNames (void)
 

Private Member Functions

int init (int ip)
 

Private Attributes

int projectileID
 
std::list< G4GIDI_map * > dataDirectories
 
std::vector< G4GIDI_target * > targets
 

Detailed Description

Definition at line 73 of file G4GIDI.hh.

Constructor & Destructor Documentation

G4GIDI::G4GIDI ( int  ip,
std::string &  dataDirectory 
)

Definition at line 72 of file G4GIDI.cc.

G4GIDI::G4GIDI ( int  ip,
std::list< std::string > &  dataDirectory 
)

Definition at line 80 of file G4GIDI.cc.

G4GIDI::~G4GIDI ( void  )

Definition at line 90 of file G4GIDI.cc.

Member Function Documentation

int G4GIDI::addDataDirectory ( std::string &  dataDirectory)

Definition at line 124 of file G4GIDI.cc.

char * G4GIDI::dataFilename ( std::string &  lib_name,
int  iZ,
int  iA,
int  iM = 0 
)

Definition at line 211 of file G4GIDI.cc.

References G4GIDI_Misc_Z_A_m_ToName(), and xData_free().

+ Here is the call graph for this function:

char * G4GIDI::dataFilename ( std::string &  lib_name,
std::string &  targetName 
)

Definition at line 224 of file G4GIDI.cc.

References tpia_map_findTarget().

+ Here is the call graph for this function:

int G4GIDI::freeTarget ( int  iZ,
int  iA,
int  iM = 0 
)

Definition at line 367 of file G4GIDI.cc.

References G4GIDI_Misc_Z_A_m_ToName(), and xData_free().

+ Here is the call graph for this function:

int G4GIDI::freeTarget ( std::string &  targetSymbol)

Definition at line 381 of file G4GIDI.cc.

int G4GIDI::freeTarget ( G4GIDI_target target)

Definition at line 351 of file G4GIDI.cc.

G4GIDI_target * G4GIDI::getAlreadyReadTarget ( int  iZ,
int  iA,
int  iM = 0 
)

Definition at line 325 of file G4GIDI.cc.

References G4GIDI_Misc_Z_A_m_ToName(), and xData_free().

+ Here is the call graph for this function:

G4GIDI_target * G4GIDI::getAlreadyReadTarget ( std::string &  targetName)

Definition at line 339 of file G4GIDI.cc.

vector< string > * G4GIDI::getDataDirectories ( void  )

Definition at line 172 of file G4GIDI.cc.

string G4GIDI::getDataDirectoryAtIndex ( int  index)

Definition at line 155 of file G4GIDI.cc.

vector< string > * G4GIDI::getListOfReadTargetsNames ( void  )

Definition at line 393 of file G4GIDI.cc.

vector< string > * G4GIDI::getNamesOfAvailableLibraries ( int  iZ,
int  iA,
int  iM = 0 
)

Definition at line 240 of file G4GIDI.cc.

References G4GIDI_Misc_Z_A_m_ToName(), and xData_free().

Referenced by G4LENDManager::GetLENDTarget(), and G4LENDManager::IsLENDTargetAvailable().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

vector< string > * G4GIDI::getNamesOfAvailableLibraries ( std::string &  targetName)

Definition at line 254 of file G4GIDI.cc.

References tpia_map_findAllOfTarget(), tpia_map_free(), tpia_map_getFirstEntry(), and tpia_map_getNextEntry().

+ Here is the call graph for this function:

vector< string > * G4GIDI::getNamesOfAvailableTargets ( void  )

Definition at line 275 of file G4GIDI.cc.

References getNamesOfAvailableTargets_walker(), and tpia_map_walkTree().

+ Here is the call graph for this function:

int G4GIDI::init ( int  ip)
private

Definition at line 109 of file G4GIDI.cc.

bool G4GIDI::isThisDataAvailable ( std::string &  lib_name,
int  iZ,
int  iA,
int  iM = 0 
)

Definition at line 184 of file G4GIDI.cc.

References G4GIDI_Misc_Z_A_m_ToName(), and xData_free().

Referenced by G4LENDManager::GetLENDTarget().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

bool G4GIDI::isThisDataAvailable ( std::string &  lib_name,
std::string &  targetName 
)

Definition at line 198 of file G4GIDI.cc.

References xData_free().

+ Here is the call graph for this function:

int G4GIDI::numberOfDataDirectories ( void  )

Definition at line 117 of file G4GIDI.cc.

G4GIDI_target * G4GIDI::readTarget ( std::string &  lib_name,
int  iZ,
int  iA,
int  iM = 0,
bool  bind = true 
)

Definition at line 293 of file G4GIDI.cc.

References G4GIDI_Misc_Z_A_m_ToName(), and xData_free().

Referenced by G4LENDManager::GetLENDTarget().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4GIDI_target * G4GIDI::readTarget ( std::string &  lib_name,
std::string &  targetName,
bool  bind = true 
)

Definition at line 307 of file G4GIDI.cc.

References xData_free().

+ Here is the call graph for this function:

int G4GIDI::removeDataDirectory ( std::string &  dataDirectory)

Definition at line 140 of file G4GIDI.cc.

Member Data Documentation

std::list<G4GIDI_map *> G4GIDI::dataDirectories
private

Definition at line 77 of file G4GIDI.hh.

int G4GIDI::projectileID
private

Definition at line 76 of file G4GIDI.hh.

std::vector<G4GIDI_target *> G4GIDI::targets
private

Definition at line 78 of file G4GIDI.hh.


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