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 #ifndef G4mplIonisationModel_h
0049 #define G4mplIonisationModel_h 1
0050
0051 #include "G4VEmModel.hh"
0052 #include "G4VEmFluctuationModel.hh"
0053 #include <vector>
0054
0055 class G4ParticleChangeForLoss;
0056
0057 class G4mplIonisationModel : public G4VEmModel, public G4VEmFluctuationModel
0058 {
0059
0060 public:
0061
0062 explicit G4mplIonisationModel(G4double mCharge,
0063 const G4String& nam = "mplIonisation");
0064
0065 ~G4mplIonisationModel() override;
0066
0067 void Initialise(const G4ParticleDefinition*, const G4DataVector&) override;
0068
0069 G4double ComputeDEDXPerVolume(const G4Material*,
0070 const G4ParticleDefinition*,
0071 G4double kineticEnergy,
0072 G4double cutEnergy) override;
0073
0074 void SampleSecondaries(std::vector<G4DynamicParticle*>*,
0075 const G4MaterialCutsCouple*,
0076 const G4DynamicParticle*,
0077 G4double tmin,
0078 G4double maxEnergy) override;
0079
0080
0081 G4double SampleFluctuations(const G4MaterialCutsCouple*,
0082 const G4DynamicParticle*,
0083 const G4double tcut,
0084 const G4double tmax,
0085 const G4double length,
0086 const G4double meanLoss) override;
0087
0088 G4double Dispersion(const G4Material*,
0089 const G4DynamicParticle*,
0090 const G4double tcut,
0091 const G4double tmax,
0092 const G4double length) override;
0093
0094 void SetParticle(const G4ParticleDefinition* p);
0095
0096
0097 G4mplIonisationModel & operator=(const G4mplIonisationModel &right) = delete;
0098 G4mplIonisationModel(const G4mplIonisationModel&) = delete;
0099
0100 private:
0101
0102 G4double ComputeDEDXAhlen(const G4Material* material, G4double bg2);
0103
0104 const G4ParticleDefinition* monopole = nullptr;
0105 G4ParticleChangeForLoss* fParticleChange = nullptr;
0106
0107 G4double mass = 0.0;
0108 G4double magCharge;
0109 G4double twoln10;
0110 G4double betalow;
0111 G4double betalim;
0112 G4double beta2lim;
0113 G4double bg2lim;
0114 G4double chargeSquare;
0115 G4double dedxlim;
0116 G4double pi_hbarc2_over_mc2;
0117
0118 G4int nmpl;
0119
0120 static std::vector<G4double>* dedx0;
0121 };
0122
0123 #endif
0124
0125