source: trunk/source/processes/hadronic/cross_sections/include/G4BGGNucleonInelasticXS.hh@ 1347

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

update ti head

File size: 4.3 KB
Line 
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//
26// $Id: G4BGGNucleonInelasticXS.hh,v 1.7 2010/10/12 06:02:28 dennis Exp $
27// GEANT4 tag $Name: hadr-cross-V09-03-12 $
28//
29// -------------------------------------------------------------------
30//
31// GEANT4 Class header file
32//
33//
34// File name: G4BGGNucleonInelasticXS
35//
36// Author: Vladimir Ivanchenko
37//
38// Creation date: 13.03.2007
39// Modifications:
40//
41//
42// Class Description:
43//
44// Wrapper of proton and neutron inelastic cross-sections using Barashenkov
45// parametersation below 100 GeV and Glauber-Gribov model above
46//
47// -------------------------------------------------------------------
48//
49
50#ifndef G4BGGNucleonInelasticXS_h
51#define G4BGGNucleonInelasticXS_h
52
53#include "globals.hh"
54#include "G4VCrossSectionDataSet.hh"
55#include "G4ParticleDefinition.hh"
56#include "G4Element.hh"
57#include "G4HadTmpUtil.hh"
58
59
60class G4GlauberGribovCrossSection;
61class G4NucleonNuclearCrossSection;
62class G4HadronNucleonXsc;
63
64class G4BGGNucleonInelasticXS : public G4VCrossSectionDataSet
65{
66public:
67
68 G4BGGNucleonInelasticXS (const G4ParticleDefinition*);
69
70 virtual ~G4BGGNucleonInelasticXS();
71
72 virtual
73 G4bool IsApplicable(const G4DynamicParticle*, const G4Element*);
74
75 virtual
76 G4bool IsIsoApplicable(const G4DynamicParticle*, G4int Z, G4int A);
77
78 virtual
79 G4double GetCrossSection(const G4DynamicParticle*,
80 const G4Element*, G4double aTemperature = 0.);
81
82 virtual
83 G4double GetZandACrossSection(const G4DynamicParticle*, G4int /*Z*/,
84 G4int /*A*/, G4double aTemperature = 0.);
85
86 virtual
87 void BuildPhysicsTable(const G4ParticleDefinition&);
88
89 virtual
90 void DumpPhysicsTable(const G4ParticleDefinition&);
91
92private:
93
94 void Initialise();
95
96 G4double CoulombFactor(G4double kinEnergy, G4int A);
97
98 G4double fGlauberEnergy;
99 G4double fLowEnergy;
100 G4double theGlauberFac[93];
101 G4double theCoulombFac[93];
102
103 const G4ParticleDefinition* particle;
104 G4GlauberGribovCrossSection* fGlauber;
105 G4NucleonNuclearCrossSection* fNucleon;
106 G4HadronNucleonXsc* fHadron;
107 G4bool isProton;
108 G4bool isInitialized;
109};
110
111
112inline
113G4bool G4BGGNucleonInelasticXS::IsApplicable(const G4DynamicParticle*,
114 const G4Element*)
115{
116 return true;
117}
118
119
120inline
121G4bool G4BGGNucleonInelasticXS::IsIsoApplicable(const G4DynamicParticle*,
122 G4int /*Z*/, G4int/* A*/)
123{
124 return false;
125}
126
127
128inline
129G4double G4BGGNucleonInelasticXS::GetCrossSection(const G4DynamicParticle* dp,
130 const G4Element* elm,
131 G4double temp)
132{
133 G4int Z = G4lrint(elm->GetZ());
134 G4int N = G4lrint(elm->GetN());
135 return GetZandACrossSection(dp, Z, N, temp);
136}
137
138
139#endif
Note: See TracBrowser for help on using the repository browser.