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;
84 material_cache = material;
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!!!");
170 G4int size =
G4int(std::max(10., aT/60*kelvin));
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;
G4ParticleDefinition * GetDefinition() const
G4double GetKineticEnergy() const
G4ThreeVector GetMomentum() const
const G4String & GetName() const
G4double GetTemperature() const
G4double GetXsec(G4double energy)
G4double GetIsoCrossSection(const G4DynamicParticle *, G4int, G4int, const G4Isotope *, const G4Element *, const G4Material *)
~G4NeutronHPorLCaptureData()
G4NeutronHPorLCaptureData()
G4double GetCrossSection(const G4DynamicParticle *, const G4Element *, G4double aT)
G4bool IsIsoApplicable(const G4DynamicParticle *, G4int, G4int, const G4Element *, const G4Material *)
void DumpPhysicsTable(const G4ParticleDefinition &)
void BuildPhysicsTable(const G4ParticleDefinition &)
static G4Neutron * Neutron()
static G4double GetNuclearMass(const G4double A, const G4double Z)
G4ReactionProduct GetThermalNucleus(G4double aMass, G4double temp=-1) const
G4double GetPDGMass() const
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