74 particle(part),
75 elimit(20*CLHEP::MeV)
76{
77 if(nullptr == part) {
78 G4Exception(
"G4ParticleInelasticXS::G4ParticleInelasticXS(..)",
"had015",
80 } else {
84 G4cout <<
"G4ParticleInelasticXS::G4ParticleInelasticXS for "
85 << particleName <<
" on atoms with Z < " << MAXZINELP <<
G4endl;
86 }
88 if(particleName == "proton") {
89 highEnergyXsection = xsr->GetComponentCrossSection("Glauber-Gribov");
90 if(highEnergyXsection == nullptr) {
92 }
93 } else {
94 highEnergyXsection =
95 xsr->GetComponentCrossSection("Glauber-Gribov Nucl-nucl");
96 if(highEnergyXsection == nullptr) {
98 }
99 for (index=1; index<5; ++index) {
100 if (particleName == pname[index]) { break; }
101 }
102 if (index == 5) {
104 ed << particleName << " is a wrong particle type";
105 G4Exception(
"G4ParticleInelasticXS::BuildPhysicsTable(..)",
"had012",
107 }
109 }
110 }
112 if (data[0] == nullptr) {
113 for (
G4int i=0; i<5; ++i) {
115 data[i]->
SetName(pname[i] +
"IonInel");
116 }
117 FindDirectoryPath();
118 }
119}
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *description)
std::ostringstream G4ExceptionDescription
G4GLOB_DLL std::ostream G4cout
static G4CrossSectionDataSetRegistry * Instance()
void SetName(const G4String &nam)
const G4String & GetParticleName() const
G4VCrossSectionDataSet(const G4String &nam="")
void SetMaxKinEnergy(G4double value)
void SetForAllAtomsAndEnergies(G4bool val)