#include <G4NeutronElasticXS.hh>
|
| G4NeutronElasticXS () |
|
virtual | ~G4NeutronElasticXS () |
|
virtual G4bool | IsElementApplicable (const G4DynamicParticle *, G4int Z, const G4Material *) |
|
virtual G4double | GetElementCrossSection (const G4DynamicParticle *, G4int Z, const G4Material *mat=0) |
|
virtual void | BuildPhysicsTable (const G4ParticleDefinition &) |
|
virtual void | CrossSectionDescription (std::ostream &) const |
|
| G4VCrossSectionDataSet (const G4String &nam="") |
|
virtual | ~G4VCrossSectionDataSet () |
|
virtual G4bool | IsIsoApplicable (const G4DynamicParticle *, G4int Z, G4int A, const G4Element *elm=0, const G4Material *mat=0) |
|
G4double | GetCrossSection (const G4DynamicParticle *, const G4Element *, const G4Material *mat=0) |
|
G4double | ComputeCrossSection (const G4DynamicParticle *, const G4Element *, const G4Material *mat=0) |
|
virtual G4double | GetIsoCrossSection (const G4DynamicParticle *, G4int Z, G4int A, const G4Isotope *iso=0, const G4Element *elm=0, const G4Material *mat=0) |
|
virtual G4Isotope * | SelectIsotope (const G4Element *, G4double kinEnergy) |
|
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 59 of file G4NeutronElasticXS.hh.
G4NeutronElasticXS::G4NeutronElasticXS |
( |
| ) |
|
Definition at line 58 of file G4NeutronElasticXS.cc.
References G4cout, G4endl, and G4VCrossSectionDataSet::verboseLevel.
64 G4cout <<
"G4NeutronElasticXS::G4NeutronElasticXS Initialise for Z < "
67 data.resize(maxZ+1, 0);
68 coeff.resize(maxZ+1, 1.0);
71 isInitialized =
false;
G4VCrossSectionDataSet(const G4String &nam="")
G4GLOB_DLL std::ostream G4cout
static G4Proton * Proton()
const XML_Char const XML_Char * data
G4NeutronElasticXS::~G4NeutronElasticXS |
( |
| ) |
|
|
virtual |
Reimplemented from G4VCrossSectionDataSet.
Definition at line 145 of file G4NeutronElasticXS.cc.
References FatalException, G4cout, G4endl, G4Exception(), G4Element::GetElementTable(), G4Element::GetNumberOfElements(), G4ParticleDefinition::GetParticleName(), G4Neutron::Neutron(), and G4VCrossSectionDataSet::verboseLevel.
147 if(isInitialized) {
return; }
149 G4cout <<
"G4NeutronElasticXS::BuildPhysicsTable for "
155 <<
" only neutron is allowed";
156 G4Exception(
"G4NeutronElasticXS::BuildPhysicsTable(..)",
"had012",
160 isInitialized =
true;
164 char* path = getenv(
"G4NEUTRONXSDATA");
173 for(
size_t i=0; i<numOfElm; ++i) {
176 else if(Z > maxZ) { Z = maxZ; }
179 if(!
data[Z]) { Initialise(Z, dynParticle, path); }
std::ostringstream G4ExceptionDescription
CLHEP::Hep3Vector G4ThreeVector
const G4String & GetParticleName() const
G4GLOB_DLL std::ostream G4cout
static size_t GetNumberOfElements()
static G4Neutron * Neutron()
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 G4NeutronElasticXS::CrossSectionDescription |
( |
std::ostream & |
outFile | ) |
const |
|
virtual |
Reimplemented from G4VCrossSectionDataSet.
Definition at line 84 of file G4NeutronElasticXS.cc.
86 outFile <<
"G4NeutronElasticXS calculates the neutron elastic scattering\n"
87 <<
"cross section on nuclei using data from the high precision\n"
88 <<
"neutron database. These data are simplified and smoothed over\n"
89 <<
"the resonance region in order to reduce CPU time.\n"
90 <<
"G4NeutronElasticXS is valid for energies up to 20 MeV, for all\n"
91 <<
"targets through U.\n";
Reimplemented from G4VCrossSectionDataSet.
Definition at line 102 of file G4NeutronElasticXS.cc.
References G4PhysicsVector::Energy(), G4cout, G4endl, G4lrint(), G4GlauberGribovCrossSection::GetElasticGlauberGribovXsc(), G4HadronNucleonXsc::GetElasticHadronNucleonXsc(), G4HadronNucleonXsc::GetHadronNucleonXscPDG(), G4GlauberGribovCrossSection::GetIsoCrossSection(), G4DynamicParticle::GetKineticEnergy(), G4PhysicsVector::GetVectorLength(), G4NistManager::Instance(), n, G4PhysicsVector::Value(), and G4VCrossSectionDataSet::verboseLevel.
108 if(Z < 1 || Z > maxZ) {
return xs; }
119 if(!pv) {
return xs; }
123 if(ekin <= e1) {
return (*pv)[0]; }
129 xs = pv->
Value(ekin);
139 G4cout <<
"ekin= " << ekin <<
", XSinel= " << xs <<
G4endl;
G4double GetElasticHadronNucleonXsc()
G4double GetElasticGlauberGribovXsc()
G4double GetKineticEnergy() const
virtual G4double GetIsoCrossSection(const G4DynamicParticle *, G4int Z, G4int A, const G4Isotope *iso=0, const G4Element *elm=0, const G4Material *mat=0)
size_t GetVectorLength() const
static G4NistManager * Instance()
G4GLOB_DLL std::ostream G4cout
G4double Energy(size_t index) const
G4double Value(G4double theEnergy, size_t &lastidx) const
G4double GetHadronNucleonXscPDG(const G4DynamicParticle *, const G4ParticleDefinition *)
const XML_Char const XML_Char * data
The documentation for this class was generated from the following files: