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.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/standard/include/G4PAIySection.hh (Version 11.3.0) and /processes/electromagnetic/standard/include/G4PAIySection.hh (Version 11.2.1)


  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 // G4PAIySection.hh -- header file                 26 // G4PAIySection.hh -- header file
 27 //                                                 27 //
 28 //                                                 28 //
 29 // Preparation of ionizing collision cross sec     29 // Preparation of ionizing collision cross section according to Photo Absorption 
 30 // Ionization (PAI) model for simulation of io     30 // Ionization (PAI) model for simulation of ionization energy losses in very thin
 31 // absorbers. Author: Vladimir.Grichine@cern.c     31 // absorbers. Author: Vladimir.Grichine@cern.ch
 32 //                                                 32 //
 33 // History:                                        33 // History:
 34 //                                                 34 //
 35 // 01.10.07, V.Ivanchenko create using V.Grich     35 // 01.10.07, V.Ivanchenko create using V.Grichine G4PAIxSection class
 36 // 21.11.10, V.Grichine   fVerbose and SetVerb     36 // 21.11.10, V.Grichine   fVerbose and SetVerbose added
 37 // 28.10.11, V.Ivanchenko Migration of excepti     37 // 28.10.11, V.Ivanchenko Migration of exceptions to the new design 
 38                                                    38 
 39 #ifndef G4PAIYSECTION_HH                           39 #ifndef G4PAIYSECTION_HH
 40 #define G4PAIYSECTION_HH                           40 #define G4PAIYSECTION_HH
 41                                                    41 
 42 #include "G4ios.hh"                                42 #include "G4ios.hh"
 43 #include "globals.hh"                              43 #include "globals.hh"
 44 #include "Randomize.hh"                            44 #include "Randomize.hh"
 45                                                    45 
 46 #include "G4SandiaTable.hh"                        46 #include "G4SandiaTable.hh"
 47                                                    47 
 48 class G4PAIySection                                48 class G4PAIySection
 49 {                                                  49 {
 50 public:                                            50 public:
 51                                                    51 
 52   explicit G4PAIySection();                        52   explicit G4PAIySection();
 53                                                    53           
 54   ~G4PAIySection() = default;                      54   ~G4PAIySection() = default;
 55                                                    55 
 56   void Initialize(const G4Material* material,      56   void Initialize(const G4Material* material, G4double maxEnergyTransfer, 
 57                   G4double betaGammaSq, G4Sand     57                   G4double betaGammaSq, G4SandiaTable*);
 58                                                    58 
 59   void ComputeLowEnergyCof(const G4Material* m     59   void ComputeLowEnergyCof(const G4Material* material);
 60                                                    60 
 61   void InitPAI();                                  61   void InitPAI();
 62                                                    62 
 63   void NormShift( G4double betaGammaSq );          63   void NormShift( G4double betaGammaSq );
 64                                                    64   
 65   void SplainPAI( G4double betaGammaSq );          65   void SplainPAI( G4double betaGammaSq );
 66                                                    66                     
 67   // Physical methods                              67   // Physical methods
 68   G4double RutherfordIntegral( G4int intervalN     68   G4double RutherfordIntegral( G4int intervalNumber,
 69                                G4double limitL     69                                G4double limitLow,
 70                                G4double limitH     70                                G4double limitHigh     );
 71                                                    71 
 72   G4double ImPartDielectricConst( G4int interv     72   G4double ImPartDielectricConst( G4int intervalNumber,
 73                                   G4double ene     73                                   G4double energy        );
 74                                                    74 
 75   G4double RePartDielectricConst(G4double ener     75   G4double RePartDielectricConst(G4double energy);
 76                                                    76 
 77   G4double DifPAIySection( G4int intervalNumbe     77   G4double DifPAIySection( G4int intervalNumber,
 78                            G4double betaGammaS     78                            G4double betaGammaSq    );
 79                                                    79 
 80   G4double PAIdNdxCerenkov( G4int intervalNumb     80   G4double PAIdNdxCerenkov( G4int intervalNumber,
 81                             G4double betaGamma     81                             G4double betaGammaSq    );
 82                                                    82 
 83   G4double PAIdNdxPlasmon( G4int intervalNumbe     83   G4double PAIdNdxPlasmon( G4int intervalNumber,
 84                            G4double betaGammaS     84                            G4double betaGammaSq    );
 85                                                    85 
 86   void     IntegralPAIySection();                  86   void     IntegralPAIySection();
 87   void     IntegralCerenkov();                     87   void     IntegralCerenkov();
 88   void     IntegralPlasmon();                      88   void     IntegralPlasmon();
 89                                                    89 
 90   G4double SumOverInterval(G4int intervalNumbe     90   G4double SumOverInterval(G4int intervalNumber);
 91   G4double SumOverIntervaldEdx(G4int intervalN     91   G4double SumOverIntervaldEdx(G4int intervalNumber);
 92   G4double SumOverInterCerenkov(G4int interval     92   G4double SumOverInterCerenkov(G4int intervalNumber);
 93   G4double SumOverInterPlasmon(G4int intervalN     93   G4double SumOverInterPlasmon(G4int intervalNumber);
 94                                                    94 
 95   G4double SumOverBorder( G4int intervalNumber     95   G4double SumOverBorder( G4int intervalNumber,
 96                           G4double energy          96                           G4double energy          );
 97   G4double SumOverBorderdEdx( G4int intervalNu     97   G4double SumOverBorderdEdx( G4int intervalNumber,
 98                               G4double energy      98                               G4double energy          );
 99   G4double SumOverBordCerenkov( G4int interval     99   G4double SumOverBordCerenkov( G4int intervalNumber,
100                                 G4double energ    100                                 G4double energy          );
101   G4double SumOverBordPlasmon( G4int intervalN    101   G4double SumOverBordPlasmon( G4int intervalNumber,
102                                G4double energy    102                                G4double energy          );
103                                                   103 
104   G4double GetStepEnergyLoss( G4double step );    104   G4double GetStepEnergyLoss( G4double step );
105   G4double GetStepCerenkovLoss( G4double step     105   G4double GetStepCerenkovLoss( G4double step );
106   G4double GetStepPlasmonLoss( G4double step )    106   G4double GetStepPlasmonLoss( G4double step );
107                                                   107 
108   G4double GetLorentzFactor(G4int j) const;       108   G4double GetLorentzFactor(G4int j) const;
109                                                   109          
110   // Inline access functions                      110   // Inline access functions
111                                                   111 
112   inline G4int GetNumberOfGammas() const { ret    112   inline G4int GetNumberOfGammas() const { return fNumberOfGammas; }
113                                                   113           
114   inline G4int GetSplineSize() const { return     114   inline G4int GetSplineSize() const { return fSplineNumber; }
115                                                   115           
116   inline G4int GetIntervalNumber() const { ret    116   inline G4int GetIntervalNumber() const { return fIntervalNumber; }
117                                                   117 
118   inline G4double GetEnergyInterval(G4int i){     118   inline G4double GetEnergyInterval(G4int i){ return fEnergyInterval[i]; } 
119                                                   119 
120   inline G4double GetDifPAIySection(G4int i){     120   inline G4double GetDifPAIySection(G4int i){ return fDifPAIySection[i]; } 
121   inline G4double GetPAIdNdxCrenkov(G4int i){     121   inline G4double GetPAIdNdxCrenkov(G4int i){ return fdNdxCerenkov[i]; } 
122   inline G4double GetPAIdNdxPlasmon(G4int i){     122   inline G4double GetPAIdNdxPlasmon(G4int i){ return fdNdxPlasmon[i]; } 
123                                                   123           
124   inline G4double GetMeanEnergyLoss() const {r    124   inline G4double GetMeanEnergyLoss() const {return fIntegralPAIySection[0]; }
125   inline G4double GetMeanCerenkovLoss() const     125   inline G4double GetMeanCerenkovLoss() const {return fIntegralCerenkov[0]; }
126   inline G4double GetMeanPlasmonLoss() const {    126   inline G4double GetMeanPlasmonLoss() const {return fIntegralPlasmon[0]; }
127                                                   127 
128   inline G4double GetNormalizationCof() const     128   inline G4double GetNormalizationCof() const { return fNormalizationCof; }
129                                                   129           
130   inline G4double GetPAItable(G4int i,G4int j)    130   inline G4double GetPAItable(G4int i,G4int j) const;
131                                                   131                     
132   inline G4double GetSplineEnergy(G4int i) con    132   inline G4double GetSplineEnergy(G4int i) const;
133                                                   133           
134   inline G4double GetIntegralPAIySection(G4int    134   inline G4double GetIntegralPAIySection(G4int i) const;
135   inline G4double GetIntegralPAIdEdx(G4int i)     135   inline G4double GetIntegralPAIdEdx(G4int i) const;
136   inline G4double GetIntegralCerenkov(G4int i)    136   inline G4double GetIntegralCerenkov(G4int i) const;
137   inline G4double GetIntegralPlasmon(G4int i)     137   inline G4double GetIntegralPlasmon(G4int i) const;
138                                                   138 
139   inline void SetVerbose(G4int v) { fVerbose =    139   inline void SetVerbose(G4int v) { fVerbose = v; };
140                                                   140 
141   G4PAIySection & operator=(const G4PAIySectio    141   G4PAIySection & operator=(const G4PAIySection &right) = delete;
142   G4PAIySection(const G4PAIySection&) = delete    142   G4PAIySection(const G4PAIySection&) = delete;
143                                                   143 
144 private :                                         144 private :
145                                                   145 
146   void CallError(G4int i, const G4String& meth    146   void CallError(G4int i, const G4String& methodName) const;
147                                                   147 
148   // Local class constants                        148   // Local class constants
149                                                   149  
150   static const G4double fDelta; // energy shif    150   static const G4double fDelta; // energy shift from interval border = 0.001
151   static const G4double fError; // error in li    151   static const G4double fError; // error in lin-log approximation = 0.005
152                                                   152 
153   static G4int fNumberOfGammas; // = 111;         153   static G4int fNumberOfGammas; // = 111;
154   static const G4double fLorentzFactor[112];      154   static const G4double fLorentzFactor[112];  //  static gamma array
155                                                   155 
156   static                                          156   static
157   const G4int fRefGammaNumber; // The number o    157   const G4int fRefGammaNumber; // The number of gamma for creation of spline (15)
158                                                   158 
159   G4int    fIntervalNumber ;   //  The number     159   G4int    fIntervalNumber ;   //  The number of energy intervals
160   G4double fNormalizationCof;  // Normalizatio    160   G4double fNormalizationCof;  // Normalization cof for PhotoAbsorptionXsection
161                                                   161 
162   G4double betaBohr;                              162   G4double betaBohr;
163   G4double betaBohr4;                             163   G4double betaBohr4;
164                                                   164 
165   G4double fDensity;            // Current den    165   G4double fDensity;            // Current density
166   G4double fElectronDensity;    // Current ele    166   G4double fElectronDensity;    // Current electron (number) density
167   G4double fLowEnergyCof;       // Correction     167   G4double fLowEnergyCof;       // Correction cof for low energy region
168   G4int    fSplineNumber;       // Current siz    168   G4int    fSplineNumber;       // Current size of spline
169   G4int    fVerbose;            // verbose fla    169   G4int    fVerbose;            // verbose flag
170                                                   170 
171   G4SandiaTable*  fSandia;                        171   G4SandiaTable*  fSandia;
172                                                   172 
173   G4DataVector fEnergyInterval;                   173   G4DataVector fEnergyInterval;
174   G4DataVector fA1;                               174   G4DataVector fA1; 
175   G4DataVector fA2;                               175   G4DataVector fA2;
176   G4DataVector fA3;                               176   G4DataVector fA3; 
177   G4DataVector fA4;                               177   G4DataVector fA4;
178                                                   178 
179   static                                          179   static
180   const G4int  fMaxSplineSize; // Max size of     180   const G4int  fMaxSplineSize; // Max size of output splain arrays = 500
181                                                   181 
182   G4DataVector fSplineEnergy;          // ener    182   G4DataVector fSplineEnergy;          // energy points of splain
183   G4DataVector fRePartDielectricConst; // Real    183   G4DataVector fRePartDielectricConst; // Real part of dielectric const
184   G4DataVector fImPartDielectricConst; // Imag    184   G4DataVector fImPartDielectricConst; // Imaginary part of dielectric const
185   G4DataVector fIntegralTerm;          // Inte    185   G4DataVector fIntegralTerm;          // Integral term in PAI cross section
186   G4DataVector fDifPAIySection;        // Diff    186   G4DataVector fDifPAIySection;        // Differential PAI cross section
187   G4DataVector fdNdxCerenkov;          // dNdx    187   G4DataVector fdNdxCerenkov;          // dNdx of Cerenkov collisions
188   G4DataVector fdNdxPlasmon;           // dNdx    188   G4DataVector fdNdxPlasmon;           // dNdx of Plasmon collisions
189                                                   189 
190   G4DataVector fIntegralPAIySection;   // Inte    190   G4DataVector fIntegralPAIySection;   // Integral PAI cross section  ?
191   G4DataVector fIntegralPAIdEdx;       // Inte    191   G4DataVector fIntegralPAIdEdx;       // Integral PAI dEdx  ?
192   G4DataVector fIntegralCerenkov;      // Inte    192   G4DataVector fIntegralCerenkov;      // Integral Cerenkov N>omega  ?
193   G4DataVector fIntegralPlasmon;       // Inte    193   G4DataVector fIntegralPlasmon;       // Integral Plasmon N>omega  ?
194                                                   194 
195   G4double     fPAItable[500][112];    // Outp    195   G4double     fPAItable[500][112];    // Output array
196 };                                                196 };
197                                                   197 
198 inline G4double G4PAIySection::GetPAItable(G4i    198 inline G4double G4PAIySection::GetPAItable(G4int i, G4int j) const
199 {                                                 199 {
200    return fPAItable[i][j];                        200    return fPAItable[i][j];
201 }                                                 201 }
202                                                   202 
203 inline G4double G4PAIySection::GetSplineEnergy    203 inline G4double G4PAIySection::GetSplineEnergy(G4int i) const 
204 {                                                 204 {
205   if(i < 1 || i > fSplineNumber) { CallError(i    205   if(i < 1 || i > fSplineNumber) { CallError(i, "GetSplineEnergy"); }
206   return fSplineEnergy[i];                        206   return fSplineEnergy[i];
207 }                                                 207 }
208                                                   208   
209 inline G4double G4PAIySection::GetIntegralPAIy    209 inline G4double G4PAIySection::GetIntegralPAIySection(G4int i) const 
210 {                                                 210 {
211   if(i < 1 || i > fSplineNumber) { CallError(i    211   if(i < 1 || i > fSplineNumber) { CallError(i, "GetIntegralPAIySection"); }
212   return fIntegralPAIySection[i];                 212   return fIntegralPAIySection[i];
213 }                                                 213 }
214                                                   214 
215 inline G4double G4PAIySection::GetIntegralPAId    215 inline G4double G4PAIySection::GetIntegralPAIdEdx(G4int i) const 
216 {                                                 216 {
217   if(i < 1 || i > fSplineNumber) { CallError(i    217   if(i < 1 || i > fSplineNumber) { CallError(i, "GetIntegralPAIdEdx"); }
218   return fIntegralPAIdEdx[i];                     218   return fIntegralPAIdEdx[i];
219 }                                                 219 }
220                                                   220 
221 inline G4double G4PAIySection::GetIntegralCere    221 inline G4double G4PAIySection::GetIntegralCerenkov(G4int i) const 
222 {                                                 222 {
223   if(i < 1 || i > fSplineNumber) { CallError(i    223   if(i < 1 || i > fSplineNumber) { CallError(i, "GetIntegralCerenkov"); }
224   return fIntegralCerenkov[i];                    224   return fIntegralCerenkov[i];
225 }                                                 225 }
226                                                   226 
227 inline G4double G4PAIySection::GetIntegralPlas    227 inline G4double G4PAIySection::GetIntegralPlasmon(G4int i) const 
228 {                                                 228 {
229   if(i < 1 || i > fSplineNumber) { CallError(i    229   if(i < 1 || i > fSplineNumber) { CallError(i, "GetIntegralPlasmon"); }
230   return fIntegralPlasmon[i];                     230   return fIntegralPlasmon[i];
231 }                                                 231 }
232                                                   232 
233 #endif                                            233 #endif   
234                                                   234 
235 // -----------------   end of G4PAIySection he    235 // -----------------   end of G4PAIySection header file    -------------------
236                                                   236