51 material_cache = NULL;
60 delete theCrossSections;
82 if ( dp->
GetKineticEnergy() == ke_cache && element == element_cache && material == material_cache )
return xs_cache;
85 element_cache = element;
105 throw G4HadronicException(__FILE__, __LINE__,
"Attempt to use NeutronHP data for particles other than neutrons!!!");
110 if ( theCrossSections == NULL )
118 for(
size_t i=0; i<numberOfElements; ++i )
129 throw G4HadronicException(__FILE__, __LINE__,
"Attempt to use NeutronHP data for particles other than neutrons!!!");
140 G4cout <<
"Fission Cross Section of Neutron HP"<<
G4endl;
141 G4cout <<
"(Pointwise cross-section at 0 Kelvin.)" <<
G4endl;
150 for (
size_t i = 0 ; i < numberOfElements ; ++i )
155 if ( (*((*theCrossSections)(i))).GetVectorLength() == 0 )
157 G4cout <<
"The cross-section data of the fission of this element is not available." <<
G4endl;
164 for ( ie = 0 ; ie < 130 ; ie++ )
166 G4double eKinetic = 1.0e-5 * std::pow ( 10.0 , ie/10.0 ) *
eV;
167 G4bool outOfRange =
false;
169 if ( eKinetic < 20*
MeV )
171 G4cout << eKinetic/
eV <<
" " << (*((*theCrossSections)(i))).GetValue(eKinetic, outOfRange)/
barn <<
G4endl;
188 if(anE->
GetZ()<90)
return result;
193 if ( ( ( *theCrossSections )( index ) )->GetVectorLength() == 0 )
return result;
199 theNeutron.SetKineticEnergy( eKinetic );
220 while(counter == 0 || std::abs(buffer-result/std::max(1,counter)) > 0.01*buffer)
222 if(counter) buffer = result/counter;
227 boosted.
Lorentz(theNeutron, aThermalNuc);
229 aXsection = (*((*theCrossSections)(
index))).GetValue(theEkin, outOfRange);
232 aXsection *= (targetVelocity-neutronVelocity).mag()/neutronVMag;