Geant4  10.02.p01
G4HadronCrossSections.hh
Go to the documentation of this file.
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 //
27 // GEANT4 Hadron physics class -- header file
28 // F.W. Jones, TRIUMF, 03-DEC-96
29 //
30 // This class encapsulates cross section data and interpolations
31 // from the Geant3/Gheisha routine GHESIG.
32 // For further comments see G4HadronCrossSections.cc.
33 //
34 // Note: this is implemented as a SINGLETON class
35 //
36 // 27-MAR-97 FWJ: first version for Alpha release
37 // 14-APR-97 FWJ: class name changed from G4LCrossSectionData
38 // to G4HadronicCrossSections
39 // 14-APR-98 FWJ: rewritten as class G4HadronCrossSections
40 // and adapted to G4CrossSectionDataSet/DataStore class design.
41 // 26-JUN-98 FWJ: added elastic/inelastic caching to improve performance.
42 // 06-NOV-98 FWJ: added first-order correction for low-energy
43 // inelastic cross sections
44 //
45 
46 
47 #ifndef G4HadronCrossSections_h
48 #define G4HadronCrossSections_h 1
49 
50 #include "globals.hh"
51 #include "G4Element.hh"
52 #include "G4VProcess.hh"
53 #include "G4DynamicParticle.hh"
54 #include "G4HadTmpUtil.hh"
55 
56 enum { TSIZE=41, NPARTS=35, NELAB=17, NCNLW=15, NFISS=21 };
57 
58 class G4Pow;
59 
61 {
62  public:
63 
65 
67 
69 
70  G4bool IsApplicable(const G4DynamicParticle* aParticle);
71 
73  G4int /*ZZ*/, G4int /*AA*/);
74 
76  G4int /*ZZ*/, G4int /*AA*/);
77 
79 
81  G4int /*AA*/);
82 
83  /*
84  static void SetCorrectInelasticNearZero(G4bool value)
85  {correctInelasticNearZero = value;}
86 
87  static G4bool GetCorrectInelasticNearZero()
88  {return correctInelasticNearZero;}
89  */
90 
91  void SetVerboseLevel(G4int value) {verboseLevel = value;}
92 
94 
95  private:
96 
98 
100  G4int /*ZZ*/, G4int /*AA*/);
101 
103 
105 
109 // G4Element* prevElement;
114 
116 
118 
119  // The following arrays are declared static to allow the use of initializers.
120  // They are initialized in G4HadronCrossSections.cc, thus providing some
121  // data hiding.
122 
123  static const G4float plab[TSIZE];
124  static const G4float csel[NPARTS][TSIZE];
125  static const G4float csin[NPARTS][TSIZE];
126 
127  static const G4float cspiel[3][TSIZE];
128  static const G4float cspiin[3][TSIZE];
129 
130  static const G4float cspnel[3][TSIZE];
131  static const G4float cspnin[3][TSIZE];
132 
133  static const G4float elab[NELAB];
135 
136  static const G4float cscap[100];
137 
138  static const G4float ekfiss[NFISS], csfiss[4][NFISS];
139 
140  static const G4float alpha[NPARTS], alphac[TSIZE];
141 
142  static const G4float partel[35], partin[35];
143  static const G4int icorr[35], intrc[35];
144 
145  static const G4float csa[4];
146  static const G4int ipart2[7];
147 };
148 #endif
149 
G4int GetParticleCode(const G4DynamicParticle *)
G4ParticleDefinition * prevParticleDefinition
static const G4float cspiin[3][TSIZE]
static const G4float cnlwat[NCNLW]
static const G4float partel[35]
G4double GetElasticCrossSection(const G4DynamicParticle *, G4int, G4int)
static const G4float partin[35]
static const G4float csin[NPARTS][TSIZE]
static const G4float csel[NPARTS][TSIZE]
static const G4float cspnel[3][TSIZE]
Definition: G4Pow.hh:56
static const G4int intrc[35]
static const G4float cspiel[3][TSIZE]
void CalcScatteringCrossSections(const G4DynamicParticle *, G4int, G4int)
static const G4float cnlwel[NCNLW][NELAB]
float G4float
Definition: G4Types.hh:77
G4double GetInelasticCrossSection(const G4DynamicParticle *, G4int, G4int)
static const G4float csfiss[4][NFISS]
#define G4ThreadLocal
Definition: tls.hh:89
void SetVerboseLevel(G4int value)
static const G4float plab[TSIZE]
int G4int
Definition: G4Types.hh:78
G4double GetCaptureCrossSection(const G4DynamicParticle *, G4int)
G4double GetFissionCrossSection(const G4DynamicParticle *, G4int, G4int)
bool G4bool
Definition: G4Types.hh:79
static const G4float alpha[NPARTS]
static const G4float alphac[TSIZE]
static G4ThreadLocal G4HadronCrossSections * theInstance
static const G4int icorr[35]
static const G4float cscap[100]
static G4HadronCrossSections * Instance()
static const G4float elab[NELAB]
static const G4float cnlwin[NCNLW][NELAB]
static const G4float csa[4]
static const G4float ekfiss[NFISS]
G4bool IsApplicable(const G4DynamicParticle *aParticle)
static const G4int ipart2[7]
double G4double
Definition: G4Types.hh:76
static const G4float cspnin[3][TSIZE]