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 #ifndef G4MuBetheBlochModel_h
0059 #define G4MuBetheBlochModel_h 1
0060
0061 #include "G4VEmModel.hh"
0062
0063 class G4ParticleChangeForLoss;
0064 class G4EmCorrections;
0065
0066 class G4MuBetheBlochModel : public G4VEmModel
0067 {
0068
0069 public:
0070
0071 explicit G4MuBetheBlochModel(const G4ParticleDefinition* p = nullptr,
0072 const G4String& nam = "MuBetheBloch");
0073
0074 ~G4MuBetheBlochModel() = default;
0075
0076 void Initialise(const G4ParticleDefinition*, const G4DataVector&) override;
0077
0078 G4double MinEnergyCut(const G4ParticleDefinition*,
0079 const G4MaterialCutsCouple*) override;
0080
0081 G4double ComputeCrossSectionPerElectron(
0082 const G4ParticleDefinition*,
0083 G4double kineticEnergy,
0084 G4double cutEnergy,
0085 G4double maxEnergy);
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 CrossSectionPerVolume(const G4Material*,
0095 const G4ParticleDefinition*,
0096 G4double kineticEnergy,
0097 G4double cutEnergy,
0098 G4double maxEnergy) override;
0099
0100 G4double ComputeDEDXPerVolume(const G4Material*,
0101 const G4ParticleDefinition*,
0102 G4double kineticEnergy,
0103 G4double cutEnergy) override;
0104
0105 void SampleSecondaries(std::vector<G4DynamicParticle*>*,
0106 const G4MaterialCutsCouple*,
0107 const G4DynamicParticle*,
0108 G4double tmin,
0109 G4double maxEnergy) override;
0110
0111
0112 G4MuBetheBlochModel & operator=(const G4MuBetheBlochModel &right) = delete;
0113 G4MuBetheBlochModel(const G4MuBetheBlochModel&) = delete;
0114
0115 protected:
0116
0117 G4double MaxSecondaryEnergy(const G4ParticleDefinition*,
0118 G4double kinEnergy) override;
0119
0120 private:
0121
0122 void SetParticle(const G4ParticleDefinition* p);
0123
0124 const G4ParticleDefinition* particle = nullptr;
0125 G4ParticleDefinition* theElectron = nullptr;
0126 G4ParticleChangeForLoss* fParticleChange = nullptr;
0127 G4EmCorrections* corr = nullptr;
0128
0129 G4double limitRadCorrection;
0130 G4double limitKinEnergy;
0131 G4double logLimitKinEnergy;
0132 G4double mass = 1.0;
0133 G4double massSquare = 1.0;
0134 G4double ratio = 1.0;
0135 G4double twoln10;
0136 G4double alphaprime;
0137 static G4double xgi[8],wgi[8];
0138 };
0139
0140
0141
0142 #endif