Geant4  v4-10.4-release
 모두 클래스 네임스페이스들 파일들 함수 변수 타입정의 열거형 타입 열거형 멤버 Friends 매크로 그룹들 페이지들
G4WentzelOKandVIxSection.hh
이 파일의 문서화 페이지로 가기
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: G4WentzelOKandVIxSection.hh 109683 2018-05-08 10:36:32Z gcosmo $
27 //
28 // -------------------------------------------------------------------
29 //
30 //
31 // GEANT4 Class header file
32 //
33 //
34 // File name: G4WentzelOKandVIxSection
35 //
36 // Authors: V.Ivanchenko and O.Kadri
37 //
38 // Creation date: 21.05.2010
39 //
40 // Modifications:
41 //
42 //
43 // Class Description:
44 //
45 // Implementation of the computation of total and transport cross sections,
46 // sample scattering angle for the single scattering case.
47 // to be used by single and multiple scattering models. References:
48 // 1) G.Wentzel, Z. Phys. 40 (1927) 590.
49 // 2) J.M. Fernandez-Varea et al., NIM B73 (1993) 447.
50 //
51 // -------------------------------------------------------------------
52 //
53 
54 #ifndef G4WentzelOKandVIxSection_h
55 #define G4WentzelOKandVIxSection_h 1
56 
57 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
58 
59 #include "globals.hh"
60 #include "G4Material.hh"
61 #include "G4Element.hh"
62 #include "G4ElementVector.hh"
63 #include "G4NistManager.hh"
65 #include "G4ThreeVector.hh"
66 #include "G4Pow.hh"
67 #include "G4Threading.hh"
68 
71 
72 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
73 
75 {
76 
77 public:
78 
79  explicit G4WentzelOKandVIxSection(G4bool comb=true);
80 
81  virtual ~G4WentzelOKandVIxSection();
82 
83  void Initialise(const G4ParticleDefinition*, G4double CosThetaLim);
84 
86 
87  // return cos(ThetaMax) for msc and cos(thetaMin) for single scattering
88  // cut = DBL_MAX means no scattering off electrons
89  G4double SetupKinematic(G4double kinEnergy, const G4Material* mat);
91 
93 
95  G4double CosThetaMax,
96  G4double elecRatio);
97 
99 
100  inline G4double ComputeNuclearCrossSection(G4double CosThetaMin,
101  G4double CosThetaMax);
102 
103  inline G4double ComputeElectronCrossSection(G4double CosThetaMin,
104  G4double CosThetaMax);
105 
106  inline void SetTargetMass(G4double value);
107 
108  inline G4double GetMomentumSquare() const;
109 
110  inline G4double GetCosThetaNuc() const;
111 
112  inline G4double GetCosThetaElec() const;
113 
114 protected:
115 
117 
118  void InitialiseA();
119 
121 
126 
129 
131 
133 
135 
136  // integer parameters
139 
141 
143 
144  // single scattering parameters
150 
151  // projectile
153 
166 
167  // target
179 
181  static G4double ScreenRSquare[100];
182  static G4double FormFactor[100];
183 
184 #ifdef G4MULTITHREADED
185  static G4Mutex WentzelOKandVIxSectionMutex;
186 #endif
187 
188 private:
189  // hide assignment operator
190  G4WentzelOKandVIxSection & operator=
191  (const G4WentzelOKandVIxSection &right) = delete;
193 };
194 
195 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
196 
198 {
199  targetMass = value;
200  factD = std::sqrt(mom2)/value;
201 }
202 
203 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
204 
206 {
207  return mom2;
208 }
209 
210 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
211 
213 {
214  return cosTetMaxNuc;
215 }
216 
217 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
218 
220 {
221  return cosTetMaxElec;
222 }
223 
224 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
225 
226 inline G4double
228  G4double cosTMax)
229 {
230  return targetZ*kinFactor*fMottFactor*(cosTMin - cosTMax)/
231  ((1.0 - cosTMin + screenZ)*(1.0 - cosTMax + screenZ));
232 }
233 
234 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
235 
236 inline G4double
238  G4double cosTMax)
239 {
240  G4double cost1 = std::max(cosTMin,cosTetMaxElec);
241  G4double cost2 = std::max(cosTMax,cosTetMaxElec);
242  return (cost1 <= cost2) ? 0.0 : kinFactor*fMottFactor*(cost1 - cost2)/
243  ((1.0 - cost1 + screenZ)*(1.0 - cost2 + screenZ));
244 }
245 
247 {
248  return 3.0*(std::sin(x) - x*std::cos(x))/(x*x*x);
249 }
250 
251 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
252 
253 #endif
254 
Float_t x
Definition: compare.C:6
G4double ComputeSecondTransportMoment(G4double CosThetaMax)
const G4ParticleDefinition * thePositron
T max(const T t1, const T t2)
brief Return the largest of the two arguments
G4ThreeVector & SampleSingleScattering(G4double CosThetaMin, G4double CosThetaMax, G4double elecRatio)
const G4ParticleDefinition * theProton
Float_t Z
double G4double
Definition: G4Types.hh:76
bool G4bool
Definition: G4Types.hh:79
const G4ParticleDefinition * particle
void ComputeMaxElectronScattering(G4double cut)
const XML_Char int const XML_Char * value
Definition: expat.h:331
G4NuclearFormfactorType fNucFormfactor
G4double ComputeNuclearCrossSection(G4double CosThetaMin, G4double CosThetaMax)
Float_t mat
void SetupParticle(const G4ParticleDefinition *)
G4WentzelOKandVIxSection(G4bool comb=true)
G4double SetupTarget(G4int Z, G4double cut)
void Initialise(const G4ParticleDefinition *, G4double CosThetaLim)
int G4int
Definition: G4Types.hh:78
const G4ParticleDefinition * theElectron
G4NuclearFormfactorType
static G4double ScreenRSquareElec[100]
Definition: G4Pow.hh:56
G4ScreeningMottCrossSection * fMottXSection
G4double ComputeTransportCrossSectionPerAtom(G4double CosThetaMax)
G4double ComputeElectronCrossSection(G4double CosThetaMin, G4double CosThetaMax)
G4double SetupKinematic(G4double kinEnergy, const G4Material *mat)
std::mutex G4Mutex
Definition: G4Threading.hh:84