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.4.p3 ] [ 10.5 ] [ 10.5.p1 ] [ 10.6 ] [ 10.6.p1 ] [ 10.6.p2 ] [ 10.6.p3 ] [ 10.7 ] [ 10.7.p1 ] [ 10.7.p2 ] [ 10.7.p3 ] [ 10.7.p4 ] [ 11.0 ] [ 11.0.p1 ] [ 11.0.p2 ] [ 11.0.p3, ] [ 11.0.p4 ] [ 11.1 ] [ 11.1.1 ] [ 11.1.2 ] [ 11.1.3 ] [ 11.2 ] [ 11.2.1 ] [ 11.2.2 ] [ 11.3.0 ]

Diff markup

Differences between /processes/electromagnetic/dna/models/include/G4DNARuddIonisationExtendedModel.hh (Version 11.3.0) and /processes/electromagnetic/dna/models/include/G4DNARuddIonisationExtendedModel.hh (Version 11.2.2)


  1 //                                                  1 //
  2 // *******************************************      2 // ********************************************************************
  3 // * License and Disclaimer                         3 // * License and Disclaimer                                           *
  4 // *                                                4 // *                                                                  *
  5 // * The  Geant4 software  is  copyright of th      5 // * The  Geant4 software  is  copyright of the Copyright Holders  of *
  6 // * the Geant4 Collaboration.  It is provided      6 // * the Geant4 Collaboration.  It is provided  under  the terms  and *
  7 // * conditions of the Geant4 Software License      7 // * conditions of the Geant4 Software License,  included in the file *
  8 // * LICENSE and available at  http://cern.ch/      8 // * LICENSE and available at  http://cern.ch/geant4/license .  These *
  9 // * include a list of copyright holders.           9 // * include a list of copyright holders.                             *
 10 // *                                               10 // *                                                                  *
 11 // * Neither the authors of this software syst     11 // * Neither the authors of this software system, nor their employing *
 12 // * institutes,nor the agencies providing fin     12 // * institutes,nor the agencies providing financial support for this *
 13 // * work  make  any representation or  warran     13 // * work  make  any representation or  warranty, express or implied, *
 14 // * regarding  this  software system or assum     14 // * regarding  this  software system or assume any liability for its *
 15 // * use.  Please see the license in the file      15 // * use.  Please see the license in the file  LICENSE  and URL above *
 16 // * for the full disclaimer and the limitatio     16 // * for the full disclaimer and the limitation of liability.         *
 17 // *                                               17 // *                                                                  *
 18 // * This  code  implementation is the result      18 // * This  code  implementation is the result of  the  scientific and *
 19 // * technical work of the GEANT4 collaboratio     19 // * technical work of the GEANT4 collaboration.                      *
 20 // * By using,  copying,  modifying or  distri     20 // * By using,  copying,  modifying or  distributing the software (or *
 21 // * any work based  on the software)  you  ag     21 // * any work based  on the software)  you  agree  to acknowledge its *
 22 // * use  in  resulting  scientific  publicati     22 // * use  in  resulting  scientific  publications,  and indicate your *
 23 // * acceptance of all terms of the Geant4 Sof     23 // * acceptance of all terms of the Geant4 Software license.          *
 24 // *******************************************     24 // ********************************************************************
 25 //                                                 25 //
 26 // Created by Z. Francis, S. Incerti 2010          26 // Created by Z. Francis, S. Incerti 2010 
 27 //                                                 27 //
 28 // Modified for inverse rudd function sampling     28 // Modified for inverse rudd function sampling 26.10.2010
 29 // Rewitten by V.Ivanchenko 21.05.2023             29 // Rewitten by V.Ivanchenko 21.05.2023
 30 //                                                 30 //
 31                                                    31 
 32 #ifndef G4DNARuddIonisationExtendedModel_h         32 #ifndef G4DNARuddIonisationExtendedModel_h
 33 #define G4DNARuddIonisationExtendedModel_h 1       33 #define G4DNARuddIonisationExtendedModel_h 1
 34                                                    34 
 35 #include "G4VEmModel.hh"                           35 #include "G4VEmModel.hh"
 36 #include "G4ParticleChangeForGamma.hh"             36 #include "G4ParticleChangeForGamma.hh"
 37 #include "G4ProductionCutsTable.hh"                37 #include "G4ProductionCutsTable.hh"
 38                                                    38 
 39 #include "G4EmCorrections.hh"                      39 #include "G4EmCorrections.hh"
 40 #include "G4DNAGenericIonsManager.hh"              40 #include "G4DNAGenericIonsManager.hh"
 41 #include "G4DNACrossSectionDataSet.hh"             41 #include "G4DNACrossSectionDataSet.hh"
 42 #include "G4Electron.hh"                           42 #include "G4Electron.hh"
 43 #include "G4Proton.hh"                             43 #include "G4Proton.hh"
 44 #include "G4LogLogInterpolation.hh"                44 #include "G4LogLogInterpolation.hh"
 45                                                    45 
 46 #include "G4DNAWaterIonisationStructure.hh"        46 #include "G4DNAWaterIonisationStructure.hh"
 47 #include "G4VAtomDeexcitation.hh"                  47 #include "G4VAtomDeexcitation.hh"
 48 #include "G4NistManager.hh"                        48 #include "G4NistManager.hh"
 49 #include <vector>                                  49 #include <vector>
 50                                                    50 
 51 class G4DNARuddIonisationExtendedModel : publi     51 class G4DNARuddIonisationExtendedModel : public G4VEmModel
 52 {                                                  52 {
 53 public:                                            53 public:
 54                                                    54 
 55   explicit G4DNARuddIonisationExtendedModel(co     55   explicit G4DNARuddIonisationExtendedModel(const G4ParticleDefinition* p = nullptr,
 56                const G4String& nam = "DNARuddI     56                const G4String& nam = "DNARuddIonisationExtendedModel");
 57                                                    57 
 58   ~G4DNARuddIonisationExtendedModel() override     58   ~G4DNARuddIonisationExtendedModel() override;
 59                                                    59 
 60   void Initialise(const G4ParticleDefinition*,     60   void Initialise(const G4ParticleDefinition*, const G4DataVector&) override;
 61                                                    61 
 62   G4double CrossSectionPerVolume(const G4Mater     62   G4double CrossSectionPerVolume(const G4Material* material,
 63                                  const G4Parti     63                                  const G4ParticleDefinition* p,
 64          G4double ekin,                            64          G4double ekin,
 65          G4double emin,                            65          G4double emin,
 66          G4double emax) override;                  66          G4double emax) override;
 67                                                    67 
 68   void SampleSecondaries(std::vector<G4Dynamic     68   void SampleSecondaries(std::vector<G4DynamicParticle*>*,
 69        const G4MaterialCutsCouple*,                69        const G4MaterialCutsCouple*,
 70        const G4DynamicParticle*,                   70        const G4DynamicParticle*,
 71        G4double tmin,                              71        G4double tmin,
 72        G4double maxEnergy) override;               72        G4double maxEnergy) override;
 73                                                    73 
 74   void SelectStationary(G4bool val) { statCode     74   void SelectStationary(G4bool val) { statCode = val; }; 
 75                                                    75 
 76   // method for unit tests                         76   // method for unit tests
 77   G4double ComputeProbabilityFunction(const G4     77   G4double ComputeProbabilityFunction(const G4ParticleDefinition*, G4double kine,
 78                                       G4double     78                                       G4double deltae, G4int shell);
 79                                                    79 
 80   G4DNARuddIonisationExtendedModel & operator=     80   G4DNARuddIonisationExtendedModel & operator=
 81   (const  G4DNARuddIonisationExtendedModel &ri     81   (const  G4DNARuddIonisationExtendedModel &right) = delete;
 82   G4DNARuddIonisationExtendedModel(const G4DNA     82   G4DNARuddIonisationExtendedModel(const G4DNARuddIonisationExtendedModel&) = delete;
 83                                                    83 
 84 private:                                           84 private:
 85                                                    85 
 86   void LoadData();                             << 
 87                                                << 
 88   void SetParticle(const G4ParticleDefinition*     86   void SetParticle(const G4ParticleDefinition*);
 89                                                    87 
 90   G4int SelectShell(G4double energy);              88   G4int SelectShell(G4double energy);
 91                                                    89 
 92   G4double MaxEnergy(G4double kine, G4int shel <<  90   G4double SampleElectronEnergy(G4double kine, G4double bindingEnergy, G4int shell);
 93                                                    91 
 94   G4double SampleElectronEnergy(G4double kine, <<  92   G4double ProbabilityFunction(G4double kine, G4double deltae,
 95                                                <<  93                                G4double bindingEnergy, G4int shell);
 96   G4double ProbabilityFunction(G4double kine,  << 
 97                                                    94 
 98   G4double S_1s(G4double t,                        95   G4double S_1s(G4double t,
 99     G4double energyTransferred,                    96     G4double energyTransferred,
100     G4double slaterEffectiveChg,                   97     G4double slaterEffectiveChg,
101     G4double shellNumber);                         98     G4double shellNumber);
102                                                    99 
103   G4double S_2s(G4double t,                       100   G4double S_2s(G4double t,
104     G4double energyTransferred,                   101     G4double energyTransferred,
105     G4double slaterEffectiveChg,                  102     G4double slaterEffectiveChg,
106     G4double shellNumber);                        103     G4double shellNumber);
107                                                   104 
108                                                   105 
109   G4double S_2p(G4double t,                       106   G4double S_2p(G4double t,
110     G4double energyTransferred,                   107     G4double energyTransferred,
111     G4double slaterEffectiveChg,                  108     G4double slaterEffectiveChg,
112     G4double shellNumber);                        109     G4double shellNumber);
113                                                   110 
114   G4double Rh(G4double t,                         111   G4double Rh(G4double t, 
115         G4double energyTransferred,               112         G4double energyTransferred,
116         G4double slaterEffectiveChg,              113         G4double slaterEffectiveChg,
117         G4double shellNumber);                    114         G4double shellNumber);
118                                                   115 
119   G4double CorrectionFactor(G4double kine, G4i    116   G4double CorrectionFactor(G4double kine, G4int shell);
120                                                   117 
121 protected:                                        118 protected:
122                                                   119 
123   G4ParticleChangeForGamma* fParticleChangeFor    120   G4ParticleChangeForGamma* fParticleChangeForGamma{nullptr};
124                                                   121 
125 private:                                          122 private:
126                                                   123 
127   // idx = 0 - hydrogen                           124   // idx = 0 - hydrogen
128   // idx = 1 - proton                             125   // idx = 1 - proton
129   // idx = 2%26 - ions idx=Z                      126   // idx = 2%26 - ions idx=Z
130   // idx = -1 - alpha+                            127   // idx = -1 - alpha+
131   // idx = -1 - helium                            128   // idx = -1 - helium
132   static const G4int RUDDZMAX = 27;               129   static const G4int RUDDZMAX = 27;
133   static G4DNACrossSectionDataSet* xsdata[RUDD    130   static G4DNACrossSectionDataSet* xsdata[RUDDZMAX];
134   static G4DNACrossSectionDataSet* xsalphaplus    131   static G4DNACrossSectionDataSet* xsalphaplus;
135   static G4DNACrossSectionDataSet* xshelium;      132   static G4DNACrossSectionDataSet* xshelium;
136                                                   133 
137   // Water density table                          134   // Water density table
138   static const std::vector<G4double>* fpWaterD    135   static const std::vector<G4double>* fpWaterDensity;
139                                                   136 
140   G4DNACrossSectionDataSet* xscurrent{nullptr}    137   G4DNACrossSectionDataSet* xscurrent{nullptr};
141   const G4ParticleDefinition* fParticle{nullpt    138   const G4ParticleDefinition* fParticle{nullptr};
142   G4EmCorrections* fEmCorrections;                139   G4EmCorrections* fEmCorrections;
143   G4Pow* fGpow;                                   140   G4Pow* fGpow;
144                                                   141  
145   //deexcitation manager to produce fluo photo    142   //deexcitation manager to produce fluo photons and e-
146   G4VAtomDeexcitation* fAtomDeexcitation{nullp    143   G4VAtomDeexcitation* fAtomDeexcitation{nullptr};
147                                                   144 
148   // tracking cut and low-energy limit of prot    145   // tracking cut and low-energy limit of proton x-section table
149   G4double fLowestEnergy;                         146   G4double fLowestEnergy;
150   // scaled low-energy limit of ion x-section     147   // scaled low-energy limit of ion x-section table
151   G4double fLimitEnergy;                          148   G4double fLimitEnergy;
152                                                   149 
153   G4double fMass{0.0};                            150   G4double fMass{0.0};
                                                   >> 151   G4double fAmass{0.0};
154   G4double fMassRate{1.0};                        152   G4double fMassRate{1.0};
155   G4double fElow{0.0};                            153   G4double fElow{0.0};
156                                                   154 
157   G4double F1{0.0};                            << 
158   G4double F2{0.0};                            << 
159   G4double alphaConst{0.0};                    << 
160   G4double bEnergy{0.0};                       << 
161   G4double u{0.0};                             << 
162   G4double v{0.0};                             << 
163   G4double wc{0.0};                            << 
164                                                << 
165   G4double slaterEffectiveCharge[3] = {0.0};      155   G4double slaterEffectiveCharge[3] = {0.0};
166   G4double sCoefficient[3] = {0.0};               156   G4double sCoefficient[3] = {0.0};
167   G4double fTemp[5] = {0.0};                      157   G4double fTemp[5] = {0.0};
168                                                   158 
169   G4int idx{-1};                                  159   G4int idx{-1};
170   G4int verbose{0};                               160   G4int verbose{0};
171                                                   161 
172   G4bool isInitialised{false};                 << 
173   G4bool isIon{false};                            162   G4bool isIon{false};
174   G4bool isFirst{false};                          163   G4bool isFirst{false};
175   G4bool isHelium{false};                         164   G4bool isHelium{false};
176   G4bool statCode{false};                         165   G4bool statCode{false};
177   G4bool useDNAWaterStructure{true};              166   G4bool useDNAWaterStructure{true};
178                                                   167 
179   // energy levels of water molecule              168   // energy levels of water molecule  
180   G4DNAWaterIonisationStructure waterStructure    169   G4DNAWaterIonisationStructure waterStructure;
181 };                                                170 };
182                                                   171 
183 //....oooOO0OOooo........oooOO0OOooo........oo    172 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
184                                                   173 
185 #endif                                            174 #endif
186                                                   175