56G4double G4BGGPionElasticXS::theGlauberFacPiPlus[93] = {0.0};
57G4double G4BGGPionElasticXS::theCoulombFacPiPlus[93] = {0.0};
58G4double G4BGGPionElasticXS::theGlauberFacPiMinus[93] = {0.0};
59G4double G4BGGPionElasticXS::theCoulombFacPiMinus[93] = {0.0};
60G4int G4BGGPionElasticXS::theA[93] = {0};
72 fGlauberEnergy = 91.*GeV;
74 fLowestEnergy = 1.*MeV;
86 isPiplus = (p == thePiPlus);
125 G4int Z = std::min(ZZ, 92);
129 if(ekin <= fLowEnergy) {
130 cross = (isPiplus) ? theCoulombFacPiPlus[Z]*CoulombFactorPiPlus(ekin, Z)
131 : theCoulombFacPiMinus[Z]*FactorPiMinus(ekin);
132 }
else if(ekin > fGlauberEnergy) {
133 cross = (isPiplus) ? theGlauberFacPiPlus[Z] : theGlauberFacPiMinus[Z];
140 G4cout <<
"G4BGGPionElasticXS::GetElementCrossSection for "
143 <<
" in nucleus Z= " << Z <<
" A= " << theA[Z]
144 <<
" XS(b)= " << cross/barn
163 G4cout <<
"G4BGGPionElasticXS::GetIsoCrossSection for "
166 <<
" in nucleus Z= " << Z <<
" A= " <<
A
167 <<
" XS(b)= " << cross/barn
177 if(fPion) {
return; }
179 G4cout <<
"G4BGGPionElasticXS::BuildPhysicsTable for "
186 ed <<
"This BGG cross section is applicable only to pions and not to "
188 G4Exception(
"G4BGGPionElasticXS::BuildPhysicsTable",
"had001",
200#ifdef G4MULTITHREADED
205#ifdef G4MULTITHREADED
213 if(isMaster && 0 == theA[0]) {
215 theA[0] = theA[1] = 1;
222 for(
G4int iz=2; iz<93; ++iz) {
229 theGlauberFacPiPlus[iz] = csdn/csup;
233 for(
G4int iz=2; iz<93; ++iz) {
236 theGlauberFacPiMinus[iz] = csdn/csup;
239 G4cout <<
"Z= " << iz <<
" A= " << theA[iz]
240 <<
" factorPiPlus= " << theGlauberFacPiPlus[iz]
241 <<
" factorPiMinus= " << theGlauberFacPiMinus[iz]
245 theCoulombFacPiPlus[1] = 1.0;
246 theCoulombFacPiMinus[1]= 1.0;
249 for(
G4int iz=2; iz<93; ++iz) {
251 /CoulombFactorPiPlus(fLowEnergy, iz);
254 for(
G4int iz=2; iz<93; ++iz) {
256 /FactorPiMinus(fLowEnergy);
259 G4cout <<
"Z= " << iz <<
" A= " << theA[iz]
260 <<
" CoulombFactorPiPlus= " << theCoulombFacPiPlus[iz]
261 <<
" CoulombFactorPiMinus= " << theCoulombFacPiMinus[iz]
272 return (kinEnergy > 0.0) ?
280 return 1.0/std::sqrt(kinEnergy);
288 outFile <<
"The Barashenkov-Glauber-Gribov cross section handles elastic\n"
289 <<
"scattering of pions from nuclei at all energies. The\n"
290 <<
"Barashenkov parameterization is used below 91 GeV and the\n"
291 <<
"Glauber-Gribov parameterization is used above 91 GeV.\n";
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *description)
std::ostringstream G4ExceptionDescription
#define G4MUTEX_INITIALIZER
#define G4MUTEXLOCK(mutex)
#define G4MUTEXUNLOCK(mutex)
G4GLOB_DLL std::ostream G4cout
G4double GetIsoCrossSection(const G4DynamicParticle *, G4int Z, G4int A, const G4Isotope *iso=nullptr, const G4Element *elm=nullptr, const G4Material *mat=nullptr) final
G4bool IsElementApplicable(const G4DynamicParticle *, G4int Z, const G4Material *) final
~G4BGGPionElasticXS() final
G4BGGPionElasticXS(const G4ParticleDefinition *)
G4double GetElementCrossSection(const G4DynamicParticle *, G4int Z, const G4Material *mat) final
void CrossSectionDescription(std::ostream &) const final
G4bool IsIsoApplicable(const G4DynamicParticle *, G4int Z, G4int A, const G4Element *elm, const G4Material *mat) final
void BuildPhysicsTable(const G4ParticleDefinition &) final
G4double GetElasticGlauberGribov(const G4DynamicParticle *, G4int Z, G4int A)
void SetDefinition(const G4ParticleDefinition *aParticleDefinition)
G4ParticleDefinition * GetDefinition() const
G4double GetKineticEnergy() const
void SetKineticEnergy(G4double aEnergy)
G4double GetElasticHadronNucleonXsc() const
G4double HadronNucleonXscNS(const G4ParticleDefinition *theParticle, const G4ParticleDefinition *nucleon, G4double ekin)
static G4HadronicParameters * Instance()
static G4NistManager * Instance()
G4double GetAtomicMassAmu(const G4String &symb) const
static G4double CoulombFactor(const G4ParticleDefinition *theParticle, const G4ParticleDefinition *nucleon, G4double ekin)
const G4String & GetParticleName() const
static G4PionMinus * PionMinus()
static G4PionPlus * PionPlus()
static G4Pow * GetInstance()
static G4Proton * Proton()
G4double GetElasticCrossSection(const G4DynamicParticle *aParticle, G4int Z, G4int A) const
void BuildPhysicsTable(const G4ParticleDefinition &) final
void SetMaxKinEnergy(G4double value)
void SetMinKinEnergy(G4double value)
void SetForAllAtomsAndEnergies(G4bool val)