source: trunk/source/processes/hadronic/cross_sections/src/G4BGGNucleonInelasticXS.cc@ 1315

Last change on this file since 1315 was 1228, checked in by garnier, 16 years ago

update geant4.9.3 tag

File size: 7.4 KB
RevLine 
[819]1//
2// ********************************************************************
3// * License and Disclaimer *
4// * *
5// * The Geant4 software is copyright of the Copyright Holders of *
6// * the Geant4 Collaboration. It is provided under the terms and *
7// * conditions of the Geant4 Software License, included in the file *
8// * LICENSE and available at http://cern.ch/geant4/license . These *
9// * include a list of copyright holders. *
10// * *
11// * Neither the authors of this software system, nor their employing *
12// * institutes,nor the agencies providing financial support for this *
13// * work make any representation or warranty, express or implied, *
14// * regarding this software system or assume any liability for its *
15// * use. Please see the license in the file LICENSE and URL above *
16// * for the full disclaimer and the limitation of liability. *
17// * *
18// * This code implementation is the result of the scientific and *
19// * technical work of the GEANT4 collaboration. *
20// * By using, copying, modifying or distributing the software (or *
21// * any work based on the software) you agree to acknowledge its *
22// * use in resulting scientific publications, and indicate your *
23// * acceptance of all terms of the Geant4 Software license. *
24// ********************************************************************
25//
[1228]26// $Id: G4BGGNucleonInelasticXS.cc,v 1.7 2009/11/19 19:40:45 vnivanch Exp $
27// GEANT4 tag $Name: geant4-09-03 $
[819]28//
29// -------------------------------------------------------------------
30//
31// GEANT4 Class file
32//
33//
34// File name: G4BGGNucleonInelasticXS
35//
36// Author: Vladimir Ivanchenko
37//
38// Creation date: 13.03.2007
39// Modifications:
40//
41//
42// -------------------------------------------------------------------
43//
44
45#include "G4BGGNucleonInelasticXS.hh"
46#include "G4GlauberGribovCrossSection.hh"
47#include "G4NucleonNuclearCrossSection.hh"
[962]48#include "G4HadronNucleonXsc.hh"
[819]49#include "G4Proton.hh"
50#include "G4Neutron.hh"
51#include "G4NistManager.hh"
52
53//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
54
55G4BGGNucleonInelasticXS::G4BGGNucleonInelasticXS(const G4ParticleDefinition* p)
56{
57 verboseLevel = 0;
[962]58 fGlauberEnergy = 91.*GeV;
59 fLowEnergy = 20.*MeV;
60 fNucleon = 0;
61 fGlauber = 0;
62 fHadron = 0;
63 particle = p;
64 isProton = false;
65 isInitialized = false;
[819]66}
67
68//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
69
70G4BGGNucleonInelasticXS::~G4BGGNucleonInelasticXS()
71{
72 delete fGlauber;
73 delete fNucleon;
[962]74 delete fHadron;
[819]75}
76
77//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
78
79G4double G4BGGNucleonInelasticXS::GetIsoZACrossSection(const G4DynamicParticle* dp,
80 G4double Z,
81 G4double A,
82 G4double)
83{
84 G4double cross = 0.0;
85 G4double ekin = dp->GetKineticEnergy();
[962]86 G4int iz = G4int(Z);
[819]87 if(iz > 92) iz = 92;
88
[962]89 if(ekin <= fLowEnergy) {
90 cross = theCoulombFac[iz]*CoulombFactor(ekin, A);
91 } else if(iz == 1) {
92 if( A < 1.5) {
[1228]93 fHadron->GetHadronNucleonXscNS(dp, G4Proton::Proton());
[962]94 cross = fHadron->GetInelasticHadronNucleonXsc();
95 } else {
[1228]96 fHadron->GetHadronNucleonXscNS(dp, G4Proton::Proton());
[962]97 cross = fHadron->GetInelasticHadronNucleonXsc();
[1228]98 fHadron->GetHadronNucleonXscNS(dp, G4Neutron::Neutron());
[962]99 cross += fHadron->GetInelasticHadronNucleonXsc();
100 }
101 } else if(ekin > fGlauberEnergy) {
102 cross = theGlauberFac[iz]*fGlauber->GetInelasticGlauberGribov(dp, Z, A);
[819]103 } else {
104 cross = fNucleon->GetIsoZACrossSection(dp, Z, A);
105 }
106
107 if(verboseLevel > 1)
108 G4cout << "G4BGGNucleonInelasticXS::GetCrossSection for "
109 << dp->GetDefinition()->GetParticleName()
110 << " Ekin(GeV)= " << dp->GetKineticEnergy()
111 << " in nucleus Z= " << Z << " A= " << A
112 << " XS(b)= " << cross/barn
113 << G4endl;
114
115 return cross;
116}
117
118//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
119
[962]120void G4BGGNucleonInelasticXS::BuildPhysicsTable(const G4ParticleDefinition& p)
[819]121{
[962]122 if(&p == G4Proton::Proton() || &p == G4Neutron::Neutron()) {
123 particle = &p;
124 Initialise();
125 } else {
126 G4cout << "### G4BGGNucleonInelasticXS WARNING: is not applicable to "
127 << p.GetParticleName()
128 << G4endl;
129 }
[819]130}
131
132//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
133
134void G4BGGNucleonInelasticXS::DumpPhysicsTable(const G4ParticleDefinition&)
135{
136 G4cout << "G4BGGNucleonInelasticXS:"<<G4endl;
137}
138
139//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
140
141void G4BGGNucleonInelasticXS::Initialise()
142{
[962]143 if(isInitialized) return;
144 isInitialized = true;
145
146 fNucleon = new G4NucleonNuclearCrossSection();
147 fGlauber = new G4GlauberGribovCrossSection();
148 fHadron = new G4HadronNucleonXsc();
149 fNucleon->BuildPhysicsTable(*particle);
150 fGlauber->BuildPhysicsTable(*particle);
151 if(particle == G4Proton::Proton()) isProton = true;
152
[819]153 G4ParticleDefinition* part = const_cast<G4ParticleDefinition*>(particle);
154 G4ThreeVector mom(0.0,0.0,1.0);
[962]155 G4DynamicParticle dp(part, mom, fGlauberEnergy);
[819]156
157 G4NistManager* nist = G4NistManager::Instance();
158 G4double A = nist->GetAtomicMassAmu(2);
159
160 G4double csup, csdn;
161
162 if(verboseLevel > 0) G4cout << "### G4BGGNucleonInelasticXS::Initialise for "
163 << particle->GetParticleName() << G4endl;
164
165 for(G4int iz=2; iz<93; iz++) {
166
167 G4double Z = G4double(iz);
168 A = nist->GetAtomicMassAmu(iz);
169
170 csup = fGlauber->GetInelasticGlauberGribov(&dp, Z, A);
171 csdn = fNucleon->GetIsoZACrossSection(&dp, Z, A);
172
[962]173 theGlauberFac[iz] = csdn/csup;
[819]174 if(verboseLevel > 0) G4cout << "Z= " << Z << " A= " << A
[962]175 << " factor= " << theGlauberFac[iz] << G4endl;
[819]176 }
[962]177 dp.SetKineticEnergy(fLowEnergy);
[1228]178 fHadron->GetHadronNucleonXscNS(&dp, G4Proton::Proton());
[962]179 theCoulombFac[1] =
180 fHadron->GetInelasticHadronNucleonXsc()/CoulombFactor(fLowEnergy,1.0);
181
182 for(G4int iz=2; iz<93; iz++) {
183
184 G4double Z = G4double(iz);
185 A = nist->GetAtomicMassAmu(iz);
186
187 theCoulombFac[iz] =
188 fNucleon->GetIsoZACrossSection(&dp, Z, A)/CoulombFactor(fLowEnergy,A);
189
190 if(verboseLevel > 0) G4cout << "Z= " << Z << " A= " << A
191 << " factor= " << theCoulombFac[iz] << G4endl;
192 }
[819]193}
194
195//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
196
[962]197G4double G4BGGNucleonInelasticXS::CoulombFactor(G4double kinEnergy, G4double A)
198{
199 G4double res= 0.0;
200 if(kinEnergy <= DBL_MIN) return res;
201 else if (A < 1.5) return kinEnergy*kinEnergy;
202
203 G4double elog = std::log10(kinEnergy/GeV);
[819]204
[962]205 // from G4ProtonInelasticCrossSection
206 if(isProton) {
207 G4double f1 = 8.0 - 8.0/A - 0.008*A;
208 G4double f2 = 2.34 - 5.4/A - 0.0028*A;
209
210 res = 1.0/(1.0 + std::exp(-f1*(elog + f2)));
211
212 f1 = 5.6 - 0.016*A;
213 f2 = 1.37 + 1.37/A;
214 res *= ( 1.0 + (0.8 + 18./A - 0.002*A)/(1.0 + std::exp(f1*(elog + f2))));
215 } else {
216
217 G4double p3 = 0.6 + 13./A - 0.0005*A;
218 G4double p4 = 7.2449 - 0.018242*A;
219 G4double p5 = 1.36 + 1.8/A + 0.0005*A;
220 G4double p6 = 1. + 200./A + 0.02*A;
221 G4double p7 = 3.0 - (A-70.)*(A-200.)/11000.;
222
223 res = (1.+p3/(1. + std::exp(p4*(elog+p5))))/(1.+std::exp(-p6*(elog+p7)));
224
225 }
226 return res;
227}
228
229//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
230
Note: See TracBrowser for help on using the repository browser.