Geant4
9.6.p02
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
geant4_9_6_p02
source
processes
hadronic
cross_sections
include
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 tag $Name: not supported by cvs2svn $
28
//
29
//
30
// GEANT4 Hadron physics class -- header file
31
// F.W. Jones, TRIUMF, 03-DEC-96
32
//
33
// This class encapsulates cross section data and interpolations
34
// from the Geant3/Gheisha routine GHESIG.
35
// For further comments see G4HadronCrossSections.cc.
36
//
37
// Note: this is implemented as a SINGLETON class
38
//
39
// 27-MAR-97 FWJ: first version for Alpha release
40
// 14-APR-97 FWJ: class name changed from G4LCrossSectionData
41
// to G4HadronicCrossSections
42
// 14-APR-98 FWJ: rewritten as class G4HadronCrossSections
43
// and adapted to G4CrossSectionDataSet/DataStore class design.
44
// 26-JUN-98 FWJ: added elastic/inelastic caching to improve performance.
45
// 06-NOV-98 FWJ: added first-order correction for low-energy
46
// inelastic cross sections
47
//
48
49
50
#ifndef G4HadronCrossSections_h
51
#define G4HadronCrossSections_h 1
52
53
#include "
globals.hh
"
54
#include "
G4Element.hh
"
55
#include "
G4VProcess.hh
"
56
#include "
G4DynamicParticle.hh
"
57
#include "
G4HadTmpUtil.hh
"
58
59
enum
{
TSIZE
=41,
NPARTS
=35,
NELAB
=17,
NCNLW
=15,
NFISS
=21 };
60
61
class
G4Pow
;
62
63
class
G4HadronCrossSections
64
{
65
public
:
66
67
G4HadronCrossSections
();
68
69
~G4HadronCrossSections
();
70
71
static
G4HadronCrossSections
*
Instance
();
72
73
G4bool
IsApplicable
(
const
G4DynamicParticle
* aParticle);
74
75
G4double
GetElasticCrossSection
(
const
G4DynamicParticle
*,
76
G4int
/*ZZ*/
,
G4int
/*AA*/
);
77
78
G4double
GetInelasticCrossSection
(
const
G4DynamicParticle
*,
79
G4int
/*ZZ*/
,
G4int
/*AA*/
);
80
81
G4double
GetCaptureCrossSection
(
const
G4DynamicParticle
*,
G4int
/*Z*/
);
82
83
G4double
GetFissionCrossSection
(
const
G4DynamicParticle
*,
G4int
/*ZZ*/
,
84
G4int
/*AA*/
);
85
86
static
void
SetCorrectInelasticNearZero
(
G4bool
value
)
87
{correctInelasticNearZero =
value
;}
88
89
static
G4bool
GetCorrectInelasticNearZero
()
90
{
return
correctInelasticNearZero;}
91
92
void
SetVerboseLevel
(
G4int
value
) {verboseLevel =
value
;}
93
94
G4int
GetVerboseLevel
() {
return
verboseLevel;}
95
96
private
:
97
98
G4int
GetParticleCode(
const
G4DynamicParticle
*);
99
100
void
CalcScatteringCrossSections(
const
G4DynamicParticle
*,
101
G4int
/*ZZ*/
,
G4int
/*AA*/
);
102
103
static
G4HadronCrossSections
* theInstance;
104
105
G4Pow
* g4pow;
106
107
G4double
sigelastic;
108
G4double
siginelastic;
109
G4ParticleDefinition
* prevParticleDefinition;
110
G4Element
* prevElement;
111
G4int
prevZZ;
112
G4int
prevAA;
113
G4double
prevKineticEnergy;
114
G4double
lastEkx, lastEkxPower;
115
116
static
G4bool
correctInelasticNearZero;
117
118
G4int
verboseLevel;
119
120
// The following arrays are declared static to allow the use of initializers.
121
// They are initialized in G4HadronCrossSections.cc, thus providing some
122
// data hiding.
123
124
static
G4float
plab[
TSIZE
];
125
static
G4float
csel[
NPARTS
][
TSIZE
];
126
static
G4float
csin[
NPARTS
][
TSIZE
];
127
128
static
G4float
cspiel[3][
TSIZE
];
129
static
G4float
cspiin[3][
TSIZE
];
130
131
static
G4float
cspnel[3][
TSIZE
];
132
static
G4float
cspnin[3][
TSIZE
];
133
134
static
G4float
elab[
NELAB
];
135
static
G4float
cnlwat[
NCNLW
], cnlwel[
NCNLW
][
NELAB
], cnlwin[
NCNLW
][
NELAB
];
136
137
static
G4float
cscap[100];
138
139
static
G4float
ekfiss[
NFISS
], csfiss[4][
NFISS
];
140
141
static
G4float
alpha[
NPARTS
], alphac[
TSIZE
];
142
143
static
G4float
partel[35], partin[35];
144
static
G4int
icorr[35], intrc[35];
145
146
static
G4float
csa[4];
147
static
G4int
ipart2[7];
148
};
149
#endif
150
Generated on Sat May 25 2013 14:33:40 for Geant4 by
1.8.4