Geant4  10.03.p01
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
G4ICRU73QOModel.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 // $Id: G4ICRU73QOModel.hh 96934 2016-05-18 09:10:41Z gcosmo $
27 //
28 // -------------------------------------------------------------------
29 //
30 // GEANT4 Class header file
31 //
32 //
33 // File name: G4ICRU73QOModel
34 //
35 // Author: Alexander Bagulya
36 //
37 // Creation date: 21.05.2010
38 //
39 // Modifications:
40 //
41 //
42 // Class Description:
43 //
44 // Quantum Harmonic Oscillator Model for energy loss using atomic shell
45 // structure of atoms taking into account Q^2 (main for projectile charge Q),
46 // Q^3 and Q^4 terms for computation of energy loss due to binary collisions.
47 // Can be applied on heavy negatively charged particles for the energy interval
48 // 10 keV - 10 MeV scaled to the proton mass.
49 //
50 // Used data and formula of
51 // 1. G4QAOLowEnergyLoss class, S.Chauvie, P.Nieminen, M.G.Pia. IEEE Trans.
52 // Nucl. Sci. 54 (2007) 578.
53 // 2. ShellStrength and ShellEnergy from ICRU'73 Report 2005,
54 // 3. Data for Ta (Z=73) from P.Sigmund, A.Shinner. Eur. Phys. J. D15 (2001)
55 // 165-172
56 //
57 // -------------------------------------------------------------------
58 //
59 
60 #ifndef G4ICRU73QOModel_h
61 #define G4ICRU73QOModel_h 1
62 
64 
65 #include "G4VEmModel.hh"
66 #include "G4AtomicShells.hh"
67 #include "G4DensityEffectData.hh"
68 
70 
72 {
73 
74 public:
75 
76  explicit G4ICRU73QOModel(const G4ParticleDefinition* p = 0,
77  const G4String& nam = "ICRU73QO");
78 
79  virtual ~G4ICRU73QOModel();
80 
81  virtual void Initialise(const G4ParticleDefinition*,
82  const G4DataVector&) override;
83 
85  const G4ParticleDefinition*,
86  G4double kineticEnergy,
87  G4double cutEnergy,
88  G4double maxEnergy) final;
89 
91  const G4ParticleDefinition*,
92  G4double kineticEnergy,
94  G4double cutEnergy,
95  G4double maxEnergy) override;
96 
98  const G4ParticleDefinition*,
99  G4double kineticEnergy,
100  G4double cutEnergy,
101  G4double maxEnergy) override;
102 
104  const G4ParticleDefinition*,
105  G4double kineticEnergy,
106  G4double) override;
107 
108  virtual void SampleSecondaries(std::vector<G4DynamicParticle*>*,
109  const G4MaterialCutsCouple*,
110  const G4DynamicParticle*,
111  G4double tmin,
112  G4double maxEnergy) override;
113 
114  // add correction to energy loss and compute non-ionizing energy loss
115  virtual void CorrectionsAlongStep(const G4MaterialCutsCouple*,
116  const G4DynamicParticle*,
117  G4double& eloss,
118  G4double& niel,
119  G4double length) override;
120 
121 protected:
122 
124  G4double kinEnergy) final;
125 
126 private:
127 
128  inline void SetParticle(const G4ParticleDefinition* p);
129  inline void SetLowestKinEnergy(G4double val);
130 
131  G4double DEDX(const G4Material* material, G4double kineticEnergy);
132 
133  G4double DEDXPerElement(G4int Z, G4double kineticEnergy);
134 
135  // hide assignment operator
136  G4ICRU73QOModel & operator=(const G4ICRU73QOModel &right) = delete;
137  G4ICRU73QOModel(const G4ICRU73QOModel&) = delete;
138 
139  const G4ParticleDefinition* particle;
140  G4ParticleDefinition* theElectron;
141  G4ParticleChangeForLoss* fParticleChange;
142  G4DensityEffectData* denEffData;
143 
144  G4double mass;
145  G4double charge;
146  G4double chargeSquare;
147  G4double massRate;
148  G4double ratio;
149  G4double lowestKinEnergy;
150 
151  G4bool isInitialised;
152 
153  // get number of shell, energy and oscillator strenghts for material
154  G4int GetNumberOfShells(G4int Z) const;
155 
156  G4double GetShellEnergy(G4int Z, G4int nbOfTheShell) const;
157  G4double GetOscillatorEnergy(G4int Z, G4int nbOfTheShell) const;
158  G4double GetShellStrength(G4int Z, G4int nbOfTheShell) const;
159 
160  // calculate stopping number for L's term
161  G4double GetL0(G4double normEnergy) const;
162  // terms in Z^2
163  G4double GetL1(G4double normEnergy) const;
164  // terms in Z^3
165  G4double GetL2(G4double normEnergy) const;
166  // terms in Z^4
167 
168 
169  // Z of element at now avaliable for the model
170  static const G4int NQOELEM = 26;
171  static const G4int NQODATA = 130;
172  static const G4int ZElementAvailable[NQOELEM];
173 
174  // number, energy and oscillator strenghts
175  // for an harmonic oscillator model of material
176  static const G4int startElemIndex[NQOELEM];
177  static const G4int nbofShellsForElement[NQOELEM];
178  static const G4double ShellEnergy[NQODATA];
179  static const G4double SubShellOccupation[NQODATA]; // Z * ShellStrength
180 
181  G4int indexZ[100];
182 
183  // variable for calculation of stopping number of L's term
184  static const G4double L0[67][2];
185  static const G4double L1[22][2];
186  static const G4double L2[14][2];
187 
188  G4int sizeL0;
189  G4int sizeL1;
190  G4int sizeL2;
191 
192  static const G4double factorBethe[99];
193 
194 };
195 
196 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
197 
198 inline void G4ICRU73QOModel::SetParticle(const G4ParticleDefinition* p)
199 {
200  particle = p;
201  mass = particle->GetPDGMass();
202  charge = particle->GetPDGCharge()/CLHEP::eplus;
203  chargeSquare = charge*charge;
204  massRate = mass/CLHEP::proton_mass_c2;
205  ratio = CLHEP::electron_mass_c2/mass;
206 }
207 
208 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
209 
210 inline G4int G4ICRU73QOModel::GetNumberOfShells(G4int Z) const
211 {
212  G4int nShell = 0;
213 
214  if(indexZ[Z] >= 0) { nShell = nbofShellsForElement[indexZ[Z]];
215  } else { nShell = G4AtomicShells::GetNumberOfShells(Z); }
216 
217  return nShell;
218 }
219 
220 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
221 
222 inline G4double
223 G4ICRU73QOModel::GetShellEnergy(G4int Z, G4int nbOfTheShell) const
224 {
225  G4double shellEnergy = 0.;
226 
227  G4int idx = indexZ[Z];
228 
229  if(idx >= 0) { shellEnergy = ShellEnergy[startElemIndex[idx] + nbOfTheShell]*CLHEP::eV;
230  } else { shellEnergy = GetOscillatorEnergy(Z, nbOfTheShell); }
231 
232  return shellEnergy;
233 }
234 
235 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
236 
237 inline G4double
238 G4ICRU73QOModel::GetShellStrength(G4int Z, G4int nbOfTheShell) const
239 {
240  G4double shellStrength = 0.;
241 
242  G4int idx = indexZ[Z];
243 
244  if(idx >= 0) { shellStrength = SubShellOccupation[startElemIndex[idx] + nbOfTheShell] / Z;
245  } else { shellStrength = G4double(G4AtomicShells::GetNumberOfElectrons(Z,nbOfTheShell))/Z; }
246 
247  return shellStrength;
248 }
249 
250 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
251 
252 inline void G4ICRU73QOModel::SetLowestKinEnergy(G4double val)
253 {
254  lowestKinEnergy = val;
255 }
256 
257 #endif
virtual G4double CrossSectionPerVolume(const G4Material *, const G4ParticleDefinition *, G4double kineticEnergy, G4double cutEnergy, G4double maxEnergy) override
virtual G4double ComputeDEDXPerVolume(const G4Material *, const G4ParticleDefinition *, G4double kineticEnergy, G4double) override
static constexpr double proton_mass_c2
virtual void SampleSecondaries(std::vector< G4DynamicParticle * > *, const G4MaterialCutsCouple *, const G4DynamicParticle *, G4double tmin, G4double maxEnergy) override
const char * p
Definition: xmltok.h:285
virtual void CorrectionsAlongStep(const G4MaterialCutsCouple *, const G4DynamicParticle *, G4double &eloss, G4double &niel, G4double length) override
int G4int
Definition: G4Types.hh:78
G4ICRU73QOModel(const G4ParticleDefinition *p=0, const G4String &nam="ICRU73QO")
static constexpr double electron_mass_c2
double A(double temperature)
virtual G4double ComputeCrossSectionPerElectron(const G4ParticleDefinition *, G4double kineticEnergy, G4double cutEnergy, G4double maxEnergy) final
bool G4bool
Definition: G4Types.hh:79
virtual G4double MaxSecondaryEnergy(const G4ParticleDefinition *, G4double kinEnergy) final
static constexpr double eplus
virtual ~G4ICRU73QOModel()
virtual void Initialise(const G4ParticleDefinition *, const G4DataVector &) override
static constexpr double eV
G4double GetPDGMass() const
static G4int GetNumberOfElectrons(G4int Z, G4int SubshellNb)
virtual G4double ComputeCrossSectionPerAtom(const G4ParticleDefinition *, G4double kineticEnergy, G4double Z, G4double A, G4double cutEnergy, G4double maxEnergy) override
double G4double
Definition: G4Types.hh:76
G4double GetPDGCharge() const
static G4int GetNumberOfShells(G4int Z)