Geant4 11.2.2
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4DNARuddIonisationExtendedModel.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// Created by Z. Francis, S. Incerti 2010
27//
28// Modified for inverse rudd function sampling 26.10.2010
29// Rewitten by V.Ivanchenko 21.05.2023
30//
31
32#ifndef G4DNARuddIonisationExtendedModel_h
33#define G4DNARuddIonisationExtendedModel_h 1
34
35#include "G4VEmModel.hh"
38
39#include "G4EmCorrections.hh"
42#include "G4Electron.hh"
43#include "G4Proton.hh"
45
48#include "G4NistManager.hh"
49#include <vector>
50
52{
53public:
54
56 const G4String& nam = "DNARuddIonisationExtendedModel");
57
59
60 void Initialise(const G4ParticleDefinition*, const G4DataVector&) override;
61
63 const G4ParticleDefinition* p,
64 G4double ekin,
65 G4double emin,
66 G4double emax) override;
67
68 void SampleSecondaries(std::vector<G4DynamicParticle*>*,
70 const G4DynamicParticle*,
71 G4double tmin,
72 G4double maxEnergy) override;
73
74 void SelectStationary(G4bool val) { statCode = val; };
75
76 // method for unit tests
78 G4double deltae, G4int shell);
79
81 (const G4DNARuddIonisationExtendedModel &right) = delete;
83
84private:
85
86 void SetParticle(const G4ParticleDefinition*);
87
88 G4int SelectShell(G4double energy);
89
90 G4double SampleElectronEnergy(G4double kine, G4double bindingEnergy, G4int shell);
91
92 G4double ProbabilityFunction(G4double kine, G4double deltae,
93 G4double bindingEnergy, G4int shell);
94
95 G4double S_1s(G4double t,
96 G4double energyTransferred,
97 G4double slaterEffectiveChg,
98 G4double shellNumber);
99
100 G4double S_2s(G4double t,
101 G4double energyTransferred,
102 G4double slaterEffectiveChg,
103 G4double shellNumber);
104
105
106 G4double S_2p(G4double t,
107 G4double energyTransferred,
108 G4double slaterEffectiveChg,
109 G4double shellNumber);
110
111 G4double Rh(G4double t,
112 G4double energyTransferred,
113 G4double slaterEffectiveChg,
114 G4double shellNumber);
115
116 G4double CorrectionFactor(G4double kine, G4int shell);
117
118protected:
119
121
122private:
123
124 // idx = 0 - hydrogen
125 // idx = 1 - proton
126 // idx = 2%26 - ions idx=Z
127 // idx = -1 - alpha+
128 // idx = -1 - helium
129 static const G4int RUDDZMAX = 27;
130 static G4DNACrossSectionDataSet* xsdata[RUDDZMAX];
131 static G4DNACrossSectionDataSet* xsalphaplus;
132 static G4DNACrossSectionDataSet* xshelium;
133
134 // Water density table
135 static const std::vector<G4double>* fpWaterDensity;
136
137 G4DNACrossSectionDataSet* xscurrent{nullptr};
138 const G4ParticleDefinition* fParticle{nullptr};
139 G4EmCorrections* fEmCorrections;
140 G4Pow* fGpow;
141
142 //deexcitation manager to produce fluo photons and e-
143 G4VAtomDeexcitation* fAtomDeexcitation{nullptr};
144
145 // tracking cut and low-energy limit of proton x-section table
146 G4double fLowestEnergy;
147 // scaled low-energy limit of ion x-section table
148 G4double fLimitEnergy;
149
150 G4double fMass{0.0};
151 G4double fAmass{0.0};
152 G4double fMassRate{1.0};
153 G4double fElow{0.0};
154
155 G4double slaterEffectiveCharge[3] = {0.0};
156 G4double sCoefficient[3] = {0.0};
157 G4double fTemp[5] = {0.0};
158
159 G4int idx{-1};
160 G4int verbose{0};
161
162 G4bool isIon{false};
163 G4bool isFirst{false};
164 G4bool isHelium{false};
165 G4bool statCode{false};
166 G4bool useDNAWaterStructure{true};
167
168 // energy levels of water molecule
169 G4DNAWaterIonisationStructure waterStructure;
170};
171
172//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
173
174#endif
double G4double
Definition G4Types.hh:83
bool G4bool
Definition G4Types.hh:86
int G4int
Definition G4Types.hh:85
G4DNARuddIonisationExtendedModel(const G4DNARuddIonisationExtendedModel &)=delete
G4double CrossSectionPerVolume(const G4Material *material, const G4ParticleDefinition *p, G4double ekin, G4double emin, G4double emax) override
void SampleSecondaries(std::vector< G4DynamicParticle * > *, const G4MaterialCutsCouple *, const G4DynamicParticle *, G4double tmin, G4double maxEnergy) override
G4double ComputeProbabilityFunction(const G4ParticleDefinition *, G4double kine, G4double deltae, G4int shell)
G4DNARuddIonisationExtendedModel(const G4ParticleDefinition *p=nullptr, const G4String &nam="DNARuddIonisationExtendedModel")
void Initialise(const G4ParticleDefinition *, const G4DataVector &) override
Definition G4Pow.hh:49