45 overrideSuspension =
false;
47 if(!getenv(
"G4NEUTRONHPDATA"))
48 throw G4HadronicException(__FILE__, __LINE__,
"Please setenv G4NEUTRONHPDATA to point to the neutron cross-section files.");
49 dirName = getenv(
"G4NEUTRONHPDATA");
51 dirName = dirName + tString;
55 unavailable_elements.clear();
56 for (
G4int i=0; i<numEle; i++)
60 try {
while(!theElastic[i].Register(theFS)) ; }
69 if ( unavailable_elements.size() > 0 )
71 std::set< G4String>::iterator it;
72 G4cout <<
"HP Elastic data are not available for thess elements "<<
G4endl;
73 for ( it = unavailable_elements.begin() ; it != unavailable_elements.end() ; it++ )
75 G4cout <<
"Low Energy Parameterization Models will be used."<<
G4endl;
78 createXSectionDataSet();
105 rWeight = NumAtomsPerVolume[i];
122 if(random<=running/sum)
break;
136 if ( unavailable_elements.find( name ) == unavailable_elements.end() )
144 void G4NeutronHPorLElastic::createXSectionDataSet()