34#define INCLXX_IN_GEANT4_MODE 1
50#ifdef INCLXX_IN_GEANT4_MODE
57 #ifdef INCLXX_IN_GEANT4_MODE
74 diffusenessP[i][j]=-1.;
75 diffusenessN[i][j]=-1.;
82#ifdef INCLXX_IN_GEANT4_MODE
91#ifdef INCLXX_IN_GEANT4_MODE
94 ed <<
" Data missing: set environment variable G4INCLDATA\n"
95 <<
" to point to the directory containing data files needed\n"
96 <<
" by the INCL++ model" <<
G4endl;
97 G4Exception(
"G4INCLDataFile::readData()",
"table_radius_hfb.dat",
101 G4String dataPath(dataPath0 +
"/table_radius_hfb.dat");
104 std::string dataPath(path +
"/table_radius_hfb.dat");
105 INCL_DEBUG(
"Reading radius and diffuseness parameters from file " << dataPath <<
'\n');
109 std::ifstream hfbTableIn(dataPath.c_str());
110 if(!hfbTableIn.good()) {
111 std::cerr <<
"Cannot open " << dataPath <<
" data file." <<
'\n';
117 G4int z, a, nbnuclei=0;
119 while(hfbTableIn.good()) {
120 hfbTableIn >> z >> a >> rp >> rn >> dp >> dn;
123 diffusenessP[z][a] = dp;
124 diffusenessN[z][a] = dn;
128 INCL_DEBUG(
"Read " << nbnuclei <<
" nuclei" <<
'\n');
136 if(radiusN[Z][
A]>0.)r0=radiusN[Z][
A];
138 if(radiusP[Z][
A]>0.)r0=radiusP[Z][
A];
146 if(diffusenessN[Z][
A]>0.)a=diffusenessN[Z][
A];
148 if(diffusenessP[Z][
A]>0.)a=diffusenessP[Z][
A];
const char * G4FindDataDir(const char *)
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.