#include <G4NeutronCaptureXS.hh>
|
| G4NeutronCaptureXS () |
|
virtual | ~G4NeutronCaptureXS () |
|
virtual G4bool | IsElementApplicable (const G4DynamicParticle *, G4int Z, const G4Material *) |
|
virtual G4bool | IsIsoApplicable (const G4DynamicParticle *, G4int Z, G4int A, const G4Element *, const G4Material *) |
|
virtual G4double | GetElementCrossSection (const G4DynamicParticle *, G4int Z, const G4Material *mat=0) |
|
virtual G4double | GetIsoCrossSection (const G4DynamicParticle *, G4int Z, G4int A, const G4Isotope *iso, const G4Element *elm, const G4Material *mat) |
|
virtual G4Isotope * | SelectIsotope (const G4Element *, G4double kinEnergy) |
|
virtual void | BuildPhysicsTable (const G4ParticleDefinition &) |
|
virtual void | CrossSectionDescription (std::ostream &) const |
|
| G4VCrossSectionDataSet (const G4String &nam="") |
|
virtual | ~G4VCrossSectionDataSet () |
|
G4double | GetCrossSection (const G4DynamicParticle *, const G4Element *, const G4Material *mat=0) |
|
G4double | ComputeCrossSection (const G4DynamicParticle *, const G4Element *, const G4Material *mat=0) |
|
virtual void | DumpPhysicsTable (const G4ParticleDefinition &) |
|
virtual G4int | GetVerboseLevel () const |
|
virtual void | SetVerboseLevel (G4int value) |
|
G4double | GetMinKinEnergy () const |
|
void | SetMinKinEnergy (G4double value) |
|
G4double | GetMaxKinEnergy () const |
|
void | SetMaxKinEnergy (G4double value) |
|
const G4String & | GetName () const |
|
Definition at line 61 of file G4NeutronCaptureXS.hh.
G4NeutronCaptureXS::G4NeutronCaptureXS |
( |
| ) |
|
G4NeutronCaptureXS::~G4NeutronCaptureXS |
( |
| ) |
|
|
virtual |
Reimplemented from G4VCrossSectionDataSet.
Definition at line 235 of file G4NeutronCaptureXS.cc.
References FatalException, G4cout, G4endl, G4Exception(), G4Element::GetElementTable(), G4Element::GetNumberOfElements(), G4ParticleDefinition::GetParticleName(), MAXZCAPTURE, and G4VCrossSectionDataSet::verboseLevel.
237 if(isInitialized) {
return; }
239 G4cout <<
"G4NeutronCaptureXS::BuildPhysicsTable for "
245 <<
" only neutron is allowed";
246 G4Exception(
"G4NeutronCaptureXS::BuildPhysicsTable(..)",
"had012",
250 isInitialized =
true;
254 char* path = getenv(
"G4NEUTRONXSDATA");
260 for(
size_t i=0; i<numOfElm; ++i) {
266 if(!
data.GetElementData(Z)) { Initialise(Z, path); }
std::ostringstream G4ExceptionDescription
const G4String & GetParticleName() const
G4GLOB_DLL std::ostream G4cout
static size_t GetNumberOfElements()
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
std::vector< G4Element * > G4ElementTable
static G4ElementTable * GetElementTable()
const XML_Char const XML_Char * data
void G4NeutronCaptureXS::CrossSectionDescription |
( |
std::ostream & |
outFile | ) |
const |
|
virtual |
Reimplemented from G4VCrossSectionDataSet.
Definition at line 95 of file G4NeutronCaptureXS.cc.
97 outFile <<
"G4NeutronCaptureXS calculates the neutron capture cross sections\n"
98 <<
"on nuclei using data from the high precision neutron database.\n"
99 <<
"These data are simplified and smoothed over the resonance region\n"
100 <<
"in order to reduce CPU time. G4NeutronCaptureXS is valid up to\n"
101 <<
"20 MeV for all targets through U.\n";
Reimplemented from G4VCrossSectionDataSet.
Definition at line 190 of file G4NeutronCaptureXS.cc.
References G4lrint(), G4UniformRand, G4Element::GetIsotopeVector(), G4Element::GetNumberOfIsotopes(), G4Element::GetRelativeAbundanceVector(), G4Element::GetZ(), MAXZCAPTURE, and nmax.
207 for (
G4int j = 0; j<nIso; ++j) {
208 sum += abundVector[j];
210 iso = (*isoVector)[j];
215 size_t nmax =
data.GetNumberOfComponents(Z);
216 if(temp.size() <
nmax) { temp.resize(nmax,0.0); }
217 for (
size_t i=0; i<
nmax; ++i) {
218 G4int A = (*isoVector)[i]->GetN();
219 sum += abundVector[i]*IsoCrossSection(kinEnergy, Z, A);
223 for (
size_t j = 0; j<
nmax; ++j) {
225 iso = (*isoVector)[j];
size_t GetNumberOfIsotopes() const
std::vector< G4Isotope * > G4IsotopeVector
G4double * GetRelativeAbundanceVector() const
G4IsotopeVector * GetIsotopeVector() const
const XML_Char const XML_Char * data
The documentation for this class was generated from the following files: