Geant4 Cross Reference

Cross-Referencing   Geant4
Geant4/processes/hadronic/cross_sections/src/G4BGGPionInelasticXS.cc

Version: [ ReleaseNotes ] [ 1.0 ] [ 1.1 ] [ 2.0 ] [ 3.0 ] [ 3.1 ] [ 3.2 ] [ 4.0 ] [ 4.0.p1 ] [ 4.0.p2 ] [ 4.1 ] [ 4.1.p1 ] [ 5.0 ] [ 5.0.p1 ] [ 5.1 ] [ 5.1.p1 ] [ 5.2 ] [ 5.2.p1 ] [ 5.2.p2 ] [ 6.0 ] [ 6.0.p1 ] [ 6.1 ] [ 6.2 ] [ 6.2.p1 ] [ 6.2.p2 ] [ 7.0 ] [ 7.0.p1 ] [ 7.1 ] [ 7.1.p1 ] [ 8.0 ] [ 8.0.p1 ] [ 8.1 ] [ 8.1.p1 ] [ 8.1.p2 ] [ 8.2 ] [ 8.2.p1 ] [ 8.3 ] [ 8.3.p1 ] [ 8.3.p2 ] [ 9.0 ] [ 9.0.p1 ] [ 9.0.p2 ] [ 9.1 ] [ 9.1.p1 ] [ 9.1.p2 ] [ 9.1.p3 ] [ 9.2 ] [ 9.2.p1 ] [ 9.2.p2 ] [ 9.2.p3 ] [ 9.2.p4 ] [ 9.3 ] [ 9.3.p1 ] [ 9.3.p2 ] [ 9.4 ] [ 9.4.p1 ] [ 9.4.p2 ] [ 9.4.p3 ] [ 9.4.p4 ] [ 9.5 ] [ 9.5.p1 ] [ 9.5.p2 ] [ 9.6 ] [ 9.6.p1 ] [ 9.6.p2 ] [ 9.6.p3 ] [ 9.6.p4 ] [ 10.0 ] [ 10.0.p1 ] [ 10.0.p2 ] [ 10.0.p3 ] [ 10.0.p4 ] [ 10.1 ] [ 10.1.p1 ] [ 10.1.p2 ] [ 10.1.p3 ] [ 10.2 ] [ 10.2.p1 ] [ 10.2.p2 ] [ 10.2.p3 ] [ 10.3 ] [ 10.3.p1 ] [ 10.3.p2 ] [ 10.3.p3 ] [ 10.4 ] [ 10.4.p1 ] [ 10.4.p2 ] [ 10.4.p3 ] [ 10.5 ] [ 10.5.p1 ] [ 10.6 ] [ 10.6.p1 ] [ 10.6.p2 ] [ 10.6.p3 ] [ 10.7 ] [ 10.7.p1 ] [ 10.7.p2 ] [ 10.7.p3 ] [ 10.7.p4 ] [ 11.0 ] [ 11.0.p1 ] [ 11.0.p2 ] [ 11.0.p3, ] [ 11.0.p4 ] [ 11.1 ] [ 11.1.1 ] [ 11.1.2 ] [ 11.1.3 ] [ 11.2 ] [ 11.2.1 ] [ 11.2.2 ] [ 11.3.0 ]

Diff markup

