File indexing completed on 2026-08-10 09:18:17
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
0033
0034
0035
0036
0037
0038
0039
0040
0041
0042
0043
0044
0045
0046
0047
0048
0049
0050
0051
0052 #ifndef G4eBremsstrahlungRelModel_h
0053 #define G4eBremsstrahlungRelModel_h 1
0054
0055 #include "G4VEmModel.hh"
0056
0057 class G4ParticleChangeForLoss;
0058
0059 class G4eBremsstrahlungRelModel : public G4VEmModel {
0060
0061 public:
0062
0063 explicit G4eBremsstrahlungRelModel(const G4ParticleDefinition* p=nullptr,
0064 const G4String& nam="eBremLPM");
0065
0066 ~G4eBremsstrahlungRelModel() override;
0067
0068 void Initialise(const G4ParticleDefinition*, const G4DataVector&) override;
0069
0070 void InitialiseLocal(const G4ParticleDefinition*,
0071 G4VEmModel* masterModel) override;
0072
0073 G4double ComputeDEDXPerVolume(const G4Material*,
0074 const G4ParticleDefinition*,
0075 G4double ekin,
0076 G4double cutEnergy) override;
0077
0078 G4double ComputeCrossSectionPerAtom(const G4ParticleDefinition*,
0079 G4double ekin,
0080 G4double zet,
0081 G4double,
0082 G4double cutEnergy,
0083 G4double maxEnergy = DBL_MAX) override;
0084
0085 void SampleSecondaries(std::vector<G4DynamicParticle*>*,
0086 const G4MaterialCutsCouple*,
0087 const G4DynamicParticle*,
0088 G4double cutEnergy,
0089 G4double maxEnergy) override;
0090
0091 void SetupForMaterial(const G4ParticleDefinition*,
0092 const G4Material*, G4double) override;
0093
0094 G4double MinPrimaryEnergy(const G4Material*,
0095 const G4ParticleDefinition*,
0096 G4double cutEnergy) override;
0097
0098 protected:
0099
0100 virtual G4double ComputeDXSectionPerAtom(G4double gammaEnergy);
0101
0102 void SetParticle(const G4ParticleDefinition* p);
0103
0104 private:
0105
0106 G4double ComputeBremLoss(G4double cutEnergy);
0107
0108 G4double ComputeXSectionPerAtom(G4double cutEnergy);
0109
0110 G4double ComputeRelDXSectionPerAtom(G4double gammaEnergy);
0111
0112
0113 void InitialiseElementData();
0114
0115 void ComputeLPMfunctions(G4double& funcXiS,
0116 G4double& funcGS,
0117 G4double& funcPhiS,
0118 const G4double egamma);
0119
0120
0121 void ComputeScreeningFunctions(G4double& phi1,
0122 G4double& phi1m2,
0123 G4double& psi1,
0124 G4double& psi1m2,
0125 const G4double gam,
0126 const G4double eps);
0127
0128 G4eBremsstrahlungRelModel& operator=
0129 (const G4eBremsstrahlungRelModel& right) = delete;
0130 G4eBremsstrahlungRelModel(const G4eBremsstrahlungRelModel&) = delete;
0131
0132 private:
0133
0134 G4bool fIsUseCompleteScreening = false;
0135 G4bool fIsInitializer = false;
0136 G4bool fUseLPM = true;
0137
0138 protected:
0139
0140 G4bool fIsElectron = true;
0141 G4bool fIsScatOffElectron = false;
0142 G4bool fIsLPMActive = false;
0143
0144 G4int fCurrentIZ = 0;
0145 const G4ParticleDefinition* fPrimaryParticle = nullptr;
0146 G4ParticleDefinition* fGammaParticle = nullptr;
0147 G4ParticleChangeForLoss* fParticleChange = nullptr;
0148
0149 G4double fPrimaryParticleMass = 0.;
0150 G4double fPrimaryKinEnergy = 0.;
0151 G4double fPrimaryTotalEnergy = 0.;
0152 G4double fDensityFactor = 0.;
0153 G4double fDensityCorr = 0.;
0154 G4double fLowestKinEnergy;
0155
0156 G4double fNucTerm = 0.;
0157 G4double fSumTerm = 0.;
0158
0159 private:
0160
0161
0162 G4double fLPMEnergyThreshold;
0163 G4double fLPMEnergy;
0164
0165 protected:
0166
0167 static const G4double gBremFactor;
0168 static const G4double gMigdalConstant;
0169
0170 private:
0171
0172 static const G4int gMaxZet;
0173
0174 static const G4double gLPMconstant;
0175
0176 static const G4double gXGL[8];
0177 static const G4double gWGL[8];
0178 static const G4double gFelLowZet[8];
0179 static const G4double gFinelLowZet[8];
0180
0181 struct ElementData {
0182
0183 G4double fLogZ;
0184
0185 G4double fFz;
0186
0187 G4double fZFactor1;
0188
0189 G4double fZFactor11;
0190
0191 G4double fZFactor2;
0192
0193 G4double fVarS1;
0194 G4double fILVarS1;
0195 G4double fILVarS1Cond;
0196
0197 G4double fGammaFactor;
0198 G4double fEpsilonFactor;
0199 };
0200 static std::vector<ElementData*> gElementData;
0201
0202 };
0203
0204 #endif