70 if(!getenv(
"G4NEUTRONHPDATA")) {
71 G4cout <<
"Please setenv G4NEUTRONHPDATA to point to the neutron cross-section files." <<
G4endl;
72 throw G4HadronicException(__FILE__, __LINE__,
"Please setenv G4NEUTRONHPDATA to point to the neutron cross-section files.");
74 dirName = getenv(
"G4NEUTRONHPDATA");
76 dirName = dirName + tString;
80 for (
G4int i=0; i<numEle; i++)
111 for (i = 0; i < n; i++) {
113 rWeight = NumAtomsPerVolume[i];
123 for (i = 0; i < n; i++) {
126 if(random<=running/sum)
break;
G4DLLIMPORT std::ostream G4cout
static size_t GetNumberOfElements()
static const G4ElementTable * GetElementTable()
G4HadFinalState * ApplyYourself(const G4HadProjectile &aTrack, G4Nucleus &aTargetNucleus)
const G4Material * GetMaterial() const
void SetMinEnergy(G4double anEnergy)
void SetMaxEnergy(const G4double anEnergy)
G4double GetTemperature() const
const G4Element * GetElement(G4int iel) const
size_t GetNumberOfElements() const
const G4double * GetVecNbOfAtomsPerVolume() const
G4bool Register(G4NeutronHPFinalState *theFS)
G4HadFinalState * ApplyYourself(const G4HadProjectile &theTrack, G4int isoNumber=-1)
G4double GetXsec(G4double energy)
void Init(G4Element *theElement, const G4String dirName)
G4double GetThermalEnergy(const G4HadProjectile &aP, const G4Element *anE, G4double aT)