66 0, 0, 6, 0,10,12,14,16, 0, 0,
67 0, 0, 0,28, 0, 0, 0,36, 0,40,
68 0, 0, 0, 0, 0,54, 0,58,63,64,
69 0,70, 0, 0, 0, 0, 0, 0, 0,90,
70 0, 0, 0, 0, 0, 0,107,106, 0,112,
71 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
72 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
73 0, 0, 0,180, 0, 0, 0, 0, 0, 0,
74 0,204, 0, 0, 0, 0, 0, 0, 0, 0,
78 0, 0, 7, 0,11,13,15,18, 0, 0,
79 0, 0, 0,30, 0, 0, 0,40, 0,48,
80 0, 0, 0, 0, 0,58, 0,64,65,70,
81 0,76, 0, 0, 0, 0, 0, 0, 0,96,
82 0, 0, 0, 0, 0, 0,109,116, 0,124,
83 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
84 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
85 0, 0, 0,186, 0, 0, 0, 0, 0, 0,
86 0,208, 0, 0, 0, 0, 0, 0, 0, 0,
99 G4cout <<
"G4NeutronInelasticXS::G4NeutronInelasticXS Initialise for Z < "
118 outFile <<
"G4NeutronInelasticXS calculates the neutron inelastic scattering\n"
119 <<
"cross section on nuclei using data from the high precision\n"
120 <<
"neutron database. These data are simplified and smoothed over\n"
121 <<
"the resonance region in order to reduce CPU time.\n"
122 <<
"G4NeutronInelasticXS is valid for energies up to 20 MeV, for\n"
123 <<
"nuclei through U.\n";
148 if(Z < 1 || Z >=
MAXZINEL) {
return xs; }
159 if(!pv) {
return xs; }
163 if(ekin <= e1) {
return xs; }
168 xs = pv->
Value(ekin);
178 G4cout <<
"ekin= " << ekin <<
", XSinel= " << xs <<
G4endl;
206 if(!pv) {
return xs; }
209 if(pviso) { pv = pviso; }
211 xs = pv->
Value(ekin);
236 for (
G4int j = 0; j<nIso; ++j) {
237 sum += abundVector[j];
239 iso = (*isoVector)[j];
246 for (
size_t i=0; i<
nmax; ++i) {
247 G4int A = (*isoVector)[i]->GetN();
252 for (
size_t j = 0; j<
nmax; ++j) {
254 iso = (*isoVector)[j];
267 G4cout <<
"G4NeutronInelasticXS::BuildPhysicsTable for "
273 <<
" only neutron is allowed";
274 G4Exception(
"G4NeutronInelasticXS::BuildPhysicsTable(..)",
"had012",
292 char* path = getenv(
"G4NEUTRONXSDATA");
301 for(
size_t i=0; i<numOfElm; ++i) {
321 const char* path = p;
325 path = getenv(
"G4NEUTRONXSDATA");
327 G4Exception(
"G4NeutronInelasticXS::Initialise(..)",
"had013",
329 "Environment variable G4NEUTRONXSDATA is not defined");
342 std::ostringstream ost;
343 ost << path <<
"/inelast" << Z ;
358 std::ostringstream ost1;
359 ost1 << path <<
"/inelast" << Z <<
"_" <<
A;
369 for(
size_t j=0; j<i; ++j) {
386 if(sig2 > 0.) {
coeff[Z] = sig1/sig2; }
387 if(!dp) {
delete dynParticle; }
394 std::ifstream filein(ost.str().c_str());
396 if(!warn) {
return v; }
398 ed <<
"Data file <" << ost.str().c_str()
399 <<
"> is not opened!";
400 G4Exception(
"G4NeutronInelasticXS::RetrieveVector(..)",
"had014",
404 G4cout <<
"File " << ost.str()
405 <<
" is opened by G4NeutronInelasticXS" <<
G4endl;
411 ed <<
"Data file <" << ost.str().c_str()
412 <<
"> is not retrieved!";
413 G4Exception(
"G4NeutronInelasticXS::RetrieveVector(..)",
"had015",
virtual ~G4NeutronInelasticXS()
size_t GetNumberOfIsotopes() const
void Initialise(G4int Z, G4DynamicParticle *dp=0, const char *=0)
G4_DECLARE_XS_FACTORY(G4NeutronInelasticXS)
virtual G4bool Retrieve(std::ifstream &fIn, G4bool ascii)
G4double GetMaxEnergy() const
std::vector< G4Isotope * > G4IsotopeVector
void AddComponent(G4int Z, G4int id, G4PhysicsVector *v)
std::ostringstream G4ExceptionDescription
G4double GetKineticEnergy() const
CLHEP::Hep3Vector G4ThreeVector
G4PhysicsVector * GetComponentDataByID(G4int Z, G4int id)
G4PhysicsVector * GetElementData(G4int Z)
virtual G4double GetIsoCrossSection(const G4DynamicParticle *, G4int Z, G4int A, const G4Isotope *iso=0, const G4Element *elm=0, const G4Material *mat=0)
static G4double coeff[MAXZINEL]
static const G4int amax[MAXZINEL]
const G4ParticleDefinition * proton
virtual G4bool IsIsoApplicable(const G4DynamicParticle *, G4int Z, G4int A, const G4Element *, const G4Material *)
size_t GetVectorLength() const
static G4NistManager * Instance()
const G4String & GetParticleName() const
virtual G4double GetElementCrossSection(const G4DynamicParticle *, G4int Z, const G4Material *mat=0)
void InitialiseForElement(G4int Z, G4PhysicsVector *v)
G4GLOB_DLL std::ostream G4cout
static size_t GetNumberOfElements()
std::vector< G4PhysicsVector * > work
static const G4int amin[MAXZINEL]
G4double * GetRelativeAbundanceVector() const
virtual G4double GetIsoCrossSection(const G4DynamicParticle *, G4int Z, G4int A, const G4Isotope *iso, const G4Element *elm, const G4Material *mat)
static G4Neutron * Neutron()
G4double Energy(size_t index) const
size_t GetNumberOfComponents(G4int Z)
G4double Value(G4double theEnergy, size_t &lastidx) const
static const G4double A[nN]
void SetKineticEnergy(G4double aEnergy)
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
G4double IsoCrossSection(G4double ekin, G4int Z, G4int A)
G4IsotopeVector * GetIsotopeVector() const
std::vector< G4double > temp
virtual void CrossSectionDescription(std::ostream &) const
G4HadronNucleonXsc * fNucleon
virtual G4bool IsElementApplicable(const G4DynamicParticle *, G4int Z, const G4Material *)
virtual G4Isotope * SelectIsotope(const G4Element *, G4double kinEnergy)
G4double GetHadronNucleonXscPDG(const G4DynamicParticle *, const G4ParticleDefinition *)
virtual void BuildPhysicsTable(const G4ParticleDefinition &)
void SetName(const G4String &nam)
std::vector< G4Element * > G4ElementTable
static G4ElementData * data
static G4ElementTable * GetElementTable()
void InitialiseForComponent(G4int Z, G4int nComponents=0)
G4PhysicsVector * RetrieveVector(std::ostringstream &in, G4bool warn)
G4double GetInelasticHadronNucleonXsc()
G4GlauberGribovCrossSection * ggXsection
G4double GetInelasticGlauberGribovXsc()