54 if(getenv(
"G4ParticleHPDebug"))
G4cout <<
"G4ParticleHPIsoData::Init = "<< filename <<
" "<< A <<
" " << Z <<
G4endl;
57 if(Z==1 && (aFile.
GetZ()!=Z || std::abs(aFile.
GetA()-
A)>0.0001) )
59 if(getenv(
"G4ParticleHPDebug"))
G4cout <<
"Skipped = "<< filename <<
" "<<A<<
" "<<Z<<G4endl;
65 if(!theChannel) {;
return false;}
67 if(theChannel.eof()) {;
return false;}
68 if(!theChannel) {;
return false;}
70 theChannel >> dummy >> dummy;
97 particleName =
"Proton";
99 particleName =
"Deuteron";
101 particleName =
"Triton";
103 particleName =
"He3";
105 particleName =
"Alpha";
107 G4String message(
"G4ParticleHPInelastic may only be called for neutron, proton, deuteron, triton, He3 or alpha, while it is called for " + projectile->
GetParticleName());
112 if ( getenv( dataDirVariable ) ) {
113 baseName = getenv( dataDirVariable );
115 baseName = getenv(
"G4PARTICLEHPDATA" );
116 baseName +=
"/" + particleName;
122 dirName = baseName+
"/Fission";
127 Init(A, Z, M, abun, dirName,
"/CrossSection");
136 dirName = baseName+
"/Capture";
138 Init(A, Z, M, abun, dirName,
"/CrossSection");
142 dirName = baseName+
"/Elastic";
144 Init(A, Z, M, abun, dirName,
"/CrossSection");
149 dirName = baseName+
"/Inelastic";
151 Init(A, Z, M, abun, dirName,
"/CrossSection");
static G4ParticleHPManager * GetInstance()
void message(RunManager *runmanager)
const G4String & GetParticleName() const
static G4Proton * Proton()
const XML_Char int const XML_Char int const XML_Char * base
static G4Deuteron * Deuteron()
void GetDataStream(G4String, std::istringstream &iss)
G4ParticleHPVector * theInelasticData
G4ParticleHPNames theNames
void Init(std::istream &aDataFile, G4int total, G4double ux=1., G4double uy=1.)
G4ParticleHPVector * theElasticData
double A(double temperature)
static constexpr double eV
G4ParticleHPDataUsed GetName(G4int A, G4int Z, G4String base, G4String rest, G4bool &active)
G4double G4ParticleHPJENDLHEData::G4double result
G4ParticleHPVector * theCaptureData
G4ParticleHPVector * theChannelData
static G4Triton * Triton()
static G4Neutron * Neutron()
G4GLOB_DLL std::ostream G4cout
G4ParticleHPVector * theFissionData
G4String GetName(G4int A, G4int Z, G4String base, G4String rest)
static constexpr double barn
G4bool Init(G4int A, G4int Z, G4double abun, G4String dirName, G4String aFSType)