55 material_cache = NULL;
65 delete theCrossSections;
88 if ( dp->
GetKineticEnergy() == ke_cache && element == element_cache && material == material_cache )
return xs_cache;
91 element_cache = element;
112 throw G4HadronicException(__FILE__, __LINE__,
"Attempt to use NeutronHP data for particles other than neutrons!!!");
115 if ( getenv(
"G4NEUTRONHP_NEGLECT_DOPPLER" ) )
117 G4cout <<
"Find environment variable of \"G4NEUTRONHP_NEGLECT_DOPPLER\"." <<
G4endl;
118 G4cout <<
"On the fly Doppler broadening will be neglect in the cross section calculation of elastic scattering of neutrons (<20MeV)." <<
G4endl;
125 if ( theCrossSections == NULL )
133 for(
size_t i=0; i<numberOfElements; ++i )
144 throw G4HadronicException(__FILE__, __LINE__,
"Attempt to use NeutronHP data for particles other than neutrons!!!");
155 G4cout <<
"Elastic Cross Section of Neutron HP"<<
G4endl;
156 G4cout <<
"(Pointwise cross-section at 0 Kelvin.)" <<
G4endl;
165 for (
size_t i = 0 ; i < numberOfElements ; ++i )
172 for ( ie = 0 ; ie < 130 ; ie++ )
174 G4double eKinetic = 1.0e-5 * std::pow ( 10.0 , ie/10.0 ) *
eV;
175 G4bool outOfRange =
false;
177 if ( eKinetic < 20*
MeV )
179 G4cout << eKinetic/
eV <<
" " << (*((*theCrossSections)(i))).GetValue(eKinetic, outOfRange)/
barn <<
G4endl;
219 return ( (*((*theCrossSections)(index))).GetValue(eKinetic, outOfRange) )* factor;
224 theNeutron.SetKineticEnergy( eKinetic );
247 while(counter == 0 || std::abs(buffer-result/
std::max(1,counter)) > 0.03*buffer)
249 if(counter) buffer = result/counter;
254 boosted.
Lorentz(theNeutron, aThermalNuc);
256 aXsection = (*((*theCrossSections)(
index))).GetValue(theEkin, outOfRange);
259 aXsection *= (targetVelocity-neutronVelocity).mag()/neutronVMag;
G4PhysicsVector * MakePhysicsVector(G4Element *thE, G4NeutronHPFissionData *theP)
G4bool IsIsoApplicable(const G4DynamicParticle *, G4int, G4int, const G4Element *, const G4Material *)
static G4double GetNuclearMass(const G4double A, const G4double Z)
void Lorentz(const G4ReactionProduct &p1, const G4ReactionProduct &p2)
G4double GetKineticEnergy() const
static G4NeutronHPManager * GetInstance()
void SetMomentum(const G4double x, const G4double y, const G4double z)
void push_back(G4PhysicsVector *)
G4double G4NeutronHPJENDLHEData::G4double result
G4ParticleDefinition * GetDefinition() const
G4ReactionProduct GetThermalNucleus(G4double aMass, G4double temp=-1) const
G4double GetIsoCrossSection(const G4DynamicParticle *, G4int, G4int, const G4Isotope *, const G4Element *, const G4Material *)
void DumpPhysicsTable(const G4ParticleDefinition &)
G4GLOB_DLL std::ostream G4cout
static size_t GetNumberOfElements()
~G4NeutronHPElasticData()
void SetMinKinEnergy(G4double value)
static G4Neutron * Neutron()
static G4NeutronHPData * Instance()
G4double GetKineticEnergy() const
void SetVerboseLevel(G4int i)
G4double GetPDGMass() const
void SetMaxKinEnergy(G4double value)
T max(const T t1, const T t2)
brief Return the largest of the two arguments
G4ThreeVector GetMomentum() const
std::vector< G4Element * > G4ElementTable
G4int GetVerboseLevel() const
void BuildPhysicsTable(const G4ParticleDefinition &)
static G4ElementTable * GetElementTable()
G4double GetCrossSection(const G4DynamicParticle *, const G4Element *, G4double aT)
G4double GetMinKinEnergy() const
G4ThreeVector GetMomentum() const
G4double GetMaxKinEnergy() const
void SetVerboseLevel(G4int)