File indexing completed on 2025-01-18 09:58:42
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
0053
0054
0055
0056
0057
0058
0059 #ifndef G4MuBremsstrahlungModel_h
0060 #define G4MuBremsstrahlungModel_h 1
0061
0062 #include "G4VEmModel.hh"
0063 #include "G4NistManager.hh"
0064 #include "G4Exp.hh"
0065
0066 class G4Element;
0067 class G4ParticleChangeForLoss;
0068
0069 class G4MuBremsstrahlungModel : public G4VEmModel
0070 {
0071
0072 public:
0073
0074 explicit G4MuBremsstrahlungModel(const G4ParticleDefinition* p = nullptr,
0075 const G4String& nam = "MuBrem");
0076
0077 ~G4MuBremsstrahlungModel() = default;
0078
0079 void Initialise(const G4ParticleDefinition*, const G4DataVector&) override;
0080
0081 void InitialiseLocal(const G4ParticleDefinition*,
0082 G4VEmModel* masterModel) override;
0083
0084 G4double MinEnergyCut(const G4ParticleDefinition*,
0085 const G4MaterialCutsCouple*) override;
0086
0087 G4double ComputeCrossSectionPerAtom(
0088 const G4ParticleDefinition*,
0089 G4double kineticEnergy,
0090 G4double Z, G4double A,
0091 G4double cutEnergy,
0092 G4double maxEnergy) override;
0093
0094 G4double ComputeDEDXPerVolume(const G4Material*,
0095 const G4ParticleDefinition*,
0096 G4double kineticEnergy,
0097 G4double cutEnergy) override;
0098
0099 void SampleSecondaries(std::vector<G4DynamicParticle*>*,
0100 const G4MaterialCutsCouple*,
0101 const G4DynamicParticle*,
0102 G4double tmin,
0103 G4double maxEnergy) override;
0104
0105 inline void SetLowestKineticEnergy(G4double e);
0106
0107 G4double MinPrimaryEnergy(const G4Material*, const G4ParticleDefinition*,
0108 G4double) override;
0109
0110
0111 G4MuBremsstrahlungModel &
0112 operator=(const G4MuBremsstrahlungModel &right) = delete;
0113 G4MuBremsstrahlungModel(const G4MuBremsstrahlungModel&) = delete;
0114
0115 protected:
0116
0117 G4double ComputMuBremLoss(G4double Z, G4double tkin, G4double cut);
0118
0119 G4double ComputeMicroscopicCrossSection(G4double tkin,
0120 G4double Z,
0121 G4double cut);
0122
0123 virtual G4double ComputeDMicroscopicCrossSection(G4double tkin,
0124 G4double Z,
0125 G4double gammaEnergy);
0126
0127 void SetParticle(const G4ParticleDefinition*);
0128
0129 protected:
0130
0131 const G4ParticleDefinition* particle = nullptr;
0132 G4ParticleDefinition* theGamma = nullptr;
0133 G4ParticleChangeForLoss* fParticleChange = nullptr;
0134 G4NistManager* nist = nullptr;
0135
0136 G4double mass = 1.0;
0137 G4double rmass = 1.0;
0138 G4double cc = 1.0;
0139 G4double coeff = 1.0;
0140 G4double sqrte;
0141 G4double bh = 202.4;
0142 G4double bh1 = 446.;
0143 G4double btf = 183.;
0144 G4double btf1 = 1429.;
0145
0146 G4double lowestKinEnergy;
0147 G4double minThreshold;
0148
0149 static const G4double xgi[6];
0150 static const G4double wgi[6];
0151 static G4double fDN[93];
0152 };
0153
0154
0155
0156 inline void G4MuBremsstrahlungModel::SetLowestKineticEnergy(G4double e)
0157 {
0158 lowestKinEnergy = e;
0159 }
0160
0161
0162
0163 #endif