123 throw G4HadronicException(__FILE__, __LINE__,
"Attempt to use NeutronHP data for particles other than neutrons!!!");
128 G4cout <<
"Find a flag of \"G4NEUTRONHP_NEGLECT_DOPPLER\"." <<
G4endl;
129 G4cout <<
"On the fly Doppler broadening will be neglect in the cross section calculation of capture reaction of neutrons (<20MeV)." <<
G4endl;
150 for(
size_t i=0; i<numberOfElements; ++i )
152 if(std::getenv(
"CaptureDataIndexDebug"))
154 G4int index_debug = ((*theElementTable)[i])->GetIndex();
168 throw G4HadronicException(__FILE__, __LINE__,
"Attempt to use NeutronHP data for particles other than neutrons!!!");
179 G4cout <<
"Capture Cross Section of Neutron HP"<<
G4endl;
180 G4cout <<
"(Pointwise cross-section at 0 Kelvin.)" <<
G4endl;
189 for (
size_t i = 0 ; i < numberOfElements ; ++i )
196 for ( ie = 0 ; ie < 130 ; ie++ )
199 G4bool outOfRange =
false;
201 if ( eKinetic < 20*
MeV )
203 G4cout << eKinetic/
eV <<
" " << (*((*theCrossSections)(i))).GetValue(eKinetic, outOfRange)/
barn <<
G4endl;
238 return ( (*((*
theCrossSections)(index))).GetValue(eKinetic, outOfRange) )* factor;
243 theNeutron.SetKineticEnergy( eKinetic );
263 while(counter == 0 ||
std::abs(buffer-result/
std::max(1,counter)) > 0.03*buffer)
265 if(counter) buffer = result/counter;
270 boosted.
Lorentz(theNeutron, aThermalNuc);
272 aXsection = (*((*theCrossSections)(index))).GetValue(theEkin, outOfRange);
275 aXsection *= (targetVelocity-neutronVelocity).mag()/neutronVMag;
300 outFile <<
"High Precision cross data based on Evaluated Nuclear Data Files (ENDF) for radiative capture reaction of neutrons below 20MeV\n" ;