34#define INCLXX_IN_GEANT4_MODE 1
55 #ifdef INCLXX_IN_GEANT4_MODE
72 diffusenessP[i][j]=-1.;
73 diffusenessN[i][j]=-1.;
80#ifdef INCLXX_IN_GEANT4_MODE
89#ifdef INCLXX_IN_GEANT4_MODE
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",
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;
121 diffusenessP[z][a] = dp;
122 diffusenessN[z][a] = dn;
126 INCL_DEBUG(
"Read " << nbnuclei <<
" nuclei" <<
'\n');
134 if(radiusN[
Z][
A]>0.)r0=radiusN[
Z][
A];
136 if(radiusP[
Z][
A]>0.)r0=radiusP[
Z][
A];
144 if(diffusenessN[
Z][
A]>0.)a=diffusenessN[
Z][
A];
146 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.