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 | #ifndef G4PiNuclearCrossSection_h |
---|
27 | #define G4PiNuclearCrossSection_h |
---|
28 | |
---|
29 | #include "G4VCrossSectionDataSet.hh" |
---|
30 | |
---|
31 | #include "globals.hh" |
---|
32 | #include "G4PionMinus.hh" |
---|
33 | #include "G4PionPlus.hh" |
---|
34 | #include "G4PiData.hh" |
---|
35 | #include "G4HadTmpUtil.hh" |
---|
36 | |
---|
37 | class G4PiNuclearCrossSection : public G4VCrossSectionDataSet |
---|
38 | { |
---|
39 | public: |
---|
40 | |
---|
41 | G4PiNuclearCrossSection(); |
---|
42 | virtual ~G4PiNuclearCrossSection(); |
---|
43 | |
---|
44 | G4bool IsApplicable(const G4DynamicParticle* aParticle, const G4Element* anElement) |
---|
45 | { |
---|
46 | G4bool result = false; |
---|
47 | if(aParticle->GetDefinition() == G4PionMinus::PionMinus()) result=true; |
---|
48 | if(aParticle->GetDefinition() == G4PionPlus::PionPlus()) result=true; |
---|
49 | if(G4lrint(anElement->GetZ()) == 1) result = false; |
---|
50 | if(aParticle->GetKineticEnergy() > 99.9*TeV) result=false; |
---|
51 | return result; |
---|
52 | } |
---|
53 | |
---|
54 | G4bool IsZAApplicable(const G4DynamicParticle* particle, |
---|
55 | G4double ZZ, G4double /*AA*/) |
---|
56 | { |
---|
57 | G4bool result = false; |
---|
58 | if(particle->GetDefinition() == G4PionMinus::PionMinus()) result=true; |
---|
59 | if(particle->GetDefinition() == G4PionPlus::PionPlus()) result=true; |
---|
60 | if(G4lrint(ZZ) == 1) result = false; |
---|
61 | if(particle->GetKineticEnergy() > 99.9*TeV) result=false; |
---|
62 | return result; |
---|
63 | } |
---|
64 | |
---|
65 | G4double GetCrossSection(const G4DynamicParticle* particle, |
---|
66 | const G4Element* element, |
---|
67 | G4double temperature) |
---|
68 | { |
---|
69 | return GetIsoZACrossSection(particle, element->GetZ(), |
---|
70 | element->GetN(), temperature); |
---|
71 | } |
---|
72 | |
---|
73 | G4double GetIsoZACrossSection(const G4DynamicParticle* aParticle, |
---|
74 | G4double ZZ, G4double AA, |
---|
75 | G4double /*aTemperature*/); |
---|
76 | |
---|
77 | G4double GetTotalXsc() { return fTotalXsc; }; |
---|
78 | G4double GetElasticXsc(){ return fElasticXsc; }; |
---|
79 | |
---|
80 | |
---|
81 | void BuildPhysicsTable(const G4ParticleDefinition&) {} |
---|
82 | void DumpPhysicsTable(const G4ParticleDefinition&) {} |
---|
83 | |
---|
84 | private: |
---|
85 | G4double Interpolate(G4int Z1, G4int Z2, G4int Z, G4double x1, G4double x2); |
---|
86 | |
---|
87 | // add Hydrogen from PDG group. |
---|
88 | |
---|
89 | static const G4double e1[38]; |
---|
90 | static const G4double he_t[38]; |
---|
91 | static const G4double he_in[38]; |
---|
92 | static const G4double be_m_t[38]; |
---|
93 | static const G4double be_m_in[38]; |
---|
94 | static const G4double be_p_t[24]; |
---|
95 | static const G4double be_p_in[24]; |
---|
96 | static const G4double e2[39]; |
---|
97 | static const G4double c_m_t[39]; |
---|
98 | static const G4double c_m_in[39]; |
---|
99 | static const G4double c_p_t[24]; |
---|
100 | static const G4double c_p_in[24]; |
---|
101 | static const G4double n_m_t[39]; |
---|
102 | static const G4double n_m_in[39]; |
---|
103 | static const G4double n_p_t[27]; |
---|
104 | static const G4double n_p_in[27]; |
---|
105 | static const G4double e3[31]; |
---|
106 | static const G4double o_m_t[31]; |
---|
107 | static const G4double o_m_in[31]; |
---|
108 | static const G4double o_p_t[20]; |
---|
109 | static const G4double o_p_in[20]; |
---|
110 | static const G4double na_m_t[31]; |
---|
111 | static const G4double na_m_in[31]; |
---|
112 | static const G4double na_p_t[22]; |
---|
113 | static const G4double na_p_in[22]; |
---|
114 | static const G4double e3_1[31]; |
---|
115 | static const G4double al_m_t[31]; |
---|
116 | static const G4double al_m_in[31]; |
---|
117 | static const G4double al_p_t[21]; |
---|
118 | static const G4double al_p_in[21]; |
---|
119 | static const G4double ca_m_t[31]; |
---|
120 | static const G4double ca_m_in[31]; |
---|
121 | static const G4double ca_p_t[23]; |
---|
122 | static const G4double ca_p_in[23]; |
---|
123 | |
---|
124 | static const G4double e4[32]; |
---|
125 | static const G4double fe_m_t[32]; |
---|
126 | static const G4double fe_m_in[32]; |
---|
127 | static const G4double fe_p_t[25]; |
---|
128 | static const G4double fe_p_in[25]; |
---|
129 | static const G4double cu_m_t[32]; |
---|
130 | static const G4double cu_m_in[32]; |
---|
131 | static const G4double cu_p_t[25]; |
---|
132 | static const G4double cu_p_in[25]; |
---|
133 | static const G4double e5[34]; |
---|
134 | static const G4double mo_m_t[34]; |
---|
135 | static const G4double mo_m_in[34]; |
---|
136 | static const G4double mo_p_t[27]; |
---|
137 | static const G4double mo_p_in[27]; |
---|
138 | static const G4double cd_m_t[34]; |
---|
139 | static const G4double cd_m_in[34]; |
---|
140 | static const G4double cd_p_t[28]; |
---|
141 | static const G4double cd_p_in[28]; |
---|
142 | static const G4double e6[35]; |
---|
143 | static const G4double sn_m_t[35]; |
---|
144 | static const G4double sn_m_in[35]; |
---|
145 | static const G4double sn_p_t[29]; |
---|
146 | static const G4double sn_p_in[29]; |
---|
147 | static const G4double w_m_t[35]; |
---|
148 | static const G4double w_m_in[35]; |
---|
149 | static const G4double w_p_t[30]; |
---|
150 | static const G4double w_p_in[30]; |
---|
151 | static const G4double e7[35]; |
---|
152 | static const G4double pb_m_t[35]; |
---|
153 | static const G4double pb_m_in[35]; |
---|
154 | static const G4double pb_p_t[30]; |
---|
155 | static const G4double pb_p_in[30]; |
---|
156 | static const G4double u_m_t[35]; |
---|
157 | static const G4double u_m_in[35]; |
---|
158 | static const G4double u_p_t[30]; |
---|
159 | static const G4double u_p_in[30]; |
---|
160 | |
---|
161 | std::vector<G4int> theZ; |
---|
162 | std::vector<G4PiData *> thePipData; |
---|
163 | std::vector<G4PiData *> thePimData; |
---|
164 | |
---|
165 | // cross sections |
---|
166 | |
---|
167 | G4double fTotalXsc; |
---|
168 | G4double fElasticXsc; |
---|
169 | |
---|
170 | |
---|
171 | }; |
---|
172 | |
---|
173 | #endif |
---|