// // ******************************************************************** // * License and Disclaimer * // * * // * The Geant4 software is copyright of the Copyright Holders of * // * the Geant4 Collaboration. It is provided under the terms and * // * conditions of the Geant4 Software License, included in the file * // * LICENSE and available at http://cern.ch/geant4/license . These * // * include a list of copyright holders. * // * * // * Neither the authors of this software system, nor their employing * // * institutes,nor the agencies providing financial support for this * // * work make any representation or warranty, express or implied, * // * regarding this software system or assume any liability for its * // * use. Please see the license in the file LICENSE and URL above * // * for the full disclaimer and the limitation of liability. * // * * // * This code implementation is the result of the scientific and * // * technical work of the GEANT4 collaboration. * // * By using, copying, modifying or distributing the software (or * // * any work based on the software) you agree to acknowledge its * // * use in resulting scientific publications, and indicate your * // * acceptance of all terms of the Geant4 Software license. * // ******************************************************************** // #ifndef G4GIDI_h_included #define G4GIDI_h_included 1 #include #include #include //using namespace std; #include "G4Types.hh" #include "G4GIDI_Misc.hh" #include "G4GIDI_map.hh" #include "G4GIDI_target.hh" #include "G4GIDI_mass.hh" class G4GIDI { private: G4int projectileID; std::string projectile; std::list dataDirectories; std::vector targets; G4int init( G4int ip ); public: G4GIDI( G4int ip, std::string &dataDirectory ); G4GIDI( G4int ip, std::list &dataDirectory ); ~G4GIDI( ); G4int numberOfDataDirectories( void ); G4int addDataDirectory( std::string &dataDirectory ); G4int removeDataDirectory( std::string &dataDirectory ); std::string getDataDirectoryAtIndex( G4int index ); std::vector *getDataDirectories( void ); G4bool isThisDataAvailable( std::string &lib_name, G4int iZ, G4int iA, G4int iM = 0 ); G4bool isThisDataAvailable( std::string &lib_name, std::string &targetName ); char *dataFilename( std::string &lib_name, G4int iZ, G4int iA, G4int iM = 0 ); char *dataFilename( std::string &lib_name, std::string &targetName ); std::vector *getNamesOfAvailableLibraries( G4int iZ, G4int iA, G4int iM = 0 ); std::vector *getNamesOfAvailableLibraries( std::string &targetName ); std::vector *getNamesOfAvailableTargets( void ); G4GIDI_target *readTarget( std::string &lib_name, G4int iZ, G4int iA, G4int iM = 0, G4bool bind = true ); G4GIDI_target *readTarget( std::string &lib_name, std::string &targetName, G4bool bind = true ); G4GIDI_target *getAlreadyReadTarget( G4int iZ, G4int iA, G4int iM = 0 ); G4GIDI_target *getAlreadyReadTarget( std::string &targetName ); G4int freeTarget( G4int iZ, G4int iA, G4int iM = 0 ); G4int freeTarget( std::string &targetSymbol ); G4int freeTarget( G4GIDI_target *target ); std::vector *getListOfReadTargetsNames( void ); }; #endif // End of G4GIDI_h_included