File indexing completed on 2025-01-18 09:58:07
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 #ifndef G4DNADingfelderChargeIncreaseModel_h
0029 #define G4DNADingfelderChargeIncreaseModel_h 1
0030
0031 #include "G4VEmModel.hh"
0032 #include "G4ParticleChangeForGamma.hh"
0033 #include "G4ProductionCutsTable.hh"
0034 #include "G4Electron.hh"
0035 #include "G4Proton.hh"
0036 #include "G4DNAGenericIonsManager.hh"
0037 #include "G4NistManager.hh"
0038
0039 class G4DNADingfelderChargeIncreaseModel : public G4VEmModel
0040 {
0041 public:
0042
0043 explicit G4DNADingfelderChargeIncreaseModel(const G4ParticleDefinition* p = nullptr,
0044 const G4String& nam = "DNADingfelderChargeIncreaseModel");
0045 ~G4DNADingfelderChargeIncreaseModel() override = default;
0046
0047 G4DNADingfelderChargeIncreaseModel & operator=(const G4DNADingfelderChargeIncreaseModel &right)= delete;
0048 G4DNADingfelderChargeIncreaseModel(const G4DNADingfelderChargeIncreaseModel&) = delete;
0049
0050 void Initialise(const G4ParticleDefinition*, const G4DataVector&) override;
0051 G4double CrossSectionPerVolume(const G4Material* material,
0052 const G4ParticleDefinition* p,
0053 G4double ekin,
0054 G4double emin,
0055 G4double emax) override;
0056 void SampleSecondaries(std::vector<G4DynamicParticle*>*,
0057 const G4MaterialCutsCouple*,
0058 const G4DynamicParticle*,
0059 G4double tmin,
0060 G4double maxEnergy) override;
0061 inline void SelectStationary(G4bool input);
0062 protected:
0063 G4ParticleChangeForGamma* fParticleChangeForGamma = nullptr;
0064 private:
0065
0066 const std::vector<G4double>* fpMolWaterDensity = nullptr;
0067
0068 std::map<G4String,G4double,std::less<G4String> > lowEnergyLimit;
0069 std::map<G4String,G4double,std::less<G4String> > highEnergyLimit;
0070
0071 G4bool isInitialised = false, statCode = false;
0072
0073
0074
0075
0076
0077
0078 G4int verboseLevel = 0;
0079
0080
0081
0082 G4double PartialCrossSection(const G4double& energy, const G4int& level, const G4ParticleDefinition* particle);
0083
0084 G4double Sum(const G4double& energy, const G4ParticleDefinition* particle);
0085
0086 G4int RandomSelect(const G4double& energy, const G4ParticleDefinition* particle);
0087
0088 G4int numberOfPartialCrossSections[2] = {0};
0089 G4double f0[2][2] = {{0, 0},{0, 0}};
0090 G4double a0[2][2] = {{0, 0},{0, 0}};
0091 G4double a1[2][2] = {{0, 0},{0, 0}};
0092 G4double b0[2][2] = {{0, 0},{0, 0}};
0093 G4double b1[2][2] = {{0, 0},{0, 0}};
0094 G4double c0[2][2] = {{0, 0},{0, 0}};
0095 G4double d0[2][2] = {{0, 0},{0, 0}};
0096 G4double x0[2][2] = {{0, 0},{0, 0}};
0097 G4double x1[2][2] = {{0, 0},{0, 0}};
0098
0099
0100 G4int NumberOfFinalStates(G4ParticleDefinition* particleDefinition, G4int finalStateIndex);
0101 G4ParticleDefinition* OutgoingParticleDefinition(G4ParticleDefinition* particleDefinition, G4int finalStateIndex);
0102 G4double IncomingParticleBindingEnergyConstant(G4ParticleDefinition* particleDefinition, G4int finalStateIndex);
0103
0104 G4ParticleDefinition* hydrogenDef = nullptr;
0105 G4ParticleDefinition* alphaPlusPlusDef = nullptr;
0106 G4ParticleDefinition* alphaPlusDef = nullptr;
0107 G4ParticleDefinition* heliumDef = nullptr;
0108
0109 };
0110
0111
0112 inline void G4DNADingfelderChargeIncreaseModel::SelectStationary (G4bool input)
0113 {
0114 statCode = input;
0115 }
0116
0117
0118
0119 #endif
0120