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';
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];