34#define INCLXX_IN_GEANT4_MODE 1
55 #ifdef INCLXX_IN_GEANT4_MODE
80#ifdef INCLXX_IN_GEANT4_MODE
89#ifdef INCLXX_IN_GEANT4_MODE
90 if(!std::getenv(
"G4INCLDATA")) {
92 ed <<
" Data missing: set environment variable G4INCLDATA\n"
93 <<
" to point to the directory containing data files needed\n"
94 <<
" by the INCL++ model" <<
G4endl;
95 G4Exception(
"G4INCLDataFile::readData()",
"table_radius_hfb.dat",
98 G4String dataPath0(std::getenv(
"G4INCLDATA"));
99 G4String dataPath(dataPath0 +
"/table_radius_hfb.dat");
102 std::string dataPath(path +
"/table_radius_hfb.dat");
103 INCL_DEBUG(
"Reading radius and diffuseness parameters from file " << dataPath <<
'\n');
107 std::ifstream hfbTableIn(dataPath.c_str());
108 if(!hfbTableIn.good()) {
109 std::cerr <<
"Cannot open " << dataPath <<
" data file." <<
'\n';
115 G4int z, a, nbnuclei=0;
117 while(hfbTableIn.good()) {
118 hfbTableIn >> z >> a >> rp >> rn >> dp >> dn;
126 INCL_DEBUG(
"Read " << nbnuclei <<
" nuclei" <<
'\n');
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *description)
std::ostringstream G4ExceptionDescription
G4double getSurfaceDiffusenessHFB(const ParticleType t, const G4int A, const G4int Z)
G4double getRadiusParameterHFB(const ParticleType t, const G4int A, const G4int Z)
Get the radius and diffuseness parameters from HFB calculations.
G4ThreadLocal G4double radiusN[TableZSize][TableASize]
G4ThreadLocal G4double diffusenessN[TableZSize][TableASize]
G4ThreadLocal G4double radiusP[TableZSize][TableASize]
G4ThreadLocal G4double diffusenessP[TableZSize][TableASize]