51 material_cache = NULL;
69 if ( unavailable_elements->find( element->
GetName() ) != unavailable_elements->end() )
return false;
80 if ( dp->
GetKineticEnergy() == ke_cache && element == element_cache && material == material_cache )
return xs_cache;
83 element_cache = element;
95 theCaptureChannel = pChannel;
96 unavailable_elements = pSet;
103 element_cache = NULL;
104 material_cache = NULL;
121 throw G4HadronicException(__FILE__, __LINE__,
"Attempt to use NeutronHP data for particles other than neutrons!!!");
129 throw G4HadronicException(__FILE__, __LINE__,
"Attempt to use NeutronHP data for particles other than neutrons!!!");
153 theNeutron.SetKineticEnergy( eKinetic );
173 while(counter == 0 || std::abs(buffer-result/std::max(1,counter)) > 0.03*buffer)
175 if(counter) buffer = result/counter;
180 boosted.
Lorentz(theNeutron, aThermalNuc);
183 aXsection = theCaptureChannel[
index].
GetXsec( theEkin );
186 aXsection *= (targetVelocity-neutronVelocity).mag()/neutronVMag;