Geant4 11.4.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4DNABornIonisationModel.hh
Go to the documentation of this file.
1//
2// ********************************************************************
3// * License and Disclaimer *
4// * *
5// * The Geant4 software is copyright of the Copyright Holders of *
6// * the Geant4 Collaboration. It is provided under the terms and *
7// * conditions of the Geant4 Software License, included in the file *
8// * LICENSE and available at http://cern.ch/geant4/license . These *
9// * include a list of copyright holders. *
10// * *
11// * Neither the authors of this software system, nor their employing *
12// * institutes,nor the agencies providing financial support for this *
13// * work make any representation or warranty, express or implied, *
14// * regarding this software system or assume any liability for its *
15// * use. Please see the license in the file LICENSE and URL above *
16// * for the full disclaimer and the limitation of liability. *
17// * *
18// * This code implementation is the result of the scientific and *
19// * technical work of the GEANT4 collaboration. *
20// * By using, copying, modifying or distributing the software (or *
21// * any work based on the software) you agree to acknowledge its *
22// * use in resulting scientific publications, and indicate your *
23// * acceptance of all terms of the Geant4 Software license. *
24// ********************************************************************
25//
26// Created 25.03.2025 V.Ivanchenko
27// on base of the G4DNABornIonisationModel1 of S.Incerti & M.Karamitros
28//
29// Simulation of ionisation for electrons and protons
30//
31
32#ifndef G4DNABornIonisationModel_h
33#define G4DNABornIonisationModel_h 1
34
35#include "G4VEmModel.hh"
36#include "G4VSIntegration.hh"
39
44
46{
47public:
48
50 const G4String& nam = "DNABornIonisationModel");
51
53
54 void Initialise(const G4ParticleDefinition*, const G4DataVector&) override;
55
57
59 const G4ParticleDefinition* p,
60 G4double ekin,
61 G4double emin,
62 G4double emax) override;
63
64 void SampleSecondaries(std::vector<G4DynamicParticle*>*,
66 const G4DynamicParticle*,
67 G4double tmin, G4double maxEnergy) override;
68
69 void StartTracking(G4Track*) override;
70
71 void SelectFasterComputation(G4bool input) { fasterCode = input; };
72
73 void SelectStationary(G4bool input) { statCode = input; };
74
75 void SelectSPScaling(G4bool input) { spScaling = input; };
76
79
80private:
81
82 void LoadData();
83
84 G4int SelectShell();
85
86 G4double SampleCumulative();
87
88 G4double SampleDifferential();
89
90protected:
91
93
94private:
95
96 // Water density table
97 static const std::vector<G4double>* fpWaterDensity;
98
99 // data
100 static G4DNACrossSectionDataSet* xsdata_e;
101 static G4DNACrossSectionDataSet* xsdata_p;
102 G4DNACrossSectionDataSet* xsdata{nullptr};
103
104 // sampling data
105 static G4DNASamplingTable* sampling_e;
106 static G4DNASamplingTable* sampling_p;
107 G4DNASamplingTable* sampling;
108
109 const G4ParticleDefinition* fParticle{nullptr};
110 const G4Track* fTrack{nullptr};
111
112 G4DNAChemistryManager* fChemistry{nullptr};
113
114 // Deexcitation manager to produce fluo photons and e-
115 G4VAtomDeexcitation* fAtomDeexcitation;
116
117 // limits of x-section table
118 G4double fLowEnergy{0.0};
119 G4double fHighEnergy{0.0};
120 G4double fpLimitEnergy{0.0};
121 G4double feLimitEnergy{0.0};
122
123 // tracking cut
124 G4double fAbsorptionEnergy{0.0};
125
126 G4double fMass{0.0};
127 G4double fPrimaryEnergy{0.0};
128 G4double fMaxEnergy{0.0};
129 G4double fTemp[5] = {0.0};
130
131 G4int fSelectedShell{0};
132 G4int verbose{0};
133
134 G4bool isFirst{false};
135 G4bool isInitialised{false};
136 G4bool isElectron{false};
137 G4bool fasterCode{false};
138 G4bool statCode{false};
139 G4bool spScaling{true};
140
141 // Final state
142 G4DNAWaterIonisationStructure waterStructure;
143};
144
145//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
146
147#endif
double G4double
Definition G4Types.hh:83
bool G4bool
Definition G4Types.hh:86
int G4int
Definition G4Types.hh:85
G4DNABornIonisationModel(const G4ParticleDefinition *p=nullptr, const G4String &nam="DNABornIonisationModel")
void StartTracking(G4Track *) override
void SelectFasterComputation(G4bool input)
G4double CrossSectionPerVolume(const G4Material *material, const G4ParticleDefinition *p, G4double ekin, G4double emin, G4double emax) override
void Initialise(const G4ParticleDefinition *, const G4DataVector &) override
G4ParticleChangeForGamma * fParticleChangeForGamma
G4DNABornIonisationModel(const G4DNABornIonisationModel &)=delete
void SampleSecondaries(std::vector< G4DynamicParticle * > *, const G4MaterialCutsCouple *, const G4DynamicParticle *, G4double tmin, G4double maxEnergy) override
G4DNABornIonisationModel & operator=(const G4DNABornIonisationModel &right)=delete
G4double ProbabilityDensityFunction(G4double ekin) override
G4VEmModel(const G4String &nam)
Definition G4VEmModel.cc:67
G4VSIntegration()=default