Differences between /processes/hadronic/cross_sections/src/G4BGGPionInelasticXS.cc (Version 11.3.0) and /processes/hadronic/cross_sections/src/G4BGGPionInelasticXS.cc (Version 9.6.p1)


  1 //                                                  1 //
  2 // *******************************************      2 // ********************************************************************
  3 // * License and Disclaimer                         3 // * License and Disclaimer                                           *
  4 // *                                                4 // *                                                                  *
  5 // * The  Geant4 software  is  copyright of th      5 // * The  Geant4 software  is  copyright of the Copyright Holders  of *
  6 // * the Geant4 Collaboration.  It is provided      6 // * the Geant4 Collaboration.  It is provided  under  the terms  and *
  7 // * conditions of the Geant4 Software License      7 // * conditions of the Geant4 Software License,  included in the file *
  8 // * LICENSE and available at  http://cern.ch/      8 // * LICENSE and available at  http://cern.ch/geant4/license .  These *
  9 // * include a list of copyright holders.           9 // * include a list of copyright holders.                             *
 10 // *                                               10 // *                                                                  *
 11 // * Neither the authors of this software syst     11 // * Neither the authors of this software system, nor their employing *
 12 // * institutes,nor the agencies providing fin     12 // * institutes,nor the agencies providing financial support for this *
 13 // * work  make  any representation or  warran     13 // * work  make  any representation or  warranty, express or implied, *
 14 // * regarding  this  software system or assum     14 // * regarding  this  software system or assume any liability for its *
 15 // * use.  Please see the license in the file      15 // * use.  Please see the license in the file  LICENSE  and URL above *
 16 // * for the full disclaimer and the limitatio     16 // * for the full disclaimer and the limitation of liability.         *
 17 // *                                               17 // *                                                                  *
 18 // * This  code  implementation is the result      18 // * This  code  implementation is the result of  the  scientific and *
 19 // * technical work of the GEANT4 collaboratio     19 // * technical work of the GEANT4 collaboration.                      *
 20 // * By using,  copying,  modifying or  distri     20 // * By using,  copying,  modifying or  distributing the software (or *
 21 // * any work based  on the software)  you  ag     21 // * any work based  on the software)  you  agree  to acknowledge its *
 22 // * use  in  resulting  scientific  publicati     22 // * use  in  resulting  scientific  publications,  and indicate your *
 23 // * acceptance of all terms of the Geant4 Sof     23 // * acceptance of all terms of the Geant4 Software license.          *
 24 // *******************************************     24 // ********************************************************************
 25 //                                                 25 //
                                                   >>  26 // $Id$
                                                   >>  27 //
 26 // -------------------------------------------     28 // -------------------------------------------------------------------
 27 //                                                 29 //
 28 // GEANT4 Class file                               30 // GEANT4 Class file
 29 //                                                 31 //
 30 //                                                 32 //
 31 // File name:     G4BGGPionInelasticXS             33 // File name:     G4BGGPionInelasticXS
 32 //                                                 34 //
 33 // Author:        Vladimir Ivanchenko              35 // Author:        Vladimir Ivanchenko
 34 //                                                 36 //
 35 // Creation date: 01.10.2003                       37 // Creation date: 01.10.2003
 36 // Modifications:                                  38 // Modifications:
 37 //                                                 39 //
 38 // -------------------------------------------     40 // -------------------------------------------------------------------
 39 //                                                 41 //
 40                                                    42 
 41 #include "G4BGGPionInelasticXS.hh"                 43 #include "G4BGGPionInelasticXS.hh"
 42 #include "G4SystemOfUnits.hh"                      44 #include "G4SystemOfUnits.hh"
 43 #include "G4ComponentGGHadronNucleusXsc.hh"    <<  45 #include "G4GlauberGribovCrossSection.hh"
 44 #include "G4UPiNuclearCrossSection.hh"             46 #include "G4UPiNuclearCrossSection.hh"
 45 #include "G4HadronNucleonXsc.hh"                   47 #include "G4HadronNucleonXsc.hh"
 46 #include "G4NuclearRadii.hh"                   <<  48 //#include "G4HadronInelasticDataSet.hh"
                                                   >>  49 #include "G4ComponentSAIDTotalXS.hh"
 47                                                    50 
 48 #include "G4Proton.hh"                             51 #include "G4Proton.hh"
 49 #include "G4PionPlus.hh"                           52 #include "G4PionPlus.hh"
 50 #include "G4PionMinus.hh"                          53 #include "G4PionMinus.hh"
 51 #include "G4NistManager.hh"                        54 #include "G4NistManager.hh"
 52 #include "G4Pow.hh"                            << 
 53 #include "G4HadronicParameters.hh"             << 
 54                                                    55 
 55 G4double G4BGGPionInelasticXS::theGlauberFacPi << 
 56 G4double G4BGGPionInelasticXS::theGlauberFacPi << 
 57 G4double G4BGGPionInelasticXS::theLowEPiPlus[9 << 
 58 G4double G4BGGPionInelasticXS::theLowEPiMinus[ << 
 59 G4int    G4BGGPionInelasticXS::theA[93] = {0}; << 
 60                                                    56 
 61 G4BGGPionInelasticXS::G4BGGPionInelasticXS(con     57 G4BGGPionInelasticXS::G4BGGPionInelasticXS(const G4ParticleDefinition* p) 
 62  : G4VCrossSectionDataSet("BarashenkovGlauberG <<  58  : G4VCrossSectionDataSet("Barashenkov-Glauber-Gribov")
 63 {                                                  59 {
 64   verboseLevel = 0;                                60   verboseLevel = 0;
 65   fGlauberEnergy = 91.*CLHEP::GeV;             <<  61   fGlauberEnergy = 91.*GeV;
 66   fLowEnergy = 20.*CLHEP::MeV;                 <<  62   fLowEnergy = 20.*MeV;
 67   fLowestEnergy = 1.*CLHEP::MeV;               <<  63   fSAIDHighEnergyLimit = 2.6*GeV;
 68   SetMinKinEnergy(0.0);                            64   SetMinKinEnergy(0.0);
 69   SetMaxKinEnergy( G4HadronicParameters::Insta <<  65   SetMaxKinEnergy(100*TeV);
 70                                                << 
 71   fPion    = new G4UPiNuclearCrossSection();   << 
 72   fGlauber = new G4ComponentGGHadronNucleusXsc << 
 73   fHadron  = new G4HadronNucleonXsc();         << 
 74                                                << 
 75   fG4pow   = G4Pow::GetInstance();             << 
 76                                                << 
 77   theProton = G4Proton::Proton();              << 
 78   thePiPlus = G4PionPlus::PionPlus();          << 
 79   isPiplus = (p == thePiPlus);                 << 
 80   SetForAllAtomsAndEnergies(true);             << 
 81                                                    66 
 82   if (0 == theA[0]) { Initialise(); }          <<  67   for (G4int i = 0; i < 93; i++) {
                                                   >>  68     theGlauberFac[i] = 0.0;
                                                   >>  69     theCoulombFac[i] = 0.0;
                                                   >>  70     theA[i] = 1;
                                                   >>  71   }
                                                   >>  72   fPion = 0;
                                                   >>  73   fGlauber = 0;
                                                   >>  74   fHadron  = 0;
                                                   >>  75   //  fGHEISHA = 0;
                                                   >>  76   fSAID    = 0;
                                                   >>  77   particle = p;
                                                   >>  78   theProton= G4Proton::Proton();
                                                   >>  79   isPiplus = false;
                                                   >>  80   isInitialized = false;
 83 }                                                  81 }
 84                                                    82 
 85 //....oooOO0OOooo........oooOO0OOooo........oo << 
 86                                                    83 
 87 G4BGGPionInelasticXS::~G4BGGPionInelasticXS()      84 G4BGGPionInelasticXS::~G4BGGPionInelasticXS()
 88 {                                                  85 {
                                                   >>  86   delete fGlauber;
                                                   >>  87   delete fPion;
 89   delete fHadron;                                  88   delete fHadron;
                                                   >>  89   delete fSAID;
 90 }                                                  90 }
 91                                                    91 
 92 //....oooOO0OOooo........oooOO0OOooo........oo     92 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
 93                                                    93 
 94 G4bool                                             94 G4bool 
 95 G4BGGPionInelasticXS::IsElementApplicable(cons     95 G4BGGPionInelasticXS::IsElementApplicable(const G4DynamicParticle*, G4int,
 96                                           cons <<  96             const G4Material*)
 97 {                                                  97 {
 98   return true;                                     98   return true;
 99 }                                                  99 }
100                                                   100 
101 //....oooOO0OOooo........oooOO0OOooo........oo    101 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
102                                                   102 
103 G4bool G4BGGPionInelasticXS::IsIsoApplicable(c    103 G4bool G4BGGPionInelasticXS::IsIsoApplicable(const G4DynamicParticle*, 
104                                              G << 104                G4int Z, G4int A,  
105                                              c << 105                const G4Element*,
106                                              c << 106                const G4Material*)
107 {                                                 107 {
108   return (1 == Z);                             << 108   return (1 == Z && 2 >= A);
109 }                                                 109 }
110                                                   110 
111 //....oooOO0OOooo........oooOO0OOooo........oo    111 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
112                                                   112 
113 G4double                                          113 G4double
114 G4BGGPionInelasticXS::GetElementCrossSection(c    114 G4BGGPionInelasticXS::GetElementCrossSection(const G4DynamicParticle* dp,
115                                              G << 115                G4int ZZ, const G4Material*)
116 {                                                 116 {
117   // this method should be called only for Z >    117   // this method should be called only for Z > 1
118                                                   118 
119   G4double cross = 0.0;                           119   G4double cross = 0.0;
120   G4double ekin = std::max(dp->GetKineticEnerg << 120   G4double ekin = dp->GetKineticEnergy();
121   G4int Z = std::min(ZZ, 92);                  << 121   G4int Z = ZZ;
122                                                << 
123   if(1 == Z) {                                    122   if(1 == Z) {
124     cross = 1.0115*GetIsoCrossSection(dp,1,1);    123     cross = 1.0115*GetIsoCrossSection(dp,1,1);
125   } else if(ekin < fLowEnergy) {               << 
126     cross = (isPiplus) ? theLowEPiPlus[Z]*Coul << 
127       : theLowEPiMinus[Z]*FactorPiMinus(ekin); << 
128   } else if(ekin > fGlauberEnergy) {           << 
129     cross = (isPiplus) ? theGlauberFacPiPlus[Z << 
130     cross *= fGlauber->GetInelasticGlauberGrib << 
131   } else {                                        124   } else {
132     cross = fPion->GetInelasticCrossSection(dp << 125     if(Z > 92) { Z = 92; }
                                                   >> 126 
                                                   >> 127     if(ekin <= fLowEnergy && !isPiplus) {
                                                   >> 128       cross = theCoulombFac[Z];
                                                   >> 129     } else if(ekin <= 2*MeV && isPiplus) {
                                                   >> 130       cross = theCoulombFac[Z]*CoulombFactor(ekin, Z);  
                                                   >> 131     } else if(ekin > fGlauberEnergy) {
                                                   >> 132       cross = theGlauberFac[Z]*fGlauber->GetInelasticGlauberGribov(dp, Z, theA[Z]);
                                                   >> 133     } else {
                                                   >> 134       cross = fPion->GetInelasticCrossSection(dp, Z, theA[Z]);
                                                   >> 135     }
133   }                                               136   }
134 #ifdef G4VERBOSE                               << 
135   if(verboseLevel > 1) {                          137   if(verboseLevel > 1) {
136     G4cout << "G4BGGPionInelasticXS::GetCrossS    138     G4cout << "G4BGGPionInelasticXS::GetCrossSection  for "
137            << dp->GetDefinition()->GetParticle << 139      << dp->GetDefinition()->GetParticleName()
138            << "  Ekin(GeV)= " << dp->GetKineti << 140      << "  Ekin(GeV)= " << dp->GetKineticEnergy()
139            << " in nucleus Z= " << Z << "  A=  << 141      << " in nucleus Z= " << Z << "  A= " << theA[Z]
140            << " XS(b)= " << cross/barn         << 142      << " XS(b)= " << cross/barn 
141            << G4endl;                          << 143      << G4endl;
142   }                                               144   }
143 #endif                                         << 
144   return cross;                                   145   return cross;
145 }                                                 146 }
146                                                   147 
147 //....oooOO0OOooo........oooOO0OOooo........oo    148 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
148                                                   149 
149 G4double                                          150 G4double
150 G4BGGPionInelasticXS::GetIsoCrossSection(const    151 G4BGGPionInelasticXS::GetIsoCrossSection(const G4DynamicParticle* dp, 
151                                          G4int << 152            G4int Z, G4int A, 
152                                          const << 153            const G4Isotope*,
153                                          const << 154            const G4Element*,
154                                          const << 155            const G4Material*)
155 {                                                 156 {
156   // this method should be called only for Z =    157   // this method should be called only for Z = 1
157   fHadron->HadronNucleonXscNS(dp->GetDefinitio << 
158                               dp->GetKineticEn << 
159   G4double cross = A*fHadron->GetInelasticHadr << 
160                                                   158 
161 #ifdef G4VERBOSE                               << 159   G4double cross = 0.0;
                                                   >> 160   G4double ekin = dp->GetKineticEnergy();
                                                   >> 161 
                                                   >> 162   if(ekin <= fSAIDHighEnergyLimit) {
                                                   >> 163     cross = fSAID->GetInelasticIsotopeCrossSection(particle, ekin, 1, 1);
                                                   >> 164   } else {
                                                   >> 165     fHadron->GetHadronNucleonXscPDG(dp, theProton);
                                                   >> 166     cross = (theCoulombFac[1]/ekin + 1)*fHadron->GetInelasticHadronNucleonXsc();
                                                   >> 167   } 
                                                   >> 168   /*
                                                   >> 169   if(isPiplus) { 
                                                   >> 170     if(ekin <= 20*GeV) {
                                                   >> 171       cross = theCoulombFac[1]*fGHEISHA->GetElementCrossSection(dp, 1, mat);
                                                   >> 172     } else {
                                                   >> 173       fHadron->GetHadronNucleonXscPDG(dp, theProton);
                                                   >> 174       cross = fHadron->GetInelasticHadronNucleonXsc();
                                                   >> 175     }
                                                   >> 176   } else {
                                                   >> 177     if(ekin <= fLowEnergy) {
                                                   >> 178       cross = theCoulombFac[1];
                                                   >> 179     } else if(ekin <= 20*GeV) {
                                                   >> 180       fHadron->GetHadronNucleonXscNS(dp, theProton);
                                                   >> 181       cross = theGlauberFac[1]*fHadron->GetInelasticHadronNucleonXsc();
                                                   >> 182     } else {
                                                   >> 183       fHadron->GetHadronNucleonXscPDG(dp, theProton);
                                                   >> 184       cross = fHadron->GetInelasticHadronNucleonXsc();
                                                   >> 185     }
                                                   >> 186   }
                                                   >> 187   */
                                                   >> 188   cross *= A;
                                                   >> 189 
162   if(verboseLevel > 1) {                          190   if(verboseLevel > 1) {
163     G4cout << "G4BGGPionInelasticXS::GetCrossS    191     G4cout << "G4BGGPionInelasticXS::GetCrossSection  for "
164            << dp->GetDefinition()->GetParticle << 192      << dp->GetDefinition()->GetParticleName()
165            << "  Ekin(GeV)= " << dp->GetKineti << 193      << "  Ekin(GeV)= " << dp->GetKineticEnergy()
166            << " in nucleus Z=1  A=" << A       << 194      << " in nucleus Z= " << Z << "  A= " << A
167            << " XS(b)= " << cross/barn         << 195      << " XS(b)= " << cross/barn 
168            << G4endl;                          << 196      << G4endl;
169   }                                               197   }
170 #endif                                         << 
171   return cross;                                   198   return cross;
172 }                                                 199 }
173                                                   200 
174 //....oooOO0OOooo........oooOO0OOooo........oo    201 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
175                                                   202 
176 void G4BGGPionInelasticXS::BuildPhysicsTable(c    203 void G4BGGPionInelasticXS::BuildPhysicsTable(const G4ParticleDefinition& p)
177 {                                                 204 {
178   if(verboseLevel > 1) {                       << 
179     G4cout << "G4BGGPionInelasticXS::BuildPhys << 
180            << p.GetParticleName() << G4endl;   << 
181   }                                            << 
182   if(&p == G4PionPlus::PionPlus() || &p == G4P    205   if(&p == G4PionPlus::PionPlus() || &p == G4PionMinus::PionMinus()) {
183     isPiplus = (&p == G4PionPlus::PionPlus()); << 206     particle = &p;
184   } else {                                        207   } else {
185     G4ExceptionDescription ed;                 << 208     G4cout << "### G4BGGPionInelasticXS WARNING: is not applicable to " 
186     ed << "This BGG cross section is applicabl << 209      << p.GetParticleName()
187        << p.GetParticleName() << G4endl;       << 210      << G4endl;
188     G4Exception("G4BGGPionInelasticXS::BuildPh << 211     throw G4HadronicException(__FILE__, __LINE__,
189                 FatalException, ed);           << 212     "G4BGGPionInelasticXS::BuildPhysicsTable is used for wrong particle");
                                                   >> 213     return;
190   }                                               214   }
191 }                                              << 
192                                                   215 
193 //....oooOO0OOooo........oooOO0OOooo........oo << 216   if(isInitialized) { return; }
                                                   >> 217   isInitialized = true;
194                                                   218 
195 void G4BGGPionInelasticXS::Initialise()        << 219   fPion    = new G4UPiNuclearCrossSection();
196 {                                              << 220   fGlauber = new G4GlauberGribovCrossSection();
197   theA[0] = theA[1] = 1;                       << 221   fHadron  = new G4HadronNucleonXsc();
                                                   >> 222   //  fGHEISHA = new G4HadronInelasticDataSet();
                                                   >> 223   fSAID    = new G4ComponentSAIDTotalXS();
                                                   >> 224 
                                                   >> 225   fPion->BuildPhysicsTable(*particle);
                                                   >> 226   fGlauber->BuildPhysicsTable(*particle);
                                                   >> 227   if(particle == G4PionPlus::PionPlus()) { isPiplus = true; }
                                                   >> 228 
                                                   >> 229   G4ParticleDefinition* part = const_cast<G4ParticleDefinition*>(particle);
198   G4ThreeVector mom(0.0,0.0,1.0);                 230   G4ThreeVector mom(0.0,0.0,1.0);
199   G4DynamicParticle dp(thePiPlus, mom, fGlaube << 231   G4DynamicParticle dp(part, mom, fGlauberEnergy);
200                                                   232 
201   G4NistManager* nist = G4NistManager::Instanc    233   G4NistManager* nist = G4NistManager::Instance();
                                                   >> 234 
202   G4double csup, csdn;                            235   G4double csup, csdn;
                                                   >> 236   G4int A;
                                                   >> 237 
                                                   >> 238   if(verboseLevel > 0) {
                                                   >> 239     G4cout << "### G4BGGPionInelasticXS::Initialise for "
                                                   >> 240      << particle->GetParticleName()
                                                   >> 241      << " isPiplus: " << isPiplus
                                                   >> 242      << G4endl;
                                                   >> 243   }
                                                   >> 244 
                                                   >> 245   for(G4int iz=2; iz<93; iz++) {
203                                                   246 
204   for (G4int iz=2; iz<93; ++iz) {              << 247     A = G4lrint(nist->GetAtomicMassAmu(iz));
205     G4int A = G4lrint(nist->GetAtomicMassAmu(i << 
206     theA[iz] = A;                                 248     theA[iz] = A;
207                                                   249 
208     csup = fGlauber->GetInelasticGlauberGribov    250     csup = fGlauber->GetInelasticGlauberGribov(&dp, iz, A);
209     csdn = fPion->GetInelasticCrossSection(&dp << 
210     theGlauberFacPiPlus[iz] = csdn/csup;       << 
211   }                                            << 
212                                                << 
213   dp.SetDefinition(G4PionMinus::PionMinus());  << 
214   for (G4int iz=2; iz<93; ++iz) {              << 
215     csup = fGlauber->GetInelasticGlauberGribov << 
216     csdn = fPion->GetInelasticCrossSection(&dp    251     csdn = fPion->GetInelasticCrossSection(&dp, iz, theA[iz]);
217     theGlauberFacPiMinus[iz] = csdn/csup;      << 
218                                                   252 
219     if(verboseLevel > 1) {                     << 253     theGlauberFac[iz] = csdn/csup;
220       G4cout << "Z= " << iz <<  "  A= " << the << 254     if(verboseLevel > 0) {
221        << " factorPiPlus= " << theGlauberFacPi << 255       G4cout << "Z= " << iz <<  "  A= " << A 
222        << " factorPiMinus= " << theGlauberFacP << 256        << " factor= " << theGlauberFac[iz] << G4endl; 
223        << G4endl;                              << 
224     }                                             257     }
225   }                                               258   }
226                                                << 259   dp.SetKineticEnergy(fSAIDHighEnergyLimit);
227   theLowEPiPlus[1] = theLowEPiMinus[1]= 1.0;   << 260   fHadron->GetHadronNucleonXscPDG(&dp, theProton);
228   dp.SetDefinition(thePiPlus);                 << 261   theCoulombFac[1] = fSAIDHighEnergyLimit*
229   dp.SetKineticEnergy(fLowEnergy);             << 262     (fSAID->GetInelasticIsotopeCrossSection(particle,fSAIDHighEnergyLimit,1,1)
230   for (G4int iz=2; iz<93; ++iz) {              << 263      /fHadron->GetInelasticHadronNucleonXsc() - 1);
231     theLowEPiPlus[iz] = fPion->GetInelasticCro << 264 
232       /CoulombFactorPiPlus(fLowEnergy, iz);    << 265   /*
                                                   >> 266   dp.SetKineticEnergy(20*GeV);
                                                   >> 267   const G4Material* mat = 0;
                                                   >> 268   if(isPiplus) { 
                                                   >> 269     fHadron->GetHadronNucleonXscPDG(&dp, theProton);
                                                   >> 270     theCoulombFac[1] = fHadron->GetInelasticHadronNucleonXsc()
                                                   >> 271       /fGHEISHA->GetElementCrossSection(&dp, 1, mat);
                                                   >> 272   } else {
                                                   >> 273     fHadron->GetHadronNucleonXscPDG(&dp, theProton);
                                                   >> 274     theGlauberFac[1] = fHadron->GetInelasticHadronNucleonXsc();
                                                   >> 275     fHadron->GetHadronNucleonXscNS(&dp, theProton);
                                                   >> 276     theGlauberFac[1] /= fHadron->GetInelasticHadronNucleonXsc();
233   }                                               277   }
                                                   >> 278   */ 
                                                   >> 279   if(isPiplus) { 
                                                   >> 280     dp.SetKineticEnergy(2*MeV);
                                                   >> 281     for(G4int iz=2; iz<93; iz++) {
                                                   >> 282       theCoulombFac[iz] = fPion->GetInelasticCrossSection(&dp, iz, theA[iz])
                                                   >> 283   /CoulombFactor(2*MeV,iz); 
                                                   >> 284     }
234                                                   285 
235   dp.SetDefinition(G4PionMinus::PionMinus());  << 286   } else {
236   for (G4int iz=2; iz<93; ++iz) {              << 287     dp.SetKineticEnergy(fLowEnergy);
237     theLowEPiMinus[iz] = fPion->GetInelasticCr << 288     //fHadron->GetHadronNucleonXscNS(&dp, theProton);
238       /FactorPiMinus(fLowEnergy);              << 289     //theCoulombFac[1] = theGlauberFac[1]*fHadron->GetInelasticHadronNucleonXsc();
239                                                << 290     for(G4int iz=2; iz<93; iz++) {
240     if (verboseLevel > 1) {                    << 291       theCoulombFac[iz] = fPion->GetInelasticCrossSection(&dp, iz, theA[iz]);
241       G4cout << "Z= " << iz <<  "  A= " << the << 
242        << " LowEtorPiPlus= " << theLowEPiPlus[ << 
243        << " LowEtorPiMinus= " << theLowEPiMinu << 
244        << G4endl;                              << 
245     }                                             292     }
246   }                                               293   }
247 }                                                 294 }
248                                                   295 
249 //....oooOO0OOooo........oooOO0OOooo........oo    296 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
250                                                   297 
251 G4double G4BGGPionInelasticXS::CoulombFactorPi << 298 G4double G4BGGPionInelasticXS::CoulombFactor(G4double kinEnergy, G4int Z)
252 {                                              << 
253   return (kinEnergy > 0.0) ?                   << 
254     G4NuclearRadii::CoulombFactor(Z, theA[Z],  << 
255 }                                              << 
256                                                << 
257 //....oooOO0OOooo........oooOO0OOooo........oo << 
258                                                << 
259 G4double G4BGGPionInelasticXS::FactorPiMinus(G << 
260 {                                                 299 {
261   return 1.0/std::sqrt(kinEnergy);             << 300   G4int A = theA[Z];
                                                   >> 301   G4double res= 0.0;
                                                   >> 302   if(kinEnergy <= DBL_MIN) { return res; }
                                                   >> 303   else if(A < 2) { return kinEnergy*kinEnergy; }
                                                   >> 304   
                                                   >> 305   G4double elog = std::log10(6.7*kinEnergy/GeV);
                                                   >> 306   G4double aa = A;
                                                   >> 307 
                                                   >> 308   // from G4ProtonInelasticCrossSection
                                                   >> 309   G4double ff1 = 0.70 - 0.002*aa;           // slope of the drop at medium energies.
                                                   >> 310   G4double ff2 = 1.00 + 1/aa;               // start of the slope.
                                                   >> 311   G4double ff3 = 0.8  + 18/aa - 0.002*aa;   // stephight
                                                   >> 312   res = 1.0 + ff3*(1.0 - (1.0/(1+std::exp(-8*ff1*(elog + 1.37*ff2)))));
                                                   >> 313 
                                                   >> 314   ff1 = 1.   - 1./aa - 0.001*aa; // slope of the rise
                                                   >> 315   ff2 = 1.17 - 2.7/aa-0.0014*aa; // start of the rise
                                                   >> 316   res /= (1 + std::exp(-8.*ff1*(elog + 2*ff2)));
                                                   >> 317     /*
                                                   >> 318   G4double f1 = 8.0  - 8.0/aa - 0.008*aa;
                                                   >> 319   G4double f2 = 2.34 - 5.4/aa - 0.0028*aa;
                                                   >> 320 
                                                   >> 321   res = 1.0/(1.0 + std::exp(-f1*(elog + f2)));
                                                   >> 322  
                                                   >> 323   f1 = 5.6 - 0.016*aa;
                                                   >> 324   f2 = 1.37 + 1.37/aa;
                                                   >> 325   res *= ( 1.0 + (0.8 + 18./aa - 0.002*aa)/(1.0 + std::exp(f1*(elog + f2))));
                                                   >> 326     */
                                                   >> 327   return res;  
262 }                                                 328 }
263                                                   329 
264 //....oooOO0OOooo........oooOO0OOooo........oo    330 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
265                                                   331 
266 void                                              332 void
267 G4BGGPionInelasticXS::CrossSectionDescription(    333 G4BGGPionInelasticXS::CrossSectionDescription(std::ostream& outFile) const 
268 {                                                 334 {
269   outFile << "The Barashenkov-Glauber-Gribov c    335   outFile << "The Barashenkov-Glauber-Gribov cross section handles inelastic\n"
270           << "pion scattering from nuclei at a    336           << "pion scattering from nuclei at all energies.  The Barashenkov\n"
271           << "parameterization is used below 9    337           << "parameterization is used below 91 GeV and the Glauber-Gribov\n"
272           << "parameterization is used above 9    338           << "parameterization is used above 91 GeV.\n";
273 }                                                 339 }
274                                                   340 
275 //....oooOO0OOooo........oooOO0OOooo........oo    341 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
276                                                   342