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;
86 material_cache = material;
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;
193if ( ( ( *theCrossSections )( index ) )->GetVectorLength() == 0 )
return result;
216 G4int size =
G4int(std::max(10., aT/60*kelvin));
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;
std::vector< G4Element * > G4ElementTable
G4DLLIMPORT std::ostream G4cout
G4ParticleDefinition * GetDefinition() const
G4double GetKineticEnergy() const
G4ThreeVector GetMomentum() const
static size_t GetNumberOfElements()
static const G4ElementTable * GetElementTable()
G4double GetTemperature() const
G4PhysicsVector * MakePhysicsVector(G4Element *thE, G4NeutronHPFissionData *theP)
static G4NeutronHPData * Instance()
G4bool IsIsoApplicable(const G4DynamicParticle *, G4int, G4int, const G4Element *, const G4Material *)
void BuildPhysicsTable(const G4ParticleDefinition &)
G4double GetIsoCrossSection(const G4DynamicParticle *, G4int, G4int, const G4Isotope *, const G4Element *, const G4Material *)
void DumpPhysicsTable(const G4ParticleDefinition &)
G4double GetCrossSection(const G4DynamicParticle *, const G4Element *, G4double aT)
~G4NeutronHPFissionData()
static G4Neutron * Neutron()
static G4double GetNuclearMass(const G4double A, const G4double Z)
G4ReactionProduct GetThermalNucleus(G4double aMass, G4double temp=-1) const
G4double GetPDGMass() const
void push_back(G4PhysicsVector *)
void SetMomentum(const G4double x, const G4double y, const G4double z)
G4double GetKineticEnergy() const
G4ThreeVector GetMomentum() const
void Lorentz(const G4ReactionProduct &p1, const G4ReactionProduct &p2)
void SetKineticEnergy(const G4double en)
G4double GetMaxKinEnergy() const
void SetMaxKinEnergy(G4double value)
void SetMinKinEnergy(G4double value)
G4double GetMinKinEnergy() const