50 material_cache = NULL;
68 if ( unavailable_elements->find( element->
GetName() ) != unavailable_elements->end() )
return false;
79 if ( dp->
GetKineticEnergy() == ke_cache && element == element_cache && material == material_cache )
return xs_cache;
82 element_cache = element;
94 theElasticChannel = pChannel;
95 unavailable_elements = pSet;
102 element_cache = NULL;
103 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 = theElasticChannel[
index].
GetXsec( theEkin );
186 aXsection *= (targetVelocity-neutronVelocity).mag()/neutronVMag;