File indexing completed on 2025-09-17 08:58:19
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020
0021
0022
0023
0024
0025
0026
0027
0028
0029
0030
0031
0032 #ifndef G4DNARuddIonisationExtendedModel_h
0033 #define G4DNARuddIonisationExtendedModel_h 1
0034
0035 #include "G4VEmModel.hh"
0036 #include "G4ParticleChangeForGamma.hh"
0037 #include "G4ProductionCutsTable.hh"
0038
0039 #include "G4EmCorrections.hh"
0040 #include "G4DNAGenericIonsManager.hh"
0041 #include "G4DNACrossSectionDataSet.hh"
0042 #include "G4Electron.hh"
0043 #include "G4Proton.hh"
0044 #include "G4LogLogInterpolation.hh"
0045
0046 #include "G4DNAWaterIonisationStructure.hh"
0047 #include "G4VAtomDeexcitation.hh"
0048 #include "G4NistManager.hh"
0049 #include <vector>
0050
0051 class G4DNARuddIonisationExtendedModel : public G4VEmModel
0052 {
0053 public:
0054
0055 explicit G4DNARuddIonisationExtendedModel(const G4ParticleDefinition* p = nullptr,
0056 const G4String& nam = "DNARuddIonisationExtendedModel");
0057
0058 ~G4DNARuddIonisationExtendedModel() override;
0059
0060 void Initialise(const G4ParticleDefinition*, const G4DataVector&) override;
0061
0062 G4double CrossSectionPerVolume(const G4Material* material,
0063 const G4ParticleDefinition* p,
0064 G4double ekin,
0065 G4double emin,
0066 G4double emax) override;
0067
0068 void SampleSecondaries(std::vector<G4DynamicParticle*>*,
0069 const G4MaterialCutsCouple*,
0070 const G4DynamicParticle*,
0071 G4double tmin,
0072 G4double maxEnergy) override;
0073
0074 void SelectStationary(G4bool val) { statCode = val; };
0075
0076
0077 G4double ComputeProbabilityFunction(const G4ParticleDefinition*, G4double kine,
0078 G4double deltae, G4int shell);
0079
0080 G4DNARuddIonisationExtendedModel & operator=
0081 (const G4DNARuddIonisationExtendedModel &right) = delete;
0082 G4DNARuddIonisationExtendedModel(const G4DNARuddIonisationExtendedModel&) = delete;
0083
0084 private:
0085
0086 void LoadData();
0087
0088 void SetParticle(const G4ParticleDefinition*);
0089
0090 G4int SelectShell(G4double energy);
0091
0092 G4double MaxEnergy(G4double kine, G4int shell);
0093
0094 G4double SampleElectronEnergy(G4double kine, G4int shell);
0095
0096 G4double ProbabilityFunction(G4double kine, G4double deltae, G4int shell);
0097
0098 G4double S_1s(G4double t,
0099 G4double energyTransferred,
0100 G4double slaterEffectiveChg,
0101 G4double shellNumber);
0102
0103 G4double S_2s(G4double t,
0104 G4double energyTransferred,
0105 G4double slaterEffectiveChg,
0106 G4double shellNumber);
0107
0108
0109 G4double S_2p(G4double t,
0110 G4double energyTransferred,
0111 G4double slaterEffectiveChg,
0112 G4double shellNumber);
0113
0114 G4double Rh(G4double t,
0115 G4double energyTransferred,
0116 G4double slaterEffectiveChg,
0117 G4double shellNumber);
0118
0119 G4double CorrectionFactor(G4double kine, G4int shell);
0120
0121 protected:
0122
0123 G4ParticleChangeForGamma* fParticleChangeForGamma{nullptr};
0124
0125 private:
0126
0127
0128
0129
0130
0131
0132 static const G4int RUDDZMAX = 27;
0133 static G4DNACrossSectionDataSet* xsdata[RUDDZMAX];
0134 static G4DNACrossSectionDataSet* xsalphaplus;
0135 static G4DNACrossSectionDataSet* xshelium;
0136
0137
0138 static const std::vector<G4double>* fpWaterDensity;
0139
0140 G4DNACrossSectionDataSet* xscurrent{nullptr};
0141 const G4ParticleDefinition* fParticle{nullptr};
0142 G4EmCorrections* fEmCorrections;
0143 G4Pow* fGpow;
0144
0145
0146 G4VAtomDeexcitation* fAtomDeexcitation{nullptr};
0147
0148
0149 G4double fLowestEnergy;
0150
0151 G4double fLimitEnergy;
0152
0153 G4double fMass{0.0};
0154 G4double fMassRate{1.0};
0155 G4double fElow{0.0};
0156
0157 G4double F1{0.0};
0158 G4double F2{0.0};
0159 G4double alphaConst{0.0};
0160 G4double bEnergy{0.0};
0161 G4double u{0.0};
0162 G4double v{0.0};
0163 G4double wc{0.0};
0164
0165 G4double slaterEffectiveCharge[3] = {0.0};
0166 G4double sCoefficient[3] = {0.0};
0167 G4double fTemp[5] = {0.0};
0168
0169 G4int idx{-1};
0170 G4int verbose{0};
0171
0172 G4bool isInitialised{false};
0173 G4bool isIon{false};
0174 G4bool isFirst{false};
0175 G4bool isHelium{false};
0176 G4bool statCode{false};
0177 G4bool useDNAWaterStructure{true};
0178
0179
0180 G4DNAWaterIonisationStructure waterStructure;
0181 };
0182
0183
0184
0185 #endif