File indexing completed on 2025-01-18 09:58:09
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 #ifndef G4DNAPTBIONISATIONMODEL_h
0032 #define G4DNAPTBIONISATIONMODEL_h 1
0033
0034 #include "G4DNACrossSectionDataSet.hh"
0035 #include "G4DNAGenericIonsManager.hh"
0036 #include "G4DNAPTBAugerModel.hh"
0037 #include "G4DNAPTBIonisationStructure.hh"
0038 #include "G4Electron.hh"
0039 #include "G4LogLogInterpolation.hh"
0040 #include "G4NistManager.hh"
0041 #include "G4ParticleChangeForGamma.hh"
0042 #include "G4ProductionCutsTable.hh"
0043 #include "G4Proton.hh"
0044 #include "G4VDNAModel.hh"
0045
0046
0047
0048
0049
0050 class G4DNAPTBIonisationModel : public G4VDNAModel
0051 {
0052 public:
0053 using TriDimensionMap =
0054 std::map<std::size_t, std::map<const G4ParticleDefinition*,
0055 std::map<G4double, std::map<G4double, std::map<G4double, G4double>>>>>;
0056 using VecMap = std::map<std::size_t,
0057 std::map<const G4ParticleDefinition*, std::map<G4double, std::vector<G4double>>>>;
0058 using VecMapWithShell =
0059 std::map<std::size_t, std::map<const G4ParticleDefinition*,
0060 std::map<G4double, std::map<G4double, std::vector<G4double>>>>>;
0061
0062
0063
0064
0065
0066
0067
0068
0069 explicit G4DNAPTBIonisationModel(const G4String& applyToMaterial = "all",
0070 const G4ParticleDefinition* p = nullptr, const G4String& nam = "DNAPTBIonisationModel",
0071 const G4bool isAuger = true);
0072
0073
0074
0075
0076
0077 ~G4DNAPTBIonisationModel() override = default;
0078
0079
0080 G4DNAPTBIonisationModel(const G4DNAPTBIonisationModel&) = delete;
0081 G4DNAPTBIonisationModel& operator=(
0082 const G4DNAPTBIonisationModel& right) = delete;
0083
0084
0085
0086
0087
0088
0089
0090
0091 void Initialise(const G4ParticleDefinition* particle, const G4DataVector& data) override;
0092
0093
0094
0095
0096
0097
0098
0099
0100
0101
0102
0103
0104
0105 G4double CrossSectionPerVolume(const G4Material* material, const G4ParticleDefinition* p,
0106 G4double ekin, G4double emin, G4double emax) override;
0107
0108
0109
0110
0111
0112
0113
0114
0115 void SampleSecondaries(std::vector<G4DynamicParticle*>*, const G4MaterialCutsCouple*,
0116 const G4DynamicParticle*, G4double tmin, G4double tmax) override;
0117
0118 G4ParticleChangeForGamma* fParticleChangeForGamma = nullptr;
0119
0120 private:
0121 std::unique_ptr<G4DNAPTBAugerModel>
0122 fpDNAPTBAugerModel;
0123
0124 G4int verboseLevel = 0;
0125 G4DNAPTBIonisationStructure
0126 ptbStructure;
0127 TriDimensionMap diffCrossSectionData;
0128 TriDimensionMap fEnergySecondaryData;
0129 std::map<std::size_t, std::map<const G4ParticleDefinition*, std::vector<G4double>>> fTMapWithVec;
0130 VecMap fEMapWithVector;
0131 VecMapWithShell fProbaShellMap;
0132
0133 G4double RandomizeEjectedElectronEnergy(const G4ParticleDefinition* aP,
0134 G4double incomingParticleEnergy, G4int shell, const std::size_t& materialName);
0135 G4double DifferentialCrossSection(const G4ParticleDefinition* p, G4double k,
0136 G4double energyTransfer, G4int shell, const std::size_t& materialName);
0137
0138
0139
0140
0141
0142
0143
0144
0145
0146
0147 G4double RandomizeEjectedElectronEnergyFromCumulated(
0148 const G4ParticleDefinition*, G4double k, G4int shell, const std::size_t& materialID);
0149
0150
0151
0152
0153
0154
0155
0156
0157
0158
0159 void RandomizeEjectedElectronDirection(const G4ParticleDefinition*,
0160 G4double incomingParticleEnergy, G4double outgoingParticleEnergy, G4double& cosTheta,
0161 G4double& phi);
0162
0163
0164
0165
0166
0167
0168
0169
0170 void ReadDiffCSFile(const std::size_t& materialName, const G4ParticleDefinition* p,
0171 const G4String& file, const G4double& scaleFactor) override;
0172
0173
0174
0175
0176
0177
0178
0179
0180
0181
0182
0183
0184
0185
0186
0187
0188
0189 G4double QuadInterpolator(G4double e11, G4double e12, G4double e21, G4double e22, G4double xs11,
0190 G4double xs12, G4double xs21, G4double xs22, G4double t1, G4double t2, G4double t, G4double e);
0191
0192
0193
0194
0195
0196
0197
0198
0199
0200 G4double LogLogInterpolate(G4double e1, G4double e2, G4double e, G4double xs1, G4double xs2);
0201
0202 G4Material* fpGuanine_PU = nullptr;
0203 G4Material* fpTHF = nullptr;
0204 G4Material* fpPY = nullptr;
0205 G4Material* fpPU = nullptr;
0206 G4Material* fpTMP = nullptr;
0207 G4Material* fpG4_WATER = nullptr;
0208 G4Material* fpBackbone_THF = nullptr;
0209 G4Material* fpCytosine_PY = nullptr;
0210 G4Material* fpThymine_PY = nullptr;
0211 G4Material* fpAdenine_PU = nullptr;
0212 G4Material* fpBackbone_TMP = nullptr;
0213 G4Material* fpN2 = nullptr;
0214 G4DNAPTBIonisationModel* fpModelData = nullptr;
0215
0216 };
0217
0218
0219
0220 #endif