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

Last change on this file since 1340 was 1340, checked in by garnier, 15 years ago

update ti head

File size: 7.3 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//
[1340]26// $Id: G4BGGNucleonInelasticXS.cc,v 1.9 2010/10/12 06:16:19 dennis Exp $
27// GEANT4 tag $Name: hadr-cross-V09-03-12 $
[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
[1340]78G4double
79G4BGGNucleonInelasticXS::GetZandACrossSection(const G4DynamicParticle* dp,
80 G4int Z, G4int A, G4double)
[819]81{
82 G4double cross = 0.0;
83 G4double ekin = dp->GetKineticEnergy();
[1340]84// G4int iz = G4int(Z);
85 if(Z > 92) Z = 92;
[819]86
[962]87 if(ekin <= fLowEnergy) {
[1340]88 cross = theCoulombFac[Z]*CoulombFactor(ekin, A);
89 } else if(Z == 1) {
90 if( A < 2) {
[1228]91 fHadron->GetHadronNucleonXscNS(dp, G4Proton::Proton());
[962]92 cross = fHadron->GetInelasticHadronNucleonXsc();
93 } else {
[1228]94 fHadron->GetHadronNucleonXscNS(dp, G4Proton::Proton());
[962]95 cross = fHadron->GetInelasticHadronNucleonXsc();
[1228]96 fHadron->GetHadronNucleonXscNS(dp, G4Neutron::Neutron());
[962]97 cross += fHadron->GetInelasticHadronNucleonXsc();
98 }
99 } else if(ekin > fGlauberEnergy) {
[1340]100 cross = theGlauberFac[Z]*fGlauber->GetInelasticGlauberGribov(dp, Z, A);
[819]101 } else {
[1340]102 cross = fNucleon->GetZandACrossSection(dp, Z, A);
[819]103 }
104
105 if(verboseLevel > 1)
106 G4cout << "G4BGGNucleonInelasticXS::GetCrossSection for "
107 << dp->GetDefinition()->GetParticleName()
108 << " Ekin(GeV)= " << dp->GetKineticEnergy()
109 << " in nucleus Z= " << Z << " A= " << A
110 << " XS(b)= " << cross/barn
111 << G4endl;
112
113 return cross;
114}
115
116//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
117
[962]118void G4BGGNucleonInelasticXS::BuildPhysicsTable(const G4ParticleDefinition& p)
[819]119{
[962]120 if(&p == G4Proton::Proton() || &p == G4Neutron::Neutron()) {
121 particle = &p;
122 Initialise();
123 } else {
124 G4cout << "### G4BGGNucleonInelasticXS WARNING: is not applicable to "
125 << p.GetParticleName()
126 << G4endl;
127 }
[819]128}
129
130//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
131
132void G4BGGNucleonInelasticXS::DumpPhysicsTable(const G4ParticleDefinition&)
133{
134 G4cout << "G4BGGNucleonInelasticXS:"<<G4endl;
135}
136
137//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
138
139void G4BGGNucleonInelasticXS::Initialise()
140{
[962]141 if(isInitialized) return;
142 isInitialized = true;
143
144 fNucleon = new G4NucleonNuclearCrossSection();
145 fGlauber = new G4GlauberGribovCrossSection();
146 fHadron = new G4HadronNucleonXsc();
147 fNucleon->BuildPhysicsTable(*particle);
148 fGlauber->BuildPhysicsTable(*particle);
149 if(particle == G4Proton::Proton()) isProton = true;
150
[819]151 G4ParticleDefinition* part = const_cast<G4ParticleDefinition*>(particle);
152 G4ThreeVector mom(0.0,0.0,1.0);
[962]153 G4DynamicParticle dp(part, mom, fGlauberEnergy);
[819]154
155 G4NistManager* nist = G4NistManager::Instance();
[1340]156 G4int A = G4lrint(nist->GetAtomicMassAmu(2));
[819]157
158 G4double csup, csdn;
159
160 if(verboseLevel > 0) G4cout << "### G4BGGNucleonInelasticXS::Initialise for "
161 << particle->GetParticleName() << G4endl;
162
163 for(G4int iz=2; iz<93; iz++) {
164
165 G4double Z = G4double(iz);
[1340]166 A = G4lrint(nist->GetAtomicMassAmu(iz));
[819]167
[1340]168 csup = fGlauber->GetInelasticGlauberGribov(&dp, iz, A);
169// csdn = fNucleon->GetIsoZACrossSection(&dp, Z, A);
170 csdn = fNucleon->GetZandACrossSection(&dp, iz, A);
[819]171
[962]172 theGlauberFac[iz] = csdn/csup;
[819]173 if(verboseLevel > 0) G4cout << "Z= " << Z << " A= " << A
[962]174 << " factor= " << theGlauberFac[iz] << G4endl;
[819]175 }
[962]176 dp.SetKineticEnergy(fLowEnergy);
[1228]177 fHadron->GetHadronNucleonXscNS(&dp, G4Proton::Proton());
[962]178 theCoulombFac[1] =
[1340]179 fHadron->GetInelasticHadronNucleonXsc()/CoulombFactor(fLowEnergy,1);
[962]180
181 for(G4int iz=2; iz<93; iz++) {
182
183 G4double Z = G4double(iz);
[1340]184 A = G4lrint(nist->GetAtomicMassAmu(iz));
[962]185
186 theCoulombFac[iz] =
[1340]187 fNucleon->GetZandACrossSection(&dp, iz, A)/CoulombFactor(fLowEnergy,A);
[962]188
189 if(verboseLevel > 0) G4cout << "Z= " << Z << " A= " << A
190 << " factor= " << theCoulombFac[iz] << G4endl;
191 }
[819]192}
193
194
[1340]195G4double G4BGGNucleonInelasticXS::CoulombFactor(G4double kinEnergy, G4int A)
[962]196{
197 G4double res= 0.0;
198 if(kinEnergy <= DBL_MIN) return res;
[1340]199 else if (A < 2) return kinEnergy*kinEnergy;
[962]200
201 G4double elog = std::log10(kinEnergy/GeV);
[1340]202 G4double aa = A;
[819]203
[962]204 // from G4ProtonInelasticCrossSection
205 if(isProton) {
[1340]206 G4double f1 = 8.0 - 8.0/aa - 0.008*aa;
207 G4double f2 = 2.34 - 5.4/aa - 0.0028*aa;
[962]208
209 res = 1.0/(1.0 + std::exp(-f1*(elog + f2)));
210
[1340]211 f1 = 5.6 - 0.016*aa;
212 f2 = 1.37 + 1.37/aa;
213 res *= ( 1.0 + (0.8 + 18./aa - 0.002*aa)/(1.0 + std::exp(f1*(elog + f2))));
[962]214 } else {
215
[1340]216 G4double p3 = 0.6 + 13./aa - 0.0005*aa;
217 G4double p4 = 7.2449 - 0.018242*aa;
218 G4double p5 = 1.36 + 1.8/aa + 0.0005*aa;
219 G4double p6 = 1. + 200./aa + 0.02*aa;
220 G4double p7 = 3.0 - (aa-70.)*(aa-200.)/11000.;
[962]221
222 res = (1.+p3/(1. + std::exp(p4*(elog+p5))))/(1.+std::exp(-p6*(elog+p7)));
223
224 }
225 return res;
226}
227
Note: See TracBrowser for help on using the repository browser.