Geant4 10.7.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4LindhardSorensenIonModel.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// -------------------------------------------------------------------
28//
29// GEANT4 Class header file
30//
31//
32// File name: G4LindhardSorensenIonModel
33//
34// Author: Alexander Bagulya & Vladimir Ivanchenko
35//
36// Creation date: 16.04.2018
37//
38//
39// Class Description:
40//
41// Implementation of ion ionisation energy loss and delta-electron
42// production by heavy charged particles according to
43// J. Lindhard & A.H. Sorensen, Phys. Rev. A 53 (1996) 2443-2455
44
45// -------------------------------------------------------------------
46//
47
48#ifndef G4LindhardSorensenIonModel_h
49#define G4LindhardSorensenIonModel_h 1
50
52
53#include "G4VEmModel.hh"
54#include "G4NistManager.hh"
55#include "G4Threading.hh"
56#include <vector>
57
58class G4EmCorrections;
61class G4BraggIonModel;
62
64{
65public:
66
67 explicit G4LindhardSorensenIonModel(const G4ParticleDefinition* p = nullptr,
68 const G4String& nam = "LindhardSorensen");
69
71
72 void Initialise(const G4ParticleDefinition*, const G4DataVector&) override;
73
75 const G4MaterialCutsCouple* couple) override;
76
79 G4double kineticEnergy,
80 G4double cutEnergy,
81 G4double maxEnergy);
82
85 G4double kineticEnergy,
87 G4double cutEnergy,
88 G4double maxEnergy) override;
89
92 G4double kineticEnergy,
93 G4double cutEnergy,
94 G4double maxEnergy) override;
95
98 G4double kineticEnergy,
99 G4double cutEnergy) override;
100
102 const G4Material* mat,
103 G4double kineticEnergy) override;
104
106 const G4Material* mat,
107 G4double kineticEnergy) override;
108
110 const G4DynamicParticle* dp,
111 G4double& eloss, G4double&,
112 G4double length) override;
113
114 void SampleSecondaries(std::vector<G4DynamicParticle*>*,
116 const G4DynamicParticle*,
117 G4double tmin,
118 G4double maxEnergy) override;
119
120 // hide assignment operator
122 (const G4LindhardSorensenIonModel &right) = delete;
124
125protected:
126
128 G4double kinEnergy) override;
129
130 inline G4double GetChargeSquareRatio() const;
131
132 inline void SetChargeSquareRatio(G4double val);
133
134private:
135
136 void SetupParameters();
137
138 void InitialiseLS();
139
140 G4double ComputeDEDXPerVolumeLS(const G4Material*,
142 G4double kinEnergy, G4double cutEnergy);
143
144 inline void SetParticle(const G4ParticleDefinition* p);
145
146 static const G4int MAXZION = 93;
147
148 static G4LindhardSorensenData* lsdata;
149 static std::vector<G4float>* fact[MAXZION];
150
151 const G4ParticleDefinition* particle;
152 G4ParticleDefinition* theElectron;
153 G4EmCorrections* corr;
154 G4ParticleChangeForLoss* fParticleChange;
155 G4NistManager* nist;
156 G4BraggIonModel* fBraggIonModel;
157
158 G4int Zin;
159 G4double mass;
160 G4double tlimit;
161 G4double spin;
162 G4double magMoment2;
163 G4double chargeSquare;
164 G4double charge;
165 G4double ratio;
166 G4double formfact;
167 G4double twoln10;
168
169#ifdef G4MULTITHREADED
170 static G4Mutex theLSMutex;
171#endif
172
173};
174
175//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
176
177inline void
178G4LindhardSorensenIonModel::SetParticle(const G4ParticleDefinition* p)
179{
180 if(particle != p) {
181 particle = p;
182 SetupParameters();
183 }
184}
185
186//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
187
189{
190 return chargeSquare;
191}
192
193//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
194
196{
197 chargeSquare = val;
198}
199
200//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
201
202#endif
double A(double temperature)
std::mutex G4Mutex
Definition: G4Threading.hh:81
double G4double
Definition: G4Types.hh:83
int G4int
Definition: G4Types.hh:85
G4double MaxSecondaryEnergy(const G4ParticleDefinition *, G4double kinEnergy) override
void CorrectionsAlongStep(const G4MaterialCutsCouple *couple, const G4DynamicParticle *dp, G4double &eloss, G4double &, G4double length) override
G4double ComputeCrossSectionPerAtom(const G4ParticleDefinition *, G4double kineticEnergy, G4double Z, G4double A, G4double cutEnergy, G4double maxEnergy) override
G4double MinEnergyCut(const G4ParticleDefinition *, const G4MaterialCutsCouple *couple) override
G4double ComputeCrossSectionPerElectron(const G4ParticleDefinition *, G4double kineticEnergy, G4double cutEnergy, G4double maxEnergy)
void Initialise(const G4ParticleDefinition *, const G4DataVector &) override
G4double CrossSectionPerVolume(const G4Material *, const G4ParticleDefinition *, G4double kineticEnergy, G4double cutEnergy, G4double maxEnergy) override
G4double ComputeDEDXPerVolume(const G4Material *, const G4ParticleDefinition *, G4double kineticEnergy, G4double cutEnergy) override
G4double GetParticleCharge(const G4ParticleDefinition *p, const G4Material *mat, G4double kineticEnergy) override
G4LindhardSorensenIonModel(const G4LindhardSorensenIonModel &)=delete
void SampleSecondaries(std::vector< G4DynamicParticle * > *, const G4MaterialCutsCouple *, const G4DynamicParticle *, G4double tmin, G4double maxEnergy) override