34#define INCLXX_IN_GEANT4_MODE 1
65 diffusenessP[i][j]=-1.;
66 diffusenessN[i][j]=-1.;
73#ifdef INCLXX_IN_GEANT4_MODE
82#ifdef INCLXX_IN_GEANT4_MODE
83 if(!std::getenv(
"G4INCLDATA")) {
85 ed <<
" Data missing: set environment variable G4INCLDATA\n"
86 <<
" to point to the directory containing data files needed\n"
87 <<
" by the INCL++ model" <<
G4endl;
88 G4Exception(
"G4INCLDataFile::readData()",
"table_radius_hfb.dat",
91 G4String dataPath0(std::getenv(
"G4INCLDATA"));
92 G4String dataPath(dataPath0 +
"/table_radius_hfb.dat");
95 std::string dataPath(path +
"/table_radius_hfb.dat");
96 INCL_DEBUG(
"Reading radius and diffuseness parameters from file " << dataPath <<
'\n');
100 std::ifstream hfbTableIn(dataPath.c_str());
101 if(!hfbTableIn.good()) {
102 std::cerr <<
"Cannot open " << dataPath <<
" data file." <<
'\n';
108 G4int z, a, nbnuclei=0;
110 while(hfbTableIn.good()) {
111 hfbTableIn >> z >> a >> rp >> rn >> dp >> dn;
114 diffusenessP[z][a] = dp;
115 diffusenessN[z][a] = dn;
119 INCL_DEBUG(
"Read " << nbnuclei <<
" nuclei" <<
'\n');
127 if(radiusN[Z][
A]>0.)r0=radiusN[Z][
A];
129 if(radiusP[Z][
A]>0.)r0=radiusP[Z][
A];
137 if(diffusenessN[Z][
A]>0.)a=diffusenessN[Z][
A];
139 if(diffusenessP[Z][
A]>0.)a=diffusenessP[Z][
A];
double A(double temperature)
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.