Geant4 Cross Reference

Cross-Referencing   Geant4
Geant4/processes/electromagnetic/utils/include/G4VEmProcess.hh

Version: [ ReleaseNotes ] [ 1.0 ] [ 1.1 ] [ 2.0 ] [ 3.0 ] [ 3.1 ] [ 3.2 ] [ 4.0 ] [ 4.0.p1 ] [ 4.0.p2 ] [ 4.1 ] [ 4.1.p1 ] [ 5.0 ] [ 5.0.p1 ] [ 5.1 ] [ 5.1.p1 ] [ 5.2 ] [ 5.2.p1 ] [ 5.2.p2 ] [ 6.0 ] [ 6.0.p1 ] [ 6.1 ] [ 6.2 ] [ 6.2.p1 ] [ 6.2.p2 ] [ 7.0 ] [ 7.0.p1 ] [ 7.1 ] [ 7.1.p1 ] [ 8.0 ] [ 8.0.p1 ] [ 8.1 ] [ 8.1.p1 ] [ 8.1.p2 ] [ 8.2 ] [ 8.2.p1 ] [ 8.3 ] [ 8.3.p1 ] [ 8.3.p2 ] [ 9.0 ] [ 9.0.p1 ] [ 9.0.p2 ] [ 9.1 ] [ 9.1.p1 ] [ 9.1.p2 ] [ 9.1.p3 ] [ 9.2 ] [ 9.2.p1 ] [ 9.2.p2 ] [ 9.2.p3 ] [ 9.2.p4 ] [ 9.3 ] [ 9.3.p1 ] [ 9.3.p2 ] [ 9.4 ] [ 9.4.p1 ] [ 9.4.p2 ] [ 9.4.p3 ] [ 9.4.p4 ] [ 9.5 ] [ 9.5.p1 ] [ 9.5.p2 ] [ 9.6 ] [ 9.6.p1 ] [ 9.6.p2 ] [ 9.6.p3 ] [ 9.6.p4 ] [ 10.0 ] [ 10.0.p1 ] [ 10.0.p2 ] [ 10.0.p3 ] [ 10.0.p4 ] [ 10.1 ] [ 10.1.p1 ] [ 10.1.p2 ] [ 10.1.p3 ] [ 10.2 ] [ 10.2.p1 ] [ 10.2.p2 ] [ 10.2.p3 ] [ 10.3 ] [ 10.3.p1 ] [ 10.3.p2 ] [ 10.3.p3 ] [ 10.4 ] [ 10.4.p1 ] [ 10.4.p2 ] [ 10.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/utils/include/G4VEmProcess.hh (Version 11.3.0) and /processes/electromagnetic/utils/include/G4VEmProcess.hh (Version 9.6)


  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 // $Id$
                                                   >>  27 //
 26 // -------------------------------------------     28 // -------------------------------------------------------------------
 27 //                                                 29 //
 28 // GEANT4 Class header file                        30 // GEANT4 Class header file
 29 //                                                 31 //
 30 //                                                 32 //
 31 // File name:     G4VEmProcess                     33 // File name:     G4VEmProcess
 32 //                                                 34 //
 33 // Author:        Vladimir Ivanchenko              35 // Author:        Vladimir Ivanchenko
 34 //                                                 36 //
 35 // Creation date: 01.10.2003                       37 // Creation date: 01.10.2003
 36 //                                                 38 //
 37 // Modifications: Vladimir Ivanchenko          <<  39 // Modifications:
                                                   >>  40 // 30-06-04 make destructor virtual (V.Ivanchenko)
                                                   >>  41 // 09-08-04 optimise integral option (V.Ivanchenko)
                                                   >>  42 // 11-08-04 add protected methods to access cuts (V.Ivanchenko)
                                                   >>  43 // 09-09-04 Bug fix for the integral mode with 2 peaks (V.Ivanchneko)
                                                   >>  44 // 16-09-04 Add flag for LambdaTable and method RecalculateLambda (VI)
                                                   >>  45 // 08-11-04 Migration to new interface of Store/Retrieve tables (V.Ivantchenko)
                                                   >>  46 // 08-04-05 Major optimisation of internal interfaces (V.Ivantchenko)
                                                   >>  47 // 18-04-05 Use G4ParticleChangeForGamma (V.Ivantchenko)
                                                   >>  48 // 09-05-05 Fix problem in logic when path boundary between materials (VI)
                                                   >>  49 // 11-01-06 add A to parameters of ComputeCrossSectionPerAtom (VI)
                                                   >>  50 // 01-02-06 put default value A=0. to keep compatibility with v5.2 (mma)
                                                   >>  51 // 13-05-06 Add method to access model by index (V.Ivanchenko)
                                                   >>  52 // 12-09-06 add SetModel() (mma)
                                                   >>  53 // 25-09-07 More accurate handling zero xsect in 
                                                   >>  54 //          PostStepGetPhysicalInteractionLength (V.Ivanchenko)
                                                   >>  55 // 27-10-07 Virtual functions moved to source (V.Ivanchenko)
                                                   >>  56 // 15-07-08 Reorder class members for further multi-thread development (VI)
                                                   >>  57 // 17-02-10 Added pointer currentParticle (VI)
 38 //                                                 58 //
 39 // Class Description:                              59 // Class Description:
 40 //                                                 60 //
 41 // It is the base class - EM discrete and rest <<  61 // It is the unified Discrete process
 42                                                    62 
 43 // -------------------------------------------     63 // -------------------------------------------------------------------
 44 //                                                 64 //
 45                                                    65 
 46 #ifndef G4VEmProcess_h                             66 #ifndef G4VEmProcess_h
 47 #define G4VEmProcess_h 1                           67 #define G4VEmProcess_h 1
 48                                                    68 
 49 #include <CLHEP/Units/SystemOfUnits.h>             69 #include <CLHEP/Units/SystemOfUnits.h>
 50                                                    70 
 51 #include "G4VDiscreteProcess.hh"                   71 #include "G4VDiscreteProcess.hh"
 52 #include "globals.hh"                              72 #include "globals.hh"
 53 #include "G4Material.hh"                           73 #include "G4Material.hh"
 54 #include "G4MaterialCutsCouple.hh"                 74 #include "G4MaterialCutsCouple.hh"
 55 #include "G4Track.hh"                              75 #include "G4Track.hh"
                                                   >>  76 #include "G4EmModelManager.hh"
 56 #include "G4UnitsTable.hh"                         77 #include "G4UnitsTable.hh"
 57 #include "G4ParticleDefinition.hh"                 78 #include "G4ParticleDefinition.hh"
 58 #include "G4ParticleChangeForGamma.hh"             79 #include "G4ParticleChangeForGamma.hh"
 59 #include "G4EmParameters.hh"                   << 
 60 #include "G4EmDataHandler.hh"                  << 
 61 #include "G4EmTableType.hh"                    << 
 62 #include "G4EmModelManager.hh"                 << 
 63 #include "G4EmSecondaryParticleType.hh"        << 
 64                                                    80 
 65 class G4Step;                                      81 class G4Step;
 66 class G4VEmModel;                                  82 class G4VEmModel;
 67 class G4DataVector;                                83 class G4DataVector;
 68 class G4VParticleChange;                           84 class G4VParticleChange;
 69 class G4PhysicsTable;                              85 class G4PhysicsTable;
 70 class G4PhysicsVector;                             86 class G4PhysicsVector;
 71 class G4EmBiasingManager;                          87 class G4EmBiasingManager;
 72 class G4LossTableManager;                      << 
 73                                                    88 
 74 //....oooOO0OOooo........oooOO0OOooo........oo     89 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
 75                                                    90 
 76 class G4VEmProcess : public G4VDiscreteProcess     91 class G4VEmProcess : public G4VDiscreteProcess
 77 {                                                  92 {
 78 public:                                            93 public:
 79                                                    94 
 80   G4VEmProcess(const G4String& name, G4Process <<  95   G4VEmProcess(const G4String& name,
                                                   >>  96          G4ProcessType type = fElectromagnetic);
 81                                                    97 
 82   ~G4VEmProcess() override;                    <<  98   virtual ~G4VEmProcess();
 83                                                    99 
 84   //------------------------------------------    100   //------------------------------------------------------------------------
 85   // Virtual methods to be implemented in conc    101   // Virtual methods to be implemented in concrete processes
 86   //------------------------------------------    102   //------------------------------------------------------------------------
 87                                                   103 
 88   void ProcessDescription(std::ostream& outFil << 104   virtual G4bool IsApplicable(const G4ParticleDefinition& p) = 0;
 89                                                   105 
 90 protected:                                     << 106   virtual void PrintInfo() = 0;
 91                                                   107 
 92   virtual void StreamProcessInfo(std::ostream& << 108 protected:
 93                                                   109 
 94   virtual void InitialiseProcess(const G4Parti    110   virtual void InitialiseProcess(const G4ParticleDefinition*) = 0;
 95                                                   111 
 96   //------------------------------------------    112   //------------------------------------------------------------------------
                                                   >> 113   // Method with standard implementation; may be overwritten if needed
                                                   >> 114   //------------------------------------------------------------------------
                                                   >> 115 
                                                   >> 116   virtual G4double MinPrimaryEnergy(const G4ParticleDefinition*,
                                                   >> 117                                     const G4Material*);
                                                   >> 118 
                                                   >> 119   //------------------------------------------------------------------------
 97   // Implementation of virtual methods common     120   // Implementation of virtual methods common to all Discrete processes 
 98   //------------------------------------------    121   //------------------------------------------------------------------------
 99                                                   122 
100 public:                                           123 public:
101                                                   124 
102   // Initialise for build of tables               125   // Initialise for build of tables
103   void PreparePhysicsTable(const G4ParticleDef << 126   void PreparePhysicsTable(const G4ParticleDefinition&);
104                                                   127 
105   // Build physics table during initialisation    128   // Build physics table during initialisation
106   void BuildPhysicsTable(const G4ParticleDefin << 129   void BuildPhysicsTable(const G4ParticleDefinition&);
                                                   >> 130 
                                                   >> 131   void PrintInfoDefinition();
107                                                   132 
108   // Called before tracking of each new G4Trac    133   // Called before tracking of each new G4Track
109   void StartTracking(G4Track*) override;       << 134   void StartTracking(G4Track*);
110                                                   135 
111   // implementation of virtual method, specifi    136   // implementation of virtual method, specific for G4VEmProcess
112   G4double PostStepGetPhysicalInteractionLengt    137   G4double PostStepGetPhysicalInteractionLength(
113                              const G4Track& tr    138                              const G4Track& track,
114                              G4double   previo    139                              G4double   previousStepSize,
115                              G4ForceCondition* << 140                              G4ForceCondition* condition);
116                                                   141 
117   // implementation of virtual method, specifi    142   // implementation of virtual method, specific for G4VEmProcess
118   G4VParticleChange* PostStepDoIt(const G4Trac << 143   G4VParticleChange* PostStepDoIt(const G4Track&, const G4Step&);
119                                                   144 
120   // Store PhysicsTable in a file.                145   // Store PhysicsTable in a file.
121   // Return false in case of failure at I/O       146   // Return false in case of failure at I/O
122   G4bool StorePhysicsTable(const G4ParticleDef    147   G4bool StorePhysicsTable(const G4ParticleDefinition*,
123                            const G4String& dir << 148          const G4String& directory,
124                            G4bool ascii = fals << 149          G4bool ascii = false);
125                                                   150 
126   // Retrieve Physics from a file.                151   // Retrieve Physics from a file.
127   // (return true if the Physics Table can be     152   // (return true if the Physics Table can be build by using file)
128   // (return false if the process has no funct    153   // (return false if the process has no functionality or in case of failure)
129   // File name should is constructed as proces    154   // File name should is constructed as processName+particleName and the
130   // should be placed under the directory spec << 155   // should be placed under the directory specifed by the argument.
131   G4bool RetrievePhysicsTable(const G4Particle    156   G4bool RetrievePhysicsTable(const G4ParticleDefinition*,
132                               const G4String&  << 157             const G4String& directory,
133                               G4bool ascii) ov << 158             G4bool ascii);
134                                                << 
135   // allowing check process name               << 
136   virtual G4VEmProcess* GetEmProcess(const G4S << 
137                                                   159 
138   //------------------------------------------    160   //------------------------------------------------------------------------
139   // Specific methods for Discrete EM post ste    161   // Specific methods for Discrete EM post step simulation 
140   //------------------------------------------    162   //------------------------------------------------------------------------
141                                                   163 
142   // The main method to access cross section p << 164   // It returns the cross section per volume for energy/ material
143   inline G4double GetLambda(G4double kinEnergy << 165   G4double CrossSectionPerVolume(G4double kineticEnergy,
144                             const G4MaterialCu << 166          const G4MaterialCutsCouple* couple);
145                             G4double logKinEne << 
146                                                << 
147   // It returns the cross section per volume f << 
148   G4double GetCrossSection(const G4double kinE << 
149                            const G4MaterialCut << 
150                                                   167 
151   // It returns the cross section of the proce    168   // It returns the cross section of the process per atom
152   G4double ComputeCrossSectionPerAtom(G4double    169   G4double ComputeCrossSectionPerAtom(G4double kineticEnergy, 
153                                       G4double << 170               G4double Z, G4double A=0., 
154                                       G4double << 171               G4double cut=0.0);
155                                                   172 
156   inline G4double MeanFreePath(const G4Track&  << 173   G4double MeanFreePath(const G4Track& track);
                                                   >> 174 
                                                   >> 175   // It returns cross section per volume
                                                   >> 176   inline G4double GetLambda(G4double& kinEnergy, 
                                                   >> 177           const G4MaterialCutsCouple* couple);
157                                                   178 
158   //------------------------------------------    179   //------------------------------------------------------------------------
159   // Specific methods to build and access Phys    180   // Specific methods to build and access Physics Tables
160   //------------------------------------------    181   //------------------------------------------------------------------------
161                                                   182 
162   // Binning for lambda table                     183   // Binning for lambda table
163   void SetLambdaBinning(G4int nbins);          << 184   inline void SetLambdaBinning(G4int nbins);
                                                   >> 185   inline G4int LambdaBinning() const;
164                                                   186 
165   // Min kinetic energy for tables                187   // Min kinetic energy for tables
166   void SetMinKinEnergy(G4double e);               188   void SetMinKinEnergy(G4double e);
167                                                << 189   inline G4double MinKinEnergy() const;
168   // Min kinetic energy for high energy table  << 
169   void SetMinKinEnergyPrim(G4double e);        << 
170                                                   190 
171   // Max kinetic energy for tables                191   // Max kinetic energy for tables
172   void SetMaxKinEnergy(G4double e);               192   void SetMaxKinEnergy(G4double e);
                                                   >> 193   inline G4double MaxKinEnergy() const;
                                                   >> 194 
                                                   >> 195   // Min kinetic energy for high energy table
                                                   >> 196   inline void SetMinKinEnergyPrim(G4double e);
173                                                   197 
174   // Cross section table pointers              << 198   // Cross section table pointer
175   inline G4PhysicsTable* LambdaTable() const;  << 199   inline const G4PhysicsTable* LambdaTable() const;
176   inline G4PhysicsTable* LambdaTablePrim() con << 
177   inline void SetLambdaTable(G4PhysicsTable*); << 
178   inline void SetLambdaTablePrim(G4PhysicsTabl << 
179                                                << 
180   // Integral method type and peak positions   << 
181   inline std::vector<G4double>* EnergyOfCrossS << 
182   inline void SetEnergyOfCrossSectionMax(std:: << 
183   inline G4CrossSectionType CrossSectionType() << 
184   inline void SetCrossSectionType(G4CrossSecti << 
185                                                   200 
186   //------------------------------------------    201   //------------------------------------------------------------------------
187   // Define and access particle type              202   // Define and access particle type 
188   //------------------------------------------    203   //------------------------------------------------------------------------
189                                                   204 
190   inline const G4ParticleDefinition* Particle(    205   inline const G4ParticleDefinition* Particle() const;
191   inline const G4ParticleDefinition* Secondary    206   inline const G4ParticleDefinition* SecondaryParticle() const;
192                                                   207 
193 protected:                                     << 
194                                                << 
195   //------------------------------------------    208   //------------------------------------------------------------------------
196   // Specific methods to set, access, modify m    209   // Specific methods to set, access, modify models and basic parameters
197   //------------------------------------------    210   //------------------------------------------------------------------------
198                                                << 211 
                                                   >> 212 protected:
199   // Select model in run time                     213   // Select model in run time
200   inline G4VEmModel* SelectModel(G4double kinE << 214   inline G4VEmModel* SelectModel(G4double& kinEnergy, size_t index); 
201                                                   215 
202 public:                                           216 public:
203                                                << 217   // Select model by energy and region index
204   // Select model by energy and couple index   << 
205   inline G4VEmModel* SelectModelForMaterial(G4    218   inline G4VEmModel* SelectModelForMaterial(G4double kinEnergy, 
206                                             st << 219               size_t& idxRegion) const;
207                                                   220    
208   // Add model for region, smaller value of or    221   // Add model for region, smaller value of order defines which
209   // model will be selected for a given energy    222   // model will be selected for a given energy interval  
210   void AddEmModel(G4int, G4VEmModel*, const G4 << 223   void AddEmModel(G4int, G4VEmModel*, const G4Region* region = 0);
211                                                   224 
212   // Assign a model to a process local list, t << 225   // Assign a model to a process - obsolete will be removed
213   // the derived process should execute AddEmM << 226   void SetModel(G4VEmModel*, G4int index = 1);
214   void SetEmModel(G4VEmModel*, G4int index = 0 << 227   
                                                   >> 228   // return the assigned model - obsolete will be removed
                                                   >> 229   G4VEmModel* Model(G4int index = 1);
215                                                   230 
216   inline G4int NumberOfModels() const;         << 231   // return the assigned model
217                                                << 232   G4VEmModel* EmModel(G4int index = 1);
218   // return a model from the local list        << 
219   inline G4VEmModel* EmModel(std::size_t index << 
220                                                   233 
221   // Access to active model                    << 234   // Assign a model to a process
222   inline const G4VEmModel* GetCurrentModel() c << 235   void SetEmModel(G4VEmModel*, G4int index = 1);
                                                   >> 236       
                                                   >> 237   // Define new energy range for the model identified by the name
                                                   >> 238   void UpdateEmModel(const G4String&, G4double, G4double);
223                                                   239 
224   // Access to models                             240   // Access to models
225   inline G4VEmModel* GetModelByIndex(G4int idx << 241   G4VEmModel* GetModelByIndex(G4int idx = 0, G4bool ver = false);
226                                                   242 
227   // Access to the current G4Element           << 243   // access atom on which interaction happens
228   const G4Element* GetCurrentElement() const;     244   const G4Element* GetCurrentElement() const;
229                                                   245 
230   // Biasing parameters                           246   // Biasing parameters
231   void SetCrossSectionBiasingFactor(G4double f    247   void SetCrossSectionBiasingFactor(G4double f, G4bool flag = true);
232   inline G4double CrossSectionBiasingFactor()     248   inline G4double CrossSectionBiasingFactor() const;
233                                                   249 
234   // Activate forced interaction                  250   // Activate forced interaction
235   void ActivateForcedInteraction(G4double leng    251   void ActivateForcedInteraction(G4double length = 0.0, 
236                                  const G4Strin << 252          const G4String& r = "",
237                                  G4bool flag = << 253          G4bool flag = true);
238                                                   254 
239   void ActivateSecondaryBiasing(const G4String    255   void ActivateSecondaryBiasing(const G4String& region, G4double factor,
240                                 G4double energ << 256           G4double energyLimit);
241                                                << 257           
242   inline void SetEmMasterProcess(const G4VEmPr << 
243                                                   258 
244   inline void SetBuildTableFlag(G4bool val);   << 259   // Single scattering parameters
245                                                << 260   inline void SetPolarAngleLimit(G4double a);
246   inline void CurrentSetup(const G4MaterialCut << 261   inline G4double PolarAngleLimit() const;
247                                                   262 
248   inline G4bool UseBaseMaterial() const;       << 263   inline void SetLambdaFactor(G4double val);
249                                                   264 
250   void BuildLambdaTable();                     << 265   inline void SetIntegral(G4bool val);
                                                   >> 266   inline G4bool IsIntegral() const;
251                                                   267 
252   void StreamInfo(std::ostream& outFile, const << 268   inline void SetApplyCuts(G4bool val);
253                   G4bool rst=false) const;     << 
254                                                   269 
255   // hide copy constructor and assignment oper << 270   inline void SetBuildTableFlag(G4bool val);
256   G4VEmProcess(G4VEmProcess &) = delete;       << 
257   G4VEmProcess & operator=(const G4VEmProcess  << 
258                                                   271 
259   //------------------------------------------    272   //------------------------------------------------------------------------
260   // Other generic methods                        273   // Other generic methods
261   //------------------------------------------    274   //------------------------------------------------------------------------
262                                                   275   
263 protected:                                        276 protected:
264                                                   277 
265   G4double GetMeanFreePath(const G4Track& trac    278   G4double GetMeanFreePath(const G4Track& track,
266                            G4double previousSt << 279          G4double previousStepSize,
267                            G4ForceCondition* c << 280          G4ForceCondition* condition);
268                                                   281 
269   G4PhysicsVector* LambdaPhysicsVector(const G    282   G4PhysicsVector* LambdaPhysicsVector(const G4MaterialCutsCouple*);
270                                                   283 
271   inline void DefineMaterial(const G4MaterialC << 284   inline G4double RecalculateLambda(G4double kinEnergy,
272                                                << 285             const G4MaterialCutsCouple* couple);
273   inline G4int LambdaBinning() const;          << 
274                                                << 
275   inline G4double MinKinEnergy() const;        << 
276                                                << 
277   inline G4double MaxKinEnergy() const;        << 
278                                                << 
279   // Single scattering parameters              << 
280   inline G4double PolarAngleLimit() const;     << 
281                                                   286 
282   inline G4ParticleChangeForGamma* GetParticle    287   inline G4ParticleChangeForGamma* GetParticleChange();
283                                                   288 
284   inline void SetParticle(const G4ParticleDefi    289   inline void SetParticle(const G4ParticleDefinition* p);
285                                                   290   
286   inline void SetSecondaryParticle(const G4Par    291   inline void SetSecondaryParticle(const G4ParticleDefinition* p);
287                                                   292 
288   inline std::size_t CurrentMaterialCutsCouple << 293   inline size_t CurrentMaterialCutsCoupleIndex() const;
289                                                << 
290   inline const G4MaterialCutsCouple* MaterialC << 
291                                                << 
292   inline G4bool ApplyCuts() const;             << 
293                                                   294 
294   inline G4double GetGammaEnergyCut();            295   inline G4double GetGammaEnergyCut();
295                                                   296 
296   inline G4double GetElectronEnergyCut();         297   inline G4double GetElectronEnergyCut();
297                                                   298 
298   inline void SetStartFromNullFlag(G4bool val)    299   inline void SetStartFromNullFlag(G4bool val);
299                                                   300 
300   inline void SetSplineFlag(G4bool val);          301   inline void SetSplineFlag(G4bool val);
301                                                   302 
302   const G4Element* GetTargetElement() const;   << 303 private:
303                                                << 
304   const G4Isotope* GetTargetIsotope() const;   << 
305                                                   304 
306   // these two methods assume that vectors are << 305   void Clear();
307   // and idx is within vector length           << 
308   inline G4int DensityIndex(G4int idx) const;  << 
309   inline G4double DensityFactor(G4int idx) con << 
310                                                   306 
311 private:                                       << 307   void BuildLambdaTable();
312                                                   308 
313   void PrintWarning(G4String tit, G4double val << 309   void FindLambdaMax();
314                                                   310 
315   void ComputeIntegralLambda(G4double kinEnerg << 311   inline void DefineMaterial(const G4MaterialCutsCouple* couple);
316                                                   312 
317   inline G4double LogEkin(const G4Track&);     << 313   inline void ComputeIntegralLambda(G4double kinEnergy);
318                                                   314 
319   inline G4double GetLambdaFromTable(G4double     315   inline G4double GetLambdaFromTable(G4double kinEnergy);
320                                                   316 
321   inline G4double GetLambdaFromTable(G4double  << 
322                                                << 
323   inline G4double GetLambdaFromTablePrim(G4dou    317   inline G4double GetLambdaFromTablePrim(G4double kinEnergy);
324                                                   318 
325   inline G4double GetLambdaFromTablePrim(G4dou << 
326                                                << 
327   inline G4double GetCurrentLambda(G4double ki    319   inline G4double GetCurrentLambda(G4double kinEnergy);
328                                                   320 
329   inline G4double GetCurrentLambda(G4double ki << 
330                                                << 
331   inline G4double ComputeCurrentLambda(G4doubl    321   inline G4double ComputeCurrentLambda(G4double kinEnergy);
332                                                   322 
333   // ======== pointers =========               << 323   // copy constructor and hide assignment operator
334                                                << 324   G4VEmProcess(G4VEmProcess &);
335   G4EmModelManager*            modelManager =  << 325   G4VEmProcess & operator=(const G4VEmProcess &right);
336   const G4ParticleDefinition*  particle = null << 326 
337   const G4ParticleDefinition*  currentParticle << 327   // ======== Parameters of the class fixed at construction =========
338   const G4ParticleDefinition*  theGamma = null << 328 
339   const G4ParticleDefinition*  theElectron = n << 329   G4EmModelManager*            modelManager;
340   const G4ParticleDefinition*  thePositron = n << 330   G4EmBiasingManager*          biasManager;
341   const G4ParticleDefinition*  secondaryPartic << 331   const G4ParticleDefinition*  theGamma;
342   const G4VEmProcess*          masterProc = nu << 332   const G4ParticleDefinition*  theElectron;
343   G4EmDataHandler*             theData = nullp << 333   const G4ParticleDefinition*  thePositron;
344   G4VEmModel*                  currentModel =  << 334   const G4ParticleDefinition*  secondaryParticle;
345   G4LossTableManager*          lManager = null << 335 
346   G4EmParameters*              theParameters = << 336   G4bool                       buildLambdaTable;
347   const G4Material*            baseMaterial =  << 337 
348                                                << 338   // ======== Parameters of the class fixed at initialisation =======
349   // ======== tables and vectors ========      << 339 
350   G4PhysicsTable*              theLambdaTable  << 340   std::vector<G4VEmModel*>     emModels;
351   G4PhysicsTable*              theLambdaTableP << 341   G4int                        numberOfModels;
352                                                << 342 
353   const std::vector<G4double>* theCuts = nullp << 343   // tables and vectors
354   const std::vector<G4double>* theCutsGamma =  << 344   G4PhysicsTable*              theLambdaTable;
355   const std::vector<G4double>* theCutsElectron << 345   G4PhysicsTable*              theLambdaTablePrim;
356   const std::vector<G4double>* theCutsPositron << 346   std::vector<G4double>        theEnergyOfCrossSectionMax;
357                                                << 347   std::vector<G4double>        theCrossSectionMax;
358 protected:                                     << 348 
359                                                << 349   const std::vector<G4double>* theCuts;
360   // ======== pointers =========               << 350   const std::vector<G4double>* theCutsGamma;
361                                                << 351   const std::vector<G4double>* theCutsElectron;
362   const G4MaterialCutsCouple*  currentCouple = << 352   const std::vector<G4double>* theCutsPositron;
363   const G4Material*            currentMaterial << 353   const std::vector<G4double>* theDensityFactor;
364   G4EmBiasingManager*          biasManager = n << 354   const std::vector<G4int>*    theDensityIdx;
365   std::vector<G4double>*       theEnergyOfCros << 355 
366                                                << 356   G4int                        nLambdaBins;
367 private:                                       << 357 
368                                                << 358   G4double                     minKinEnergy;
369   const std::vector<G4double>* theDensityFacto << 359   G4double                     minKinEnergyPrim;
370   const std::vector<G4int>* theDensityIdx = nu << 360   G4double                     maxKinEnergy;
                                                   >> 361   G4double                     lambdaFactor;
                                                   >> 362   G4double                     polarAngleLimit;
                                                   >> 363   G4double                     biasFactor;
                                                   >> 364 
                                                   >> 365   G4bool                       integral;
                                                   >> 366   G4bool                       applyCuts;
                                                   >> 367   G4bool                       startFromNull;
                                                   >> 368   G4bool                       splineFlag;
371                                                   369 
372   // ======== parameters =========             << 370   // ======== Cashed values - may be state dependent ================
373   G4double minKinEnergy;                       << 
374   G4double maxKinEnergy;                       << 
375   G4double minKinEnergyPrim = DBL_MAX;         << 
376   G4double lambdaFactor = 0.8;                 << 
377   G4double invLambdaFactor;                    << 
378   G4double biasFactor = 1.0;                   << 
379   G4double massRatio = 1.0;                    << 
380   G4double fFactor = 1.0;                      << 
381   G4double fLambda = 0.0;                      << 
382   G4double fLambdaEnergy = 0.0;                << 
383                                                   371 
384 protected:                                        372 protected:
385                                                   373 
386   G4double mfpKinEnergy = DBL_MAX;             << 374   G4ParticleChangeForGamma     fParticleChange;
387   G4double preStepKinEnergy = 0.0;             << 
388   G4double preStepLambda = 0.0;                << 
389                                                   375 
390 private:                                          376 private:
391                                                   377 
392   G4CrossSectionType fXSType = fEmNoIntegral;  << 
393                                                << 
394   G4int numberOfModels = 0;                    << 
395   G4int nLambdaBins = 84;                      << 
396                                                << 
397 protected:                                     << 
398                                                << 
399   G4int mainSecondaries = 1;                   << 
400   G4int secID = _EM;                           << 
401   G4int fluoID = _Fluorescence;                << 
402   G4int augerID = _AugerElectron;              << 
403   G4int biasID = _EM;                          << 
404   G4int tripletID = _TripletElectron;          << 
405   std::size_t currentCoupleIndex = 0;          << 
406   std::size_t basedCoupleIndex = 0;            << 
407   std::size_t coupleIdxLambda = 0;             << 
408   std::size_t idxLambda = 0;                   << 
409                                                << 
410   G4bool isTheMaster = false;                  << 
411   G4bool baseMat = false;                      << 
412                                                << 
413 private:                                       << 
414                                                << 
415   G4bool buildLambdaTable = true;              << 
416   G4bool applyCuts = false;                    << 
417   G4bool startFromNull = false;                << 
418   G4bool splineFlag = true;                    << 
419   G4bool actMinKinEnergy = false;              << 
420   G4bool actMaxKinEnergy = false;              << 
421   G4bool actBinning = false;                   << 
422   G4bool isIon = false;                        << 
423   G4bool biasFlag = false;                     << 
424   G4bool weightFlag = false;                   << 
425                                                << 
426 protected:                                     << 
427                                                << 
428   // ======== particle change =========        << 
429   std::vector<G4DynamicParticle*> secParticles    378   std::vector<G4DynamicParticle*> secParticles;
430   G4ParticleChangeForGamma fParticleChange;    << 
431                                                   379 
432 private:                                       << 380   G4VEmModel*                  currentModel;  
                                                   >> 381 
                                                   >> 382   const G4ParticleDefinition*  particle;
                                                   >> 383   const G4ParticleDefinition*  currentParticle;
433                                                   384 
434   // ======== local vectors =========          << 385   // cash
435   std::vector<G4VEmModel*> emModels;           << 386   const G4Material*            baseMaterial;
                                                   >> 387   const G4Material*            currentMaterial;
                                                   >> 388   const G4MaterialCutsCouple*  currentCouple;
                                                   >> 389   size_t                       currentCoupleIndex;
                                                   >> 390   size_t                       basedCoupleIndex;
                                                   >> 391 
                                                   >> 392   G4double                     mfpKinEnergy;
                                                   >> 393   G4double                     preStepKinEnergy;
                                                   >> 394   G4double                     preStepLambda;
                                                   >> 395   G4double                     fFactor;
                                                   >> 396   G4bool                       biasFlag;
                                                   >> 397   G4bool                       weightFlag;
436                                                   398 
                                                   >> 399   G4int                        warn;
437 };                                                400 };
438                                                   401 
439 // ======== Run time inline methods ==========    402 // ======== Run time inline methods ================
440                                                   403 
441 //....oooOO0OOooo........oooOO0OOooo........oo << 404 inline size_t G4VEmProcess::CurrentMaterialCutsCoupleIndex() const 
442                                                << 
443 inline std::size_t G4VEmProcess::CurrentMateri << 
444 {                                                 405 {
445   return currentCoupleIndex;                      406   return currentCoupleIndex;
446 }                                                 407 }
447                                                   408 
448 //....oooOO0OOooo........oooOO0OOooo........oo    409 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
449                                                   410 
450 inline const G4MaterialCutsCouple* G4VEmProces << 
451 {                                              << 
452   return currentCouple;                        << 
453 }                                              << 
454                                                << 
455 //....oooOO0OOooo........oooOO0OOooo........oo << 
456                                                << 
457 inline G4double G4VEmProcess::GetGammaEnergyCu    411 inline G4double G4VEmProcess::GetGammaEnergyCut()
458 {                                                 412 {
459   return (*theCutsGamma)[currentCoupleIndex];     413   return (*theCutsGamma)[currentCoupleIndex];
460 }                                                 414 }
461                                                   415 
462 //....oooOO0OOooo........oooOO0OOooo........oo    416 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
463                                                   417 
464 inline G4double G4VEmProcess::GetElectronEnerg    418 inline G4double G4VEmProcess::GetElectronEnergyCut()
465 {                                                 419 {
466   return (*theCutsElectron)[currentCoupleIndex    420   return (*theCutsElectron)[currentCoupleIndex];
467 }                                                 421 }
468                                                   422 
469 //....oooOO0OOooo........oooOO0OOooo........oo    423 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
470                                                   424 
471 inline void G4VEmProcess::DefineMaterial(const    425 inline void G4VEmProcess::DefineMaterial(const G4MaterialCutsCouple* couple)
472 {                                                 426 {
473   if (couple != currentCouple) {               << 427   if(couple != currentCouple) {
474     currentCouple = couple;                    << 428     currentCouple   = couple;
475     baseMaterial = currentMaterial = couple->G << 429     currentMaterial = couple->GetMaterial();
476     basedCoupleIndex = currentCoupleIndex = co << 430     baseMaterial = currentMaterial->GetBaseMaterial();
477     fFactor = biasFactor;                      << 431     currentCoupleIndex = couple->GetIndex();
                                                   >> 432     basedCoupleIndex   = (*theDensityIdx)[currentCoupleIndex];
                                                   >> 433     fFactor = biasFactor*(*theDensityFactor)[currentCoupleIndex];
                                                   >> 434     if(!baseMaterial) { baseMaterial = currentMaterial; }
478     mfpKinEnergy = DBL_MAX;                       435     mfpKinEnergy = DBL_MAX;
479     if (baseMat) {                             << 
480       basedCoupleIndex = (*theDensityIdx)[curr << 
481       if (nullptr != currentMaterial->GetBaseM << 
482         baseMaterial = currentMaterial->GetBas << 
483       fFactor *= (*theDensityFactor)[currentCo << 
484     }                                          << 
485   }                                               436   }
486 }                                                 437 }
487                                                   438 
488 //....oooOO0OOooo........oooOO0OOooo........oo    439 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
489                                                   440 
490 inline                                            441 inline 
491 G4VEmModel* G4VEmProcess::SelectModel(G4double << 442 G4VEmModel* G4VEmProcess::SelectModel(G4double& kinEnergy, size_t index)
492 {                                                 443 {
493   if(1 < numberOfModels) {                        444   if(1 < numberOfModels) {
494     currentModel = modelManager->SelectModel(k << 445     currentModel = modelManager->SelectModel(kinEnergy, index);
495   }                                               446   }
496   currentModel->SetCurrentCouple(currentCouple    447   currentModel->SetCurrentCouple(currentCouple);
497   return currentModel;                            448   return currentModel;
498 }                                                 449 }
499                                                   450 
500 //....oooOO0OOooo........oooOO0OOooo........oo    451 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
501                                                   452 
502 inline                                            453 inline 
503 G4VEmModel* G4VEmProcess::SelectModelForMateri    454 G4VEmModel* G4VEmProcess::SelectModelForMaterial(G4double kinEnergy, 
504                                                << 455              size_t& idxRegion) const
505 {                                                 456 {
506   return modelManager->SelectModel(kinEnergy,  << 457   return modelManager->SelectModel(kinEnergy, idxRegion);
507 }                                                 458 }
508                                                   459 
509 //....oooOO0OOooo........oooOO0OOooo........oo    460 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
510                                                   461 
511 inline G4double G4VEmProcess::GetLambdaFromTab    462 inline G4double G4VEmProcess::GetLambdaFromTable(G4double e)
512 {                                                 463 {
513   return ((*theLambdaTable)[basedCoupleIndex]) << 464   return ((*theLambdaTable)[basedCoupleIndex])->Value(e);
514 }                                              << 
515                                                << 
516 //....oooOO0OOooo........oooOO0OOooo........oo << 
517                                                << 
518 inline G4double G4VEmProcess::LogEkin(const G4 << 
519 {                                              << 
520   return track.GetDynamicParticle()->GetLogKin << 
521 }                                              << 
522                                                << 
523 //....oooOO0OOooo........oooOO0OOooo........oo << 
524                                                << 
525 inline G4double G4VEmProcess::GetLambdaFromTab << 
526 {                                              << 
527   return ((*theLambdaTable)[basedCoupleIndex]) << 
528 }                                                 465 }
529                                                   466 
530 //....oooOO0OOooo........oooOO0OOooo........oo    467 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
531                                                   468 
532 inline G4double G4VEmProcess::GetLambdaFromTab    469 inline G4double G4VEmProcess::GetLambdaFromTablePrim(G4double e)
533 {                                                 470 {
534   return ((*theLambdaTablePrim)[basedCoupleInd << 471   return ((*theLambdaTablePrim)[basedCoupleIndex])->Value(e)/e;
535 }                                              << 
536                                                << 
537 //....oooOO0OOooo........oooOO0OOooo........oo << 
538                                                << 
539 inline G4double G4VEmProcess::GetLambdaFromTab << 
540 {                                              << 
541   return ((*theLambdaTablePrim)[basedCoupleInd << 
542 }                                                 472 }
543                                                   473 
544 //....oooOO0OOooo........oooOO0OOooo........oo    474 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
545                                                   475 
546 inline G4double G4VEmProcess::ComputeCurrentLa    476 inline G4double G4VEmProcess::ComputeCurrentLambda(G4double e)
547 {                                                 477 {
548   return currentModel->CrossSectionPerVolume(b << 478   return currentModel->CrossSectionPerVolume(baseMaterial,currentParticle,
                                                   >> 479                e,(*theCuts)[currentCoupleIndex]);
549 }                                                 480 }
550                                                   481 
551 //....oooOO0OOooo........oooOO0OOooo........oo    482 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
552                                                   483 
553 inline G4double G4VEmProcess::GetCurrentLambda    484 inline G4double G4VEmProcess::GetCurrentLambda(G4double e)
554 {                                                 485 {
555   if(currentCoupleIndex != coupleIdxLambda ||  << 486   G4double x;
556     coupleIdxLambda = currentCoupleIndex;      << 487   if(e >= minKinEnergyPrim) { x = GetLambdaFromTablePrim(e); }
557     fLambdaEnergy = e;                         << 488   else if(theLambdaTable)   { x = GetLambdaFromTable(e); }
558     if(e >= minKinEnergyPrim) { fLambda = GetL << 489   else                      { x = ComputeCurrentLambda(e); }
559     else if(nullptr != theLambdaTable) { fLamb << 490   return fFactor*x;
560     else { fLambda = ComputeCurrentLambda(e);  << 
561     fLambda *= fFactor;                        << 
562   }                                            << 
563   return fLambda;                              << 
564 }                                                 491 }
565                                                   492 
566 //....oooOO0OOooo........oooOO0OOooo........oo    493 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
567                                                   494 
568 inline G4double G4VEmProcess::GetCurrentLambda << 495 inline G4double 
569 {                                              << 496 G4VEmProcess::GetLambda(G4double& kinEnergy, 
570   if(currentCoupleIndex != coupleIdxLambda ||  << 497       const G4MaterialCutsCouple* couple)
571     coupleIdxLambda = currentCoupleIndex;      << 
572     fLambdaEnergy = e;                         << 
573     if(e >= minKinEnergyPrim) { fLambda = GetL << 
574     else if(nullptr != theLambdaTable) { fLamb << 
575     else { fLambda = ComputeCurrentLambda(e);  << 
576     fLambda *= fFactor;                        << 
577   }                                            << 
578   return fLambda;                              << 
579 }                                              << 
580                                                << 
581 //....oooOO0OOooo........oooOO0OOooo........oo << 
582                                                << 
583 inline void                                    << 
584 G4VEmProcess::CurrentSetup(const G4MaterialCut << 
585 {                                                 498 {
586   DefineMaterial(couple);                         499   DefineMaterial(couple);
587   SelectModel(energy*massRatio, currentCoupleI << 500   SelectModel(kinEnergy, currentCoupleIndex);
                                                   >> 501   return GetCurrentLambda(kinEnergy);
588 }                                                 502 }
589                                                   503 
590 //....oooOO0OOooo........oooOO0OOooo........oo    504 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
591                                                   505 
592 inline G4double                                   506 inline G4double 
593 G4VEmProcess::GetLambda(G4double kinEnergy, co << 507 G4VEmProcess::RecalculateLambda(G4double e, const G4MaterialCutsCouple* couple)
594                         G4double logKinEnergy) << 
595 {                                                 508 {
596   CurrentSetup(couple, kinEnergy);             << 509   DefineMaterial(couple);
597   return GetCurrentLambda(kinEnergy, logKinEne << 510   SelectModel(e, currentCoupleIndex);
                                                   >> 511   return fFactor*ComputeCurrentLambda(e);
598 }                                                 512 }
599                                                   513 
600 //....oooOO0OOooo........oooOO0OOooo........oo    514 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
601                                                   515 
602 G4double G4VEmProcess::MeanFreePath(const G4Tr << 516 inline void G4VEmProcess::ComputeIntegralLambda(G4double e)
603 {                                                 517 {
604   const G4double kinEnergy = track.GetKineticE << 518   mfpKinEnergy  = theEnergyOfCrossSectionMax[currentCoupleIndex];
605   CurrentSetup(track.GetMaterialCutsCouple(),  << 519   if (e <= mfpKinEnergy) {
606   const G4double xs = GetCurrentLambda(kinEner << 520     preStepLambda = GetCurrentLambda(e);
607                              track.GetDynamicP << 521 
608   return (0.0 < xs) ? 1.0/xs : DBL_MAX;        << 522   } else {
                                                   >> 523     G4double e1 = e*lambdaFactor;
                                                   >> 524     if(e1 > mfpKinEnergy) {
                                                   >> 525       preStepLambda = GetCurrentLambda(e);
                                                   >> 526       G4double preStepLambda1 = GetCurrentLambda(e1);
                                                   >> 527       if(preStepLambda1 > preStepLambda) {
                                                   >> 528         mfpKinEnergy = e1;
                                                   >> 529         preStepLambda = preStepLambda1;
                                                   >> 530       }
                                                   >> 531     } else {
                                                   >> 532       preStepLambda = fFactor*theCrossSectionMax[currentCoupleIndex];
                                                   >> 533     }
                                                   >> 534   }
609 }                                                 535 }
610                                                   536 
611 // ======== Get/Set inline methods used at ini    537 // ======== Get/Set inline methods used at initialisation ================
612                                                   538 
613 inline G4bool G4VEmProcess::ApplyCuts() const  << 539 inline void G4VEmProcess::SetLambdaBinning(G4int nbins)
614 {                                                 540 {
615   return applyCuts;                            << 541   nLambdaBins = nbins;
616 }                                                 542 }
617                                                   543 
618 //....oooOO0OOooo........oooOO0OOooo........oo    544 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
619                                                   545 
620 inline G4int G4VEmProcess::LambdaBinning() con    546 inline G4int G4VEmProcess::LambdaBinning() const
621 {                                                 547 {
622   return nLambdaBins;                             548   return nLambdaBins;
623 }                                                 549 }
624                                                   550 
625 //....oooOO0OOooo........oooOO0OOooo........oo    551 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
626                                                   552 
627 inline G4double G4VEmProcess::MinKinEnergy() c    553 inline G4double G4VEmProcess::MinKinEnergy() const
628 {                                                 554 {
629   return minKinEnergy;                            555   return minKinEnergy;
630 }                                                 556 }
631                                                   557 
632 //....oooOO0OOooo........oooOO0OOooo........oo    558 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
633                                                   559 
634 inline G4double G4VEmProcess::MaxKinEnergy() c    560 inline G4double G4VEmProcess::MaxKinEnergy() const
635 {                                                 561 {
636   return maxKinEnergy;                            562   return maxKinEnergy;
637 }                                                 563 }
638                                                   564 
639 //....oooOO0OOooo........oooOO0OOooo........oo    565 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
640                                                   566 
641 inline G4double G4VEmProcess::CrossSectionBias << 567 inline void G4VEmProcess::SetMinKinEnergyPrim(G4double e)
642 {                                                 568 {
643   return biasFactor;                           << 569   minKinEnergyPrim = e;
644 }                                                 570 }
645                                                   571 
646 //....oooOO0OOooo........oooOO0OOooo........oo    572 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
647                                                   573 
648 inline G4PhysicsTable* G4VEmProcess::LambdaTab << 574 inline void G4VEmProcess::SetPolarAngleLimit(G4double val)
649 {                                                 575 {
650   return theLambdaTable;                       << 576   if(val < 0.0)            { polarAngleLimit = 0.0; }
                                                   >> 577   else if(val > CLHEP::pi) { polarAngleLimit = CLHEP::pi;  }
                                                   >> 578   else                     { polarAngleLimit = val; }
651 }                                                 579 }
652                                                   580 
653 //....oooOO0OOooo........oooOO0OOooo........oo    581 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
654                                                   582 
655 inline G4PhysicsTable* G4VEmProcess::LambdaTab << 583 inline G4double G4VEmProcess::PolarAngleLimit() const
656 {                                                 584 {
657   return theLambdaTablePrim;                   << 585   return polarAngleLimit;
658 }                                                 586 }
659                                                   587 
660 //....oooOO0OOooo........oooOO0OOooo........oo    588 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
661                                                   589 
662 inline void G4VEmProcess::SetLambdaTable(G4Phy << 590 inline G4double G4VEmProcess::CrossSectionBiasingFactor() const
663 {                                                 591 {
664   theLambdaTable = ptr;                        << 592   return biasFactor;
665 }                                                 593 }
666                                                   594 
667 //....oooOO0OOooo........oooOO0OOooo........oo    595 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
668                                                   596 
669 inline void G4VEmProcess::SetLambdaTablePrim(G << 597 inline const G4PhysicsTable* G4VEmProcess::LambdaTable() const
670 {                                                 598 {
671   theLambdaTablePrim = ptr;                    << 599   return theLambdaTable;
672 }                                                 600 }
673                                                   601 
674 //....oooOO0OOooo........oooOO0OOooo........oo    602 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
675                                                   603 
676 inline std::vector<G4double>* G4VEmProcess::En << 604 inline const G4ParticleDefinition* G4VEmProcess::Particle() const
677 {                                                 605 {
678   return theEnergyOfCrossSectionMax;           << 606   return particle;
679 }                                                 607 }
680                                                   608 
681 //....oooOO0OOooo........oooOO0OOooo........oo    609 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
682                                                   610 
683 inline void                                    << 611 inline const G4ParticleDefinition* G4VEmProcess::SecondaryParticle() const
684 G4VEmProcess::SetEnergyOfCrossSectionMax(std:: << 
685 {                                                 612 {
686   theEnergyOfCrossSectionMax = ptr;            << 613   return secondaryParticle;
687 }                                                 614 }
688                                                   615 
689 //....oooOO0OOooo........oooOO0OOooo........oo    616 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
690                                                   617 
691 inline const G4ParticleDefinition* G4VEmProces << 618 inline void G4VEmProcess::SetLambdaFactor(G4double val)
692 {                                                 619 {
693   return particle;                             << 620   if(val > 0.0 && val <= 1.0) { lambdaFactor = val; }
694 }                                                 621 }
695                                                   622 
696 //....oooOO0OOooo........oooOO0OOooo........oo    623 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
697                                                   624 
698 inline const G4ParticleDefinition* G4VEmProces << 625 inline void G4VEmProcess::SetIntegral(G4bool val)
699 {                                                 626 {
700   return secondaryParticle;                    << 627   if(particle && particle != theGamma) { integral = val; }
701 }                                                 628 }
702                                                   629 
703 //....oooOO0OOooo........oooOO0OOooo........oo    630 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
704                                                   631 
705 inline void G4VEmProcess::SetCrossSectionType( << 632 inline G4bool G4VEmProcess::IsIntegral() const
706 {                                                 633 {
707   fXSType = val;                               << 634   return integral;
708 }                                                 635 }
709                                                   636 
710 //....oooOO0OOooo........oooOO0OOooo........oo    637 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
711                                                   638 
712 inline G4CrossSectionType G4VEmProcess::CrossS << 639 inline void G4VEmProcess::SetApplyCuts(G4bool val)
713 {                                                 640 {
714   return fXSType;                              << 641   applyCuts = val;
715 }                                                 642 }
716                                                   643 
717 //....oooOO0OOooo........oooOO0OOooo........oo    644 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
718                                                   645 
719 inline void G4VEmProcess::SetBuildTableFlag(G4    646 inline void G4VEmProcess::SetBuildTableFlag(G4bool val)
720 {                                                 647 {
721   buildLambdaTable = val;                         648   buildLambdaTable = val;
722 }                                                 649 }
723                                                   650 
724 //....oooOO0OOooo........oooOO0OOooo........oo    651 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
725                                                   652 
726 inline G4ParticleChangeForGamma* G4VEmProcess:    653 inline G4ParticleChangeForGamma* G4VEmProcess::GetParticleChange()
727 {                                                 654 {
728   return &fParticleChange;                        655   return &fParticleChange;
729 }                                                 656 }
730                                                   657 
731 //....oooOO0OOooo........oooOO0OOooo........oo    658 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
732                                                   659 
733 inline void G4VEmProcess::SetParticle(const G4    660 inline void G4VEmProcess::SetParticle(const G4ParticleDefinition* p)
734 {                                                 661 {
735   particle = p;                                   662   particle = p;
736   currentParticle = p;                            663   currentParticle = p;
737 }                                                 664 }
738                                                   665 
739 //....oooOO0OOooo........oooOO0OOooo........oo    666 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
740                                                   667 
741 inline void G4VEmProcess::SetSecondaryParticle    668 inline void G4VEmProcess::SetSecondaryParticle(const G4ParticleDefinition* p)
742 {                                                 669 {
743   secondaryParticle = p;                          670   secondaryParticle = p;
744 }                                                 671 }
745                                                   672 
746 //....oooOO0OOooo........oooOO0OOooo........oo    673 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
747                                                   674 
748 inline void G4VEmProcess::SetStartFromNullFlag    675 inline void G4VEmProcess::SetStartFromNullFlag(G4bool val)
749 {                                                 676 {
750   startFromNull = val;                            677   startFromNull = val;
751 }                                                 678 }
752                                                   679 
753 //....oooOO0OOooo........oooOO0OOooo........oo    680 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
754                                                   681 
755 inline void G4VEmProcess::SetSplineFlag(G4bool    682 inline void G4VEmProcess::SetSplineFlag(G4bool val)
756 {                                                 683 {
757   splineFlag = val;                               684   splineFlag = val;
758 }                                              << 
759                                                << 
760 //....oooOO0OOooo........oooOO0OOooo........oo << 
761                                                << 
762 inline G4int G4VEmProcess::DensityIndex(G4int  << 
763 {                                              << 
764   return (*theDensityIdx)[idx];                << 
765 }                                              << 
766                                                << 
767 //....oooOO0OOooo........oooOO0OOooo........oo << 
768                                                << 
769 inline G4double G4VEmProcess::DensityFactor(G4 << 
770 {                                              << 
771   return (*theDensityFactor)[idx];             << 
772 }                                              << 
773                                                << 
774 //....oooOO0OOooo........oooOO0OOooo........oo << 
775                                                << 
776 inline G4bool G4VEmProcess::UseBaseMaterial()  << 
777 {                                              << 
778   return baseMat;                              << 
779 }                                              << 
780                                                << 
781 //....oooOO0OOooo........oooOO0OOooo........oo << 
782                                                << 
783 inline const G4VEmModel* G4VEmProcess::GetCurr << 
784 {                                              << 
785   return currentModel;                         << 
786 }                                              << 
787                                                << 
788 //....oooOO0OOooo........oooOO0OOooo........oo << 
789                                                << 
790 inline void G4VEmProcess::SetEmMasterProcess(c << 
791 {                                              << 
792   masterProc = ptr;                            << 
793 }                                              << 
794                                                << 
795 //....oooOO0OOooo........oooOO0OOooo........oo << 
796                                                << 
797 inline G4int G4VEmProcess::NumberOfModels() co << 
798 {                                              << 
799   return numberOfModels;                       << 
800 }                                              << 
801                                                << 
802 //....oooOO0OOooo........oooOO0OOooo........oo << 
803                                                << 
804 inline G4VEmModel* G4VEmProcess::EmModel(std:: << 
805 {                                              << 
806   return (index < emModels.size()) ? emModels[ << 
807 }                                              << 
808                                                << 
809 //....oooOO0OOooo........oooOO0OOooo........oo << 
810                                                << 
811 inline G4VEmModel* G4VEmProcess::GetModelByInd << 
812 {                                              << 
813   return modelManager->GetModel(idx, ver);     << 
814 }                                                 685 }
815                                                   686 
816 //....oooOO0OOooo........oooOO0OOooo........oo    687 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
817                                                   688 
818 #endif                                            689 #endif
819                                                   690