55 instanceOfWorker =
false;
57 instanceOfWorker =
true;
60 material_cache = NULL;
68 if ( theCrossSections != NULL && instanceOfWorker !=
true ) {
70 delete theCrossSections;
71 theCrossSections = NULL;
94 if ( dp->
GetKineticEnergy() == ke_cache && element == element_cache && material == material_cache )
return xs_cache;
97 element_cache = element;
118 G4cout <<
"Find a flag of \"G4NEUTRONHP_NEGLECT_DOPPLER\"." <<
G4endl;
119 G4cout <<
"On the fly Doppler broadening will be neglect in the cross section calculation of fission reaction of neutrons (<20MeV)." <<
G4endl;
124 throw G4HadronicException(__FILE__, __LINE__,
"Attempt to use NeutronHP data for particles other than neutrons!!!");
135 if ( theCrossSections == NULL )
143 for(
size_t i=0; i<numberOfElements; ++i )
156 throw G4HadronicException(__FILE__, __LINE__,
"Attempt to use NeutronHP data for particles other than neutrons!!!");
167 G4cout <<
"Fission Cross Section of Neutron HP"<<
G4endl;
168 G4cout <<
"(Pointwise cross-section at 0 Kelvin.)" <<
G4endl;
177 for (
size_t i = 0 ; i < numberOfElements ; ++i )
182 if ( (*((*theCrossSections)(i))).GetVectorLength() == 0 )
184 G4cout <<
"The cross-section data of the fission of this element is not available." <<
G4endl;
191 for ( ie = 0 ; ie < 130 ; ie++ )
194 G4bool outOfRange =
false;
196 if ( eKinetic < 20*
MeV )
198 G4cout << eKinetic/
eV <<
" " << (*((*theCrossSections)(i))).GetValue(eKinetic, outOfRange)/
barn <<
G4endl;
215 if(anE->
GetZ()<88)
return result;
220 if ( ( ( *theCrossSections )( index ) )->GetVectorLength() == 0 )
return result;
226 theNeutronRP.SetKineticEnergy( eKinetic );
237 return ( (*((*theCrossSections)(index))).GetValue(eKinetic, outOfRange) )* factor;
259 while(counter == 0 || std::abs(buffer-result/
std::max(1,counter)) > 0.01*buffer)
261 if(counter) buffer = result/counter;
266 boosted.
Lorentz(theNeutronRP, aThermalNuc);
268 aXsection = (*((*theCrossSections)(index))).GetValue(theEkin, outOfRange);
271 aXsection *= (targetVelocity-neutronVelocity).mag()/neutronVMag;
290 outFile <<
"High Precision cross data based on Evaluated Nuclear Data Files (ENDF) for induced fission reaction of neutrons below 20MeV\n" ;
G4double G4ParticleHPJENDLHEData::G4double result
static G4ParticleHPManager * GetInstance()
static G4Pow * GetInstance()
G4double powA(G4double A, G4double y) const
static G4double GetNuclearMass(const G4double A, const G4double Z)
void RegisterFissionCrossSections(G4PhysicsTable *val)
void Lorentz(const G4ReactionProduct &p1, const G4ReactionProduct &p2)
G4double GetKineticEnergy() const
void SetMomentum(const G4double x, const G4double y, const G4double z)
void push_back(G4PhysicsVector *)
void DumpPhysicsTable(const G4ParticleDefinition &)
static const G4double eps
G4ParticleDefinition * GetDefinition() const
G4bool IsIsoApplicable(const G4DynamicParticle *, G4int, G4int, const G4Element *, const G4Material *)
G4double GetCrossSection(const G4DynamicParticle *, const G4Element *, G4double aT)
G4ReactionProduct GetThermalNucleus(G4double aMass, G4double temp=-1) const
G4PhysicsTable * GetFissionCrossSections()
void SetVerboseLevel(G4int i)
void BuildPhysicsTable(const G4ParticleDefinition &)
G4GLOB_DLL std::ostream G4cout
static size_t GetNumberOfElements()
void SetMinKinEnergy(G4double value)
static constexpr double eV
virtual void CrossSectionDescription(std::ostream &) const
static G4Neutron * Neutron()
void SetVerboseLevel(G4int)
static constexpr double kelvin
G4double GetKineticEnergy() const
G4PhysicsVector * MakePhysicsVector(G4Element *thE, G4ParticleHPFissionData *theP)
G4double GetPDGMass() const
~G4ParticleHPFissionData()
void SetMaxKinEnergy(G4double value)
T max(const T t1, const T t2)
brief Return the largest of the two arguments
static G4ParticleHPData * Instance(G4ParticleDefinition *projectile)
G4ThreeVector GetMomentum() const
static constexpr double MeV
G4int GetVerboseLevel() const
std::vector< G4Element * > G4ElementTable
G4ParticleHPFissionData()
static constexpr double barn
static G4ElementTable * GetElementTable()
G4double GetMinKinEnergy() const
G4ThreeVector GetMomentum() const
G4double GetMaxKinEnergy() const
G4double GetIsoCrossSection(const G4DynamicParticle *, G4int, G4int, const G4Isotope *, const G4Element *, const G4Material *)