117 throw G4HadronicException(__FILE__, __LINE__,
"Attempt to use NeutronHP data for particles other than neutrons!!!");
122 G4cout <<
"Find a flag of \"G4NEUTRONHP_NEGLECT_DOPPLER\"." <<
G4endl;
123 G4cout <<
"On the fly Doppler broadening will be neglect in the cross section calculation of capture reaction of neutrons (<20MeV)." <<
G4endl;
144 for(
size_t i=0; i<numberOfElements; ++i )
146 if(getenv(
"CaptureDataIndexDebug"))
148 G4int index_debug = ((*theElementTable)[i])->GetIndex();
162 throw G4HadronicException(__FILE__, __LINE__,
"Attempt to use NeutronHP data for particles other than neutrons!!!");
173 G4cout <<
"Capture Cross Section of Neutron HP"<<
G4endl;
174 G4cout <<
"(Pointwise cross-section at 0 Kelvin.)" <<
G4endl;
183 for (
size_t i = 0 ; i < numberOfElements ; ++i )
190 for ( ie = 0 ; ie < 130 ; ie++ )
193 G4bool outOfRange =
false;
195 if ( eKinetic < 20*
MeV )
197 G4cout << eKinetic/
eV <<
" " << (*((*theCrossSections)(i))).GetValue(eKinetic, outOfRange)/
barn <<
G4endl;
237 theNeutron.SetKineticEnergy( eKinetic );
257 while(counter == 0 || std::abs(buffer-result/
std::max(1,counter)) > 0.03*buffer)
259 if(counter) buffer = result/counter;
264 boosted.
Lorentz(theNeutron, aThermalNuc);
266 aXsection = (*((*theCrossSections)(
index))).GetValue(theEkin, outOfRange);
269 aXsection *= (targetVelocity-neutronVelocity).mag()/neutronVMag;
294 outFile <<
"High Precision cross data based on Evaluated Nuclear Data Files (ENDF) for radiative capture reaction of neutrons below 20MeV\n" ;
static G4ParticleHPManager * GetInstance()
static G4Pow * GetInstance()
G4ParticleHPCaptureData()
static G4double GetNuclearMass(const G4double A, const G4double Z)
G4double GetMaxKinEnergy() const
void Lorentz(const G4ReactionProduct &p1, const G4ReactionProduct &p2)
G4ReactionProduct GetThermalNucleus(G4double aMass, G4double temp=-1) const
void SetMomentum(const G4double x, const G4double y, const G4double z)
void push_back(G4PhysicsVector *)
void RegisterCaptureCrossSections(G4PhysicsTable *val)
G4double GetMinKinEnergy() const
static const G4double eps
void SetVerboseLevel(G4int i)
G4int GetVerboseLevel() const
G4double GetKineticEnergy() const
G4ThreeVector GetMomentum() const
G4GLOB_DLL std::ostream G4cout
static size_t GetNumberOfElements()
const G4Material * material_cache
G4PhysicsTable * GetCaptureCrossSections()
void SetMinKinEnergy(G4double value)
G4PhysicsTable * theCrossSections
G4double GetCrossSection(const G4DynamicParticle *, const G4Element *, G4double aT)
static G4Neutron * Neutron()
G4double GetIsoCrossSection(const G4DynamicParticle *, G4int, G4int, const G4Isotope *, const G4Element *, const G4Material *)
void DumpPhysicsTable(const G4ParticleDefinition &)
void SetVerboseLevel(G4int)
static const double kelvin
G4PhysicsVector * MakePhysicsVector(G4Element *thE, G4ParticleHPFissionData *theP)
const G4Element * element_cache
static const G4double factor
virtual void CrossSectionDescription(std::ostream &) const
void SetMaxKinEnergy(G4double value)
G4double GetPDGMass() const
void BuildPhysicsTable(const G4ParticleDefinition &)
~G4ParticleHPCaptureData()
static G4ParticleHPData * Instance(G4ParticleDefinition *projectile)
G4ParticleDefinition * GetDefinition() const
G4double GetKineticEnergy() const
G4double powA(G4double A, G4double y) const
std::vector< G4Element * > G4ElementTable
static G4ElementTable * GetElementTable()
G4ThreeVector GetMomentum() const
G4bool IsIsoApplicable(const G4DynamicParticle *, G4int, G4int, const G4Element *, const G4Material *)