Geant4 Cross Reference

Cross-Referencing   Geant4
Geant4/processes/electromagnetic/utils/src/G4EmParameters.cc

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/src/G4EmParameters.cc (Version 11.3.0) and /processes/electromagnetic/utils/src/G4EmParameters.cc (Version 11.0.p1)


  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 // -------------------------------------------     26 // -------------------------------------------------------------------
 27 //                                                 27 //
 28 // GEANT4 Class file                               28 // GEANT4 Class file
 29 //                                                 29 //
 30 // File name:     G4EmParameters                   30 // File name:     G4EmParameters
 31 //                                                 31 //
 32 // Author:        Vladimir Ivanchenko              32 // Author:        Vladimir Ivanchenko
 33 //                                                 33 //
 34 // Creation date: 18.05.2013                       34 // Creation date: 18.05.2013
 35 //                                                 35 //
 36 // Modifications:                                  36 // Modifications:
 37 //                                                 37 //
 38 // -------------------------------------------     38 // -------------------------------------------------------------------
 39 //                                                 39 //
 40 //....oooOO0OOooo........oooOO0OOooo........oo     40 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
 41 //....oooOO0OOooo........oooOO0OOooo........oo     41 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
 42                                                    42 
 43 #include "G4EmParameters.hh"                       43 #include "G4EmParameters.hh"
 44 #include "G4PhysicalConstants.hh"                  44 #include "G4PhysicalConstants.hh"
 45 #include "G4UnitsTable.hh"                         45 #include "G4UnitsTable.hh"
 46 #include "G4SystemOfUnits.hh"                      46 #include "G4SystemOfUnits.hh"
 47 #include "G4VEmProcess.hh"                         47 #include "G4VEmProcess.hh"
 48 #include "G4VEnergyLossProcess.hh"                 48 #include "G4VEnergyLossProcess.hh"
 49 #include "G4VAtomDeexcitation.hh"                  49 #include "G4VAtomDeexcitation.hh"
 50 #include "G4EmExtraParameters.hh"                  50 #include "G4EmExtraParameters.hh"
 51 #include "G4EmLowEParameters.hh"                   51 #include "G4EmLowEParameters.hh"
 52 #include "G4EmParametersMessenger.hh"              52 #include "G4EmParametersMessenger.hh"
 53 #include "G4NistManager.hh"                        53 #include "G4NistManager.hh"
 54 #include "G4RegionStore.hh"                        54 #include "G4RegionStore.hh"
 55 #include "G4Region.hh"                             55 #include "G4Region.hh"
 56 #include "G4ApplicationState.hh"                   56 #include "G4ApplicationState.hh"
 57 #include "G4StateManager.hh"                       57 #include "G4StateManager.hh"
 58 #include "G4Threading.hh"                      << 
 59 #include "G4AutoLock.hh"                       << 
 60                                                    58 
 61 G4EmParameters* G4EmParameters::theInstance =      59 G4EmParameters* G4EmParameters::theInstance = nullptr;
 62                                                    60 
 63 namespace                                      <<  61 #ifdef G4MULTITHREADED
 64 {                                              <<  62   G4Mutex G4EmParameters::emParametersMutex = G4MUTEX_INITIALIZER;
 65   G4Mutex emParametersMutex = G4MUTEX_INITIALI <<  63 #endif
 66 }                                              << 
 67                                                    64 
 68 //....oooOO0OOooo........oooOO0OOooo........oo     65 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.....
 69                                                    66 
 70 G4EmParameters* G4EmParameters::Instance()         67 G4EmParameters* G4EmParameters::Instance()
 71 {                                                  68 {
 72   if(nullptr == theInstance) {                     69   if(nullptr == theInstance) { 
 73     G4AutoLock l(&emParametersMutex);          <<  70 #ifdef G4MULTITHREADED
                                                   >>  71     G4MUTEXLOCK(&emParametersMutex);
 74     if(nullptr == theInstance) {                   72     if(nullptr == theInstance) {
                                                   >>  73 #endif
 75       static G4EmParameters manager;               74       static G4EmParameters manager;
 76       theInstance = &manager;                      75       theInstance = &manager;
                                                   >>  76 #ifdef G4MULTITHREADED
 77     }                                              77     }
 78     l.unlock();                                <<  78     G4MUTEXUNLOCK(&emParametersMutex);
                                                   >>  79 #endif
 79   }                                                80   }
 80   return theInstance;                              81   return theInstance;
 81 }                                                  82 }
 82                                                    83 
 83 //....oooOO0OOooo........oooOO0OOooo........oo     84 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.....
 84                                                    85 
 85 G4EmParameters::~G4EmParameters()                  86 G4EmParameters::~G4EmParameters()
 86 {                                                  87 {
 87   delete theMessenger;                             88   delete theMessenger;
 88   delete fBParameters;                             89   delete fBParameters;
 89   delete fCParameters;                             90   delete fCParameters;
 90   delete emSaturation;                             91   delete emSaturation;
 91 }                                                  92 }
 92                                                    93 
 93 //....oooOO0OOooo........oooOO0OOooo........oo     94 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.....
 94                                                    95 
 95 G4EmParameters::G4EmParameters()                   96 G4EmParameters::G4EmParameters()
 96 {                                                  97 {
 97   G4NistManager::Instance();                       98   G4NistManager::Instance();
 98   theMessenger = new G4EmParametersMessenger(t     99   theMessenger = new G4EmParametersMessenger(this);
 99   Initialise();                                   100   Initialise();
100                                                   101 
101   fBParameters = new G4EmExtraParameters();       102   fBParameters = new G4EmExtraParameters();
102   fCParameters = new G4EmLowEParameters();        103   fCParameters = new G4EmLowEParameters();
103                                                   104 
104   fStateManager = G4StateManager::GetStateMana    105   fStateManager = G4StateManager::GetStateManager();
105   emSaturation = nullptr;                         106   emSaturation = nullptr;
106 }                                                 107 }
107                                                   108 
108 void G4EmParameters::SetDefaults()                109 void G4EmParameters::SetDefaults()
109 {                                                 110 {
110   if(!IsLocked()) {                               111   if(!IsLocked()) { 
111     Initialise();                                 112     Initialise();
112     fBParameters->Initialise();                   113     fBParameters->Initialise();
113     fCParameters->Initialise();                   114     fCParameters->Initialise();
114   }                                               115   }
115 }                                                 116 }
116                                                   117 
117 void G4EmParameters::Initialise()                 118 void G4EmParameters::Initialise()
118 {                                                 119 {
119   lossFluctuation = true;                         120   lossFluctuation = true;
120   buildCSDARange = false;                         121   buildCSDARange = false;
121   flagLPM = true;                                 122   flagLPM = true;
122   cutAsFinalRange = false;                        123   cutAsFinalRange = false;
123   applyCuts = false;                              124   applyCuts = false;
124   lateralDisplacement = true;                     125   lateralDisplacement = true;
125   lateralDisplacementAlg96 = true;                126   lateralDisplacementAlg96 = true;
126   muhadLateralDisplacement = false;               127   muhadLateralDisplacement = false;
127   useAngGeneratorForIonisation = false;           128   useAngGeneratorForIonisation = false;
128   useMottCorrection = false;                      129   useMottCorrection = false;
129   integral = true;                                130   integral = true;
130   birks = false;                                  131   birks = false;
131   fICRU90 = false;                                132   fICRU90 = false;
132   gener = false;                                  133   gener = false;
133   onIsolated = false;                             134   onIsolated = false;
134   fSamplingTable = false;                         135   fSamplingTable = false;
135   fPolarisation = false;                          136   fPolarisation = false;
136   fMuDataFromFile = false;                        137   fMuDataFromFile = false;
137   fPEKShell = true;                            << 
138   fMscPosiCorr = true;                         << 
139   fUseEPICS2017XS = false;                     << 
140   f3GammaAnnihilationOnFly = false;            << 
141   fUseRiGePairProductionModel = false;         << 
142   fDNA = false;                                   138   fDNA = false;
143   fIsPrinted = false;                             139   fIsPrinted = false;
144                                                   140 
145   minKinEnergy = 0.1*CLHEP::keV;                  141   minKinEnergy = 0.1*CLHEP::keV;
146   maxKinEnergy = 100.0*CLHEP::TeV;                142   maxKinEnergy = 100.0*CLHEP::TeV;
147   maxKinEnergyCSDA = 1.0*CLHEP::GeV;              143   maxKinEnergyCSDA = 1.0*CLHEP::GeV;
148   max5DEnergyForMuPair = 0.0;                     144   max5DEnergyForMuPair = 0.0;
149   lowestElectronEnergy = 1.0*CLHEP::keV;          145   lowestElectronEnergy = 1.0*CLHEP::keV;
150   lowestMuHadEnergy = 1.0*CLHEP::keV;             146   lowestMuHadEnergy = 1.0*CLHEP::keV;
151   lowestTripletEnergy = 1.0*CLHEP::MeV;           147   lowestTripletEnergy = 1.0*CLHEP::MeV;
152   maxNIELEnergy = 0.0;                            148   maxNIELEnergy = 0.0;
153   linLossLimit = 0.01;                            149   linLossLimit = 0.01;
154   bremsTh = bremsMuHadTh = maxKinEnergy;          150   bremsTh = bremsMuHadTh = maxKinEnergy;
155   lambdaFactor = 0.8;                             151   lambdaFactor = 0.8;
156   factorForAngleLimit = 1.0;                      152   factorForAngleLimit = 1.0;
157   thetaLimit = CLHEP::pi;                         153   thetaLimit = CLHEP::pi;
158   energyLimit = 100.0*CLHEP::MeV;                 154   energyLimit = 100.0*CLHEP::MeV;
159   rangeFactor = 0.04;                             155   rangeFactor = 0.04;
160   rangeFactorMuHad = 0.2;                         156   rangeFactorMuHad = 0.2;
161   geomFactor = 2.5;                               157   geomFactor = 2.5;
162   skin = 1.0;                                     158   skin = 1.0;
163   safetyFactor = 0.6;                             159   safetyFactor = 0.6;
164   lambdaLimit  = 1.0*CLHEP::mm;                   160   lambdaLimit  = 1.0*CLHEP::mm;
165   factorScreen = 1.0;                             161   factorScreen = 1.0;
166                                                   162 
167   nbinsPerDecade = 7;                             163   nbinsPerDecade = 7;
168   verbose = 1;                                    164   verbose = 1;
169   workerVerbose = 0;                              165   workerVerbose = 0;
170   nForFreeVector = 2;                          << 
171   tripletConv = 0;                                166   tripletConv = 0;
172                                                   167 
173   fTransportationWithMsc = G4TransportationWit << 
174   mscStepLimit = fUseSafety;                      168   mscStepLimit = fUseSafety;
175   mscStepLimitMuHad = fMinimal;                   169   mscStepLimitMuHad = fMinimal;
176   nucFormfactor = fExponentialNF;                 170   nucFormfactor = fExponentialNF;
177   fSStype = fWVI;                                 171   fSStype = fWVI;
178   fFluct = fUniversalFluctuation;              << 
179   fPositronium = fSimplePositronium;           << 
180                                                << 
181   const char* data_dir = G4FindDataDir("G4LEDA << 
182   if (nullptr != data_dir) {                   << 
183     fDirLEDATA = G4String(data_dir);           << 
184   }                                            << 
185   else {                                       << 
186     G4Exception("G4EmParameters::Initialise()" << 
187                 "G4LEDATA data directory was n << 
188   }                                            << 
189 }                                                 172 }
190                                                   173 
191 void G4EmParameters::SetLossFluctuations(G4boo    174 void G4EmParameters::SetLossFluctuations(G4bool val)
192 {                                                 175 {
193   if(IsLocked()) { return; }                      176   if(IsLocked()) { return; }
194   lossFluctuation = val;                          177   lossFluctuation = val;
195 }                                                 178 }
196                                                   179 
197 G4bool G4EmParameters::LossFluctuation() const    180 G4bool G4EmParameters::LossFluctuation() const
198 {                                                 181 {
199   return lossFluctuation;                         182   return lossFluctuation;
200 }                                                 183 }
201                                                   184 
202 void G4EmParameters::SetBuildCSDARange(G4bool     185 void G4EmParameters::SetBuildCSDARange(G4bool val)
203 {                                                 186 {
204   if(IsLocked()) { return; }                      187   if(IsLocked()) { return; }
205   buildCSDARange = val;                           188   buildCSDARange = val;
206 }                                                 189 }
207                                                   190 
208 G4bool G4EmParameters::BuildCSDARange() const     191 G4bool G4EmParameters::BuildCSDARange() const 
209 {                                                 192 {
210   return buildCSDARange;                          193   return buildCSDARange;
211 }                                                 194 }
212                                                   195 
213 void G4EmParameters::SetLPM(G4bool val)           196 void G4EmParameters::SetLPM(G4bool val)
214 {                                                 197 {
215   if(IsLocked()) { return; }                      198   if(IsLocked()) { return; }
216   flagLPM = val;                                  199   flagLPM = val;
217 }                                                 200 }
218                                                   201 
219 G4bool G4EmParameters::LPM() const                202 G4bool G4EmParameters::LPM() const 
220 {                                                 203 {
221   return flagLPM;                                 204   return flagLPM;
222 }                                                 205 }
223                                                   206 
224 void G4EmParameters::SetUseCutAsFinalRange(G4b    207 void G4EmParameters::SetUseCutAsFinalRange(G4bool val)
225 {                                                 208 {
226   if(IsLocked()) { return; }                      209   if(IsLocked()) { return; }
227   cutAsFinalRange = val;                          210   cutAsFinalRange = val;
228 }                                                 211 }
229                                                   212 
230 G4bool G4EmParameters::UseCutAsFinalRange() co    213 G4bool G4EmParameters::UseCutAsFinalRange() const
231 {                                                 214 {
232   return cutAsFinalRange;                         215   return cutAsFinalRange;
233 }                                                 216 }
234                                                   217 
235 void G4EmParameters::SetApplyCuts(G4bool val)     218 void G4EmParameters::SetApplyCuts(G4bool val)
236 {                                                 219 {
237   if(IsLocked()) { return; }                      220   if(IsLocked()) { return; }
238   applyCuts = val;                                221   applyCuts = val;
239 }                                                 222 }
240                                                   223 
241 G4bool G4EmParameters::ApplyCuts() const          224 G4bool G4EmParameters::ApplyCuts() const
242 {                                                 225 {
243   return applyCuts;                               226   return applyCuts;
244 }                                                 227 }
245                                                   228 
246 void G4EmParameters::SetFluo(G4bool val)          229 void G4EmParameters::SetFluo(G4bool val)
247 {                                                 230 {
248   if(IsLocked()) { return; }                      231   if(IsLocked()) { return; }
249   fCParameters->SetFluo(val);                     232   fCParameters->SetFluo(val);
250 }                                                 233 }
251                                                   234 
252 G4bool G4EmParameters::Fluo() const               235 G4bool G4EmParameters::Fluo() const
253 {                                                 236 {
254   return fCParameters->Fluo();                    237   return fCParameters->Fluo();
255 }                                                 238 }
256                                                   239 
257 G4EmFluoDirectory G4EmParameters::FluoDirector << 240 void G4EmParameters::SetBeardenFluoDir(G4bool val)
258 {                                              << 
259   return fCParameters->FluoDirectory();        << 
260 }                                              << 
261                                                << 
262 void G4EmParameters::SetFluoDirectory(G4EmFluo << 
263 {                                                 241 {
264   if(IsLocked()) { return; }                      242   if(IsLocked()) { return; }
265   fCParameters->SetFluoDirectory(val);         << 243   fCParameters->SetBeardenFluoDir(val);
266 }                                                 244 }
267                                                   245 
268 void G4EmParameters::SetBeardenFluoDir(G4bool  << 246 G4bool G4EmParameters::BeardenFluoDir() const
269 {                                                 247 {
270   if(IsLocked()) { return; }                   << 248   return fCParameters->BeardenFluoDir();
271   fCParameters->SetBeardenFluoDir(val);        << 
272 }                                                 249 }
273                                                   250 
274 void G4EmParameters::SetANSTOFluoDir(G4bool va    251 void G4EmParameters::SetANSTOFluoDir(G4bool val)
275 {                                                 252 {
276   if(IsLocked()) { return; }                      253   if(IsLocked()) { return; }
277   fCParameters->SetANSTOFluoDir(val);             254   fCParameters->SetANSTOFluoDir(val);
278 }                                                 255 }
279                                                   256 
280 void G4EmParameters::SetXDB_EADLFluoDir(G4bool << 257 G4bool G4EmParameters::ANSTOFluoDir() const
281 {                                                 258 {
282   if(IsLocked()) { return; }                   << 259   return fCParameters->ANSTOFluoDir();
283   fCParameters->SetXDB_EADLFluoDir(val);       << 
284 }                                                 260 }
285                                                   261 
286 void G4EmParameters::SetAuger(G4bool val)         262 void G4EmParameters::SetAuger(G4bool val)
287 {                                                 263 {
288   if(IsLocked()) { return; }                      264   if(IsLocked()) { return; }
289   fCParameters->SetAuger(val);                    265   fCParameters->SetAuger(val);
290 }                                                 266 }
291                                                   267 
292 G4bool G4EmParameters::BeardenFluoDir()        << 
293 {                                              << 
294   auto dir = fCParameters->FluoDirectory();    << 
295   return (dir == fluoBearden);                 << 
296 }                                              << 
297                                                << 
298 G4bool G4EmParameters::ANSTOFluoDir()          << 
299 {                                              << 
300   auto dir = fCParameters->FluoDirectory();    << 
301   return (dir == fluoANSTO);                   << 
302 }                                              << 
303                                                << 
304 G4bool G4EmParameters::Auger() const              268 G4bool G4EmParameters::Auger() const
305 {                                                 269 {
306   return fCParameters->Auger();                   270   return fCParameters->Auger();
307 }                                                 271 }
308                                                   272 
309 void G4EmParameters::SetPixe(G4bool val)          273 void G4EmParameters::SetPixe(G4bool val)
310 {                                                 274 {
311   if(IsLocked()) { return; }                      275   if(IsLocked()) { return; }
312   fCParameters->SetPixe(val);                     276   fCParameters->SetPixe(val);
313 }                                                 277 }
314                                                   278 
315 G4bool G4EmParameters::Pixe() const               279 G4bool G4EmParameters::Pixe() const
316 {                                                 280 {
317   return fCParameters->Pixe();                    281   return fCParameters->Pixe();
318 }                                                 282 }
319                                                   283 
320 void G4EmParameters::SetDeexcitationIgnoreCut(    284 void G4EmParameters::SetDeexcitationIgnoreCut(G4bool val)
321 {                                                 285 {
322   if(IsLocked()) { return; }                      286   if(IsLocked()) { return; }
323   fCParameters->SetDeexcitationIgnoreCut(val);    287   fCParameters->SetDeexcitationIgnoreCut(val);
324 }                                                 288 }
325                                                   289 
326 G4bool G4EmParameters::DeexcitationIgnoreCut()    290 G4bool G4EmParameters::DeexcitationIgnoreCut() const
327 {                                                 291 {
328   return fCParameters->DeexcitationIgnoreCut()    292   return fCParameters->DeexcitationIgnoreCut();
329 }                                                 293 }
330                                                   294 
331 void G4EmParameters::SetLateralDisplacement(G4    295 void G4EmParameters::SetLateralDisplacement(G4bool val)
332 {                                                 296 {
333   if(IsLocked()) { return; }                      297   if(IsLocked()) { return; }
334   lateralDisplacement = val;                      298   lateralDisplacement = val;
335 }                                                 299 }
336                                                   300 
337 G4bool G4EmParameters::LateralDisplacement() c    301 G4bool G4EmParameters::LateralDisplacement() const
338 {                                                 302 {
339   return lateralDisplacement;                     303   return lateralDisplacement;
340 }                                                 304 }
341                                                   305 
342 void G4EmParameters::SetLateralDisplacementAlg    306 void G4EmParameters::SetLateralDisplacementAlg96(G4bool val)
343 {                                                 307 {
344   if(IsLocked()) { return; }                      308   if(IsLocked()) { return; }
345   lateralDisplacementAlg96 = val;                 309   lateralDisplacementAlg96 = val;
346 }                                                 310 }
347                                                   311 
348 G4bool G4EmParameters::LateralDisplacementAlg9    312 G4bool G4EmParameters::LateralDisplacementAlg96() const
349 {                                                 313 {
350   return lateralDisplacementAlg96;                314   return lateralDisplacementAlg96;
351 }                                                 315 }
352                                                   316 
353 void G4EmParameters::SetMuHadLateralDisplaceme    317 void G4EmParameters::SetMuHadLateralDisplacement(G4bool val)
354 {                                                 318 {
355   if(IsLocked()) { return; }                      319   if(IsLocked()) { return; }
356   muhadLateralDisplacement = val;                 320   muhadLateralDisplacement = val;
357 }                                                 321 }
358                                                   322 
359 G4bool G4EmParameters::MuHadLateralDisplacemen    323 G4bool G4EmParameters::MuHadLateralDisplacement() const
360 {                                                 324 {
361   return muhadLateralDisplacement;                325   return muhadLateralDisplacement;
362 }                                                 326 }
363                                                   327 
364 void G4EmParameters::ActivateAngularGeneratorF    328 void G4EmParameters::ActivateAngularGeneratorForIonisation(G4bool val)
365 {                                                 329 {
366   if(IsLocked()) { return; }                      330   if(IsLocked()) { return; }
367   useAngGeneratorForIonisation = val;             331   useAngGeneratorForIonisation = val;
368 }                                                 332 }
369                                                   333 
370 G4bool G4EmParameters::UseAngularGeneratorForI    334 G4bool G4EmParameters::UseAngularGeneratorForIonisation() const
371 {                                                 335 {
372   return useAngGeneratorForIonisation;            336   return useAngGeneratorForIonisation;
373 }                                                 337 }
374                                                   338 
375 void G4EmParameters::SetUseMottCorrection(G4bo    339 void G4EmParameters::SetUseMottCorrection(G4bool val)
376 {                                                 340 {
377   if(IsLocked()) { return; }                      341   if(IsLocked()) { return; }
378   useMottCorrection = val;                        342   useMottCorrection = val;
379 }                                                 343 }
380                                                   344 
381 G4bool G4EmParameters::UseMottCorrection() con    345 G4bool G4EmParameters::UseMottCorrection() const
382 {                                                 346 {
383   return useMottCorrection;                       347   return useMottCorrection;
384 }                                                 348 }
385                                                   349 
386 void G4EmParameters::SetIntegral(G4bool val)      350 void G4EmParameters::SetIntegral(G4bool val)
387 {                                                 351 {
388   if(IsLocked()) { return; }                      352   if(IsLocked()) { return; }
389   integral = val;                                 353   integral = val;
390 }                                                 354 }
391                                                   355 
392 G4bool G4EmParameters::Integral() const           356 G4bool G4EmParameters::Integral() const
393 {                                                 357 {
394   return integral;                                358   return integral;
395 }                                                 359 }
396                                                   360 
397 void G4EmParameters::SetEnablePolarisation(G4b    361 void G4EmParameters::SetEnablePolarisation(G4bool val)
398 {                                                 362 {
399   if(IsLocked()) { return; }                      363   if(IsLocked()) { return; }
400   fPolarisation = val;                            364   fPolarisation = val;
401 }                                                 365 }
402                                                   366 
403 G4bool G4EmParameters::EnablePolarisation() co    367 G4bool G4EmParameters::EnablePolarisation() const
404 {                                                 368 {
405   return fPolarisation;                           369   return fPolarisation;
406 }                                                 370 }
407                                                   371 
408 void G4EmParameters::SetBirksActive(G4bool val    372 void G4EmParameters::SetBirksActive(G4bool val)
409 {                                                 373 {
410   if(IsLocked()) { return; }                      374   if(IsLocked()) { return; }
411   birks = val;                                    375   birks = val;
412   if(birks && nullptr == emSaturation) { emSat    376   if(birks && nullptr == emSaturation) { emSaturation = new G4EmSaturation(1); }
413 }                                                 377 }
414                                                   378 
415 G4bool G4EmParameters::BirksActive() const        379 G4bool G4EmParameters::BirksActive() const
416 {                                                 380 {
417   return birks;                                   381   return birks;
418 }                                                 382 }
419                                                   383 
420 void G4EmParameters::SetUseICRU90Data(G4bool v    384 void G4EmParameters::SetUseICRU90Data(G4bool val)
421 {                                                 385 {
422   if(IsLocked()) { return; }                      386   if(IsLocked()) { return; }
423   fICRU90 = val;                                  387   fICRU90 = val;
424 }                                                 388 }
425                                                   389 
426 G4bool G4EmParameters::UseICRU90Data() const      390 G4bool G4EmParameters::UseICRU90Data() const
427 {                                                 391 {
428   return fICRU90;                                 392   return fICRU90;
429 }                                                 393 }
430                                                   394 
431 void G4EmParameters::SetDNAFast(G4bool val)       395 void G4EmParameters::SetDNAFast(G4bool val)
432 {                                                 396 {
433   if(IsLocked()) { return; }                      397   if(IsLocked()) { return; }
434   fCParameters->SetDNAFast(val);                  398   fCParameters->SetDNAFast(val);
435   if(val) { ActivateDNA(); }                      399   if(val) { ActivateDNA(); }
436 }                                                 400 }
437                                                   401 
438 G4bool G4EmParameters::DNAFast() const            402 G4bool G4EmParameters::DNAFast() const
439 {                                                 403 {
440   return fCParameters->DNAFast();                 404   return fCParameters->DNAFast();
441 }                                                 405 }
442                                                   406 
443 void G4EmParameters::SetDNAStationary(G4bool v    407 void G4EmParameters::SetDNAStationary(G4bool val)
444 {                                                 408 {
445   if(IsLocked()) { return; }                      409   if(IsLocked()) { return; }
446   fCParameters->SetDNAStationary(val);            410   fCParameters->SetDNAStationary(val);
447   if(val) { ActivateDNA(); }                      411   if(val) { ActivateDNA(); }
448 }                                                 412 }
449                                                   413 
450 G4bool G4EmParameters::DNAStationary() const      414 G4bool G4EmParameters::DNAStationary() const
451 {                                                 415 {
452   return fCParameters->DNAStationary();           416   return fCParameters->DNAStationary();
453 }                                                 417 }
454                                                   418 
455 void G4EmParameters::SetDNAElectronMsc(G4bool     419 void G4EmParameters::SetDNAElectronMsc(G4bool val)
456 {                                                 420 {
457   if(IsLocked()) { return; }                      421   if(IsLocked()) { return; }
458   fCParameters->SetDNAElectronMsc(val);           422   fCParameters->SetDNAElectronMsc(val);
459   if(val) { ActivateDNA(); }                      423   if(val) { ActivateDNA(); }
460 }                                                 424 }
461                                                   425 
462 G4bool G4EmParameters::DNAElectronMsc() const     426 G4bool G4EmParameters::DNAElectronMsc() const
463 {                                                 427 {
464   return fCParameters->DNAElectronMsc();          428   return fCParameters->DNAElectronMsc();
465 }                                                 429 }
466                                                   430 
467 void G4EmParameters::SetGeneralProcessActive(G    431 void G4EmParameters::SetGeneralProcessActive(G4bool val)
468 {                                                 432 {
469   if(IsLocked()) { return; }                      433   if(IsLocked()) { return; }
470   gener = val;                                    434   gener = val;
471 }                                                 435 }
472                                                   436 
473 G4bool G4EmParameters::GeneralProcessActive()     437 G4bool G4EmParameters::GeneralProcessActive() const
474 {                                                 438 {
475   return gener;                                   439   return gener;
476 }                                                 440 }
477                                                   441 
478 void G4EmParameters::SetEmSaturation(G4EmSatur    442 void G4EmParameters::SetEmSaturation(G4EmSaturation* ptr)
479 {                                                 443 {
480   if(IsLocked()) { return; }                      444   if(IsLocked()) { return; }
481   birks = (nullptr != ptr);                       445   birks = (nullptr != ptr);
482   if(emSaturation != ptr) {                       446   if(emSaturation != ptr) {
483     delete emSaturation;                          447     delete emSaturation;
484     emSaturation = ptr;                           448     emSaturation = ptr;
485   }                                               449   }
486 }                                                 450 }
487                                                   451 
488 G4bool G4EmParameters::RetrieveMuDataFromFile(    452 G4bool G4EmParameters::RetrieveMuDataFromFile() const
489 {                                                 453 {
490   return fMuDataFromFile;                         454   return fMuDataFromFile;
491 }                                                 455 }
492                                                   456 
493 void G4EmParameters::SetRetrieveMuDataFromFile    457 void G4EmParameters::SetRetrieveMuDataFromFile(G4bool v)
494 {                                                 458 {
495   fMuDataFromFile = v;                            459   fMuDataFromFile = v;
496 }                                                 460 }
497                                                   461 
498 void G4EmParameters::SetOnIsolated(G4bool val)    462 void G4EmParameters::SetOnIsolated(G4bool val)
499 {                                                 463 {
500   if(IsLocked()) { return; }                      464   if(IsLocked()) { return; }
501   onIsolated = val;                               465   onIsolated = val;
502 }                                                 466 }
503                                                   467 
504 G4bool G4EmParameters::OnIsolated() const         468 G4bool G4EmParameters::OnIsolated() const
505 {                                                 469 {
506   return onIsolated;                              470   return onIsolated;
507 }                                                 471 }
508                                                   472 
509 void G4EmParameters::SetEnableSamplingTable(G4    473 void G4EmParameters::SetEnableSamplingTable(G4bool val)
510 {                                                 474 {
511   if(IsLocked()) { return; }                      475   if(IsLocked()) { return; }
512   fSamplingTable = val;                           476   fSamplingTable = val;
513 }                                                 477 }
514                                                   478 
515 G4bool G4EmParameters::EnableSamplingTable() c    479 G4bool G4EmParameters::EnableSamplingTable() const
516 {                                                 480 {
517   return fSamplingTable;                          481   return fSamplingTable;
518 }                                                 482 }
519                                                   483 
520 G4bool G4EmParameters::PhotoeffectBelowKShell( << 
521 {                                              << 
522   return fPEKShell;                            << 
523 }                                              << 
524                                                << 
525 void G4EmParameters::SetPhotoeffectBelowKShell << 
526 {                                              << 
527   if(IsLocked()) { return; }                   << 
528   fPEKShell = v;                               << 
529 }                                              << 
530                                                << 
531 G4bool G4EmParameters::MscPositronCorrection() << 
532 {                                              << 
533   return fMscPosiCorr;                         << 
534 }                                              << 
535                                                << 
536 void G4EmParameters::SetMscPositronCorrection( << 
537 {                                              << 
538   if(IsLocked()) { return; }                   << 
539   fMscPosiCorr = v;                            << 
540 }                                              << 
541                                                << 
542 G4bool G4EmParameters::UseEPICS2017XS() const  << 
543 {                                              << 
544   return fUseEPICS2017XS;                      << 
545 }                                              << 
546                                                << 
547 void G4EmParameters::SetUseEPICS2017XS(G4bool  << 
548 {                                              << 
549   if(IsLocked()) { return; }                   << 
550   fUseEPICS2017XS = v;                         << 
551 }                                              << 
552                                                << 
553 G4bool G4EmParameters::Use3GammaAnnihilationOn << 
554 {                                              << 
555   return f3GammaAnnihilationOnFly;             << 
556 }                                              << 
557                                                << 
558 void G4EmParameters::Set3GammaAnnihilationOnFl << 
559 {                                              << 
560   if(IsLocked()) { return; }                   << 
561   f3GammaAnnihilationOnFly = v;                << 
562 }                                              << 
563                                                << 
564 G4bool G4EmParameters::UseRiGePairProductionMo << 
565 {                                              << 
566   return fUseRiGePairProductionModel;          << 
567 }                                              << 
568                                                << 
569 void G4EmParameters::SetUseRiGePairProductionM << 
570 {                                              << 
571   if (IsLocked()) { return; }                  << 
572   fUseRiGePairProductionModel = v;             << 
573 }                                              << 
574                                                << 
575 void G4EmParameters::ActivateDNA()                484 void G4EmParameters::ActivateDNA()
576 {                                                 485 {
577   if(IsLocked()) { return; }                      486   if(IsLocked()) { return; }
578   fDNA = true;                                    487   fDNA = true;
579 }                                                 488 }
580                                                   489 
581 void G4EmParameters::SetIsPrintedFlag(G4bool v    490 void G4EmParameters::SetIsPrintedFlag(G4bool val)
582 {                                                 491 {
583   fIsPrinted = val;                               492   fIsPrinted = val;
584 }                                                 493 }
585                                                   494 
586 G4bool G4EmParameters::IsPrintLocked() const      495 G4bool G4EmParameters::IsPrintLocked() const
587 {                                                 496 {
588   return fIsPrinted;                              497   return fIsPrinted;
589 }                                                 498 }
590                                                   499 
591 G4EmSaturation* G4EmParameters::GetEmSaturatio    500 G4EmSaturation* G4EmParameters::GetEmSaturation()
592 {                                                 501 {
593   if(nullptr == emSaturation) {                   502   if(nullptr == emSaturation) { 
594 #ifdef G4MULTITHREADED                            503 #ifdef G4MULTITHREADED
595     G4MUTEXLOCK(&emParametersMutex);              504     G4MUTEXLOCK(&emParametersMutex);
596     if(nullptr == emSaturation) {                 505     if(nullptr == emSaturation) { 
597 #endif                                            506 #endif
598       emSaturation = new G4EmSaturation(1);       507       emSaturation = new G4EmSaturation(1);
599 #ifdef G4MULTITHREADED                            508 #ifdef G4MULTITHREADED
600     }                                             509     }
601     G4MUTEXUNLOCK(&emParametersMutex);            510     G4MUTEXUNLOCK(&emParametersMutex);
602 #endif                                            511 #endif
603   }                                               512   }
604   birks = true;                                   513   birks = true;
605   return emSaturation;                            514   return emSaturation;
606 }                                                 515 }
607                                                   516 
608 void G4EmParameters::SetMinEnergy(G4double val    517 void G4EmParameters::SetMinEnergy(G4double val)
609 {                                                 518 {
610   if(IsLocked()) { return; }                      519   if(IsLocked()) { return; }
611   if(val > 1.e-3*CLHEP::eV && val < maxKinEner    520   if(val > 1.e-3*CLHEP::eV && val < maxKinEnergy) {
612     minKinEnergy = val;                           521     minKinEnergy = val;
613   } else {                                        522   } else {
614     G4ExceptionDescription ed;                    523     G4ExceptionDescription ed;
615     ed << "Value of MinKinEnergy - is out of r    524     ed << "Value of MinKinEnergy - is out of range: " << val/CLHEP::MeV 
616        << " MeV is ignored";                      525        << " MeV is ignored"; 
617     PrintWarning(ed);                             526     PrintWarning(ed);
618   }                                               527   }
619 }                                                 528 }
620                                                   529 
621 G4double G4EmParameters::MinKinEnergy() const     530 G4double G4EmParameters::MinKinEnergy() const
622 {                                                 531 {
623   return minKinEnergy;                            532   return minKinEnergy;
624 }                                                 533 }
625                                                   534 
626 void G4EmParameters::SetMaxEnergy(G4double val    535 void G4EmParameters::SetMaxEnergy(G4double val)
627 {                                                 536 {
628   if(IsLocked()) { return; }                      537   if(IsLocked()) { return; }
629   if(val > std::max(minKinEnergy,599.9*CLHEP:: << 538   if(val > std::max(minKinEnergy,9.99*CLHEP::MeV) && val < 1.e+7*CLHEP::TeV) {
630     maxKinEnergy = val;                           539     maxKinEnergy = val;
631   } else {                                        540   } else {
632     G4ExceptionDescription ed;                    541     G4ExceptionDescription ed;
633     ed << "Value of MaxKinEnergy is out of ran    542     ed << "Value of MaxKinEnergy is out of range: " 
634        << val/CLHEP::GeV                          543        << val/CLHEP::GeV 
635        << " GeV is ignored; allowed range 600  << 544        << " GeV is ignored; allowed range 10 MeV - 1.e+7 TeV"; 
636     PrintWarning(ed);                             545     PrintWarning(ed);
637   }                                               546   }
638 }                                                 547 }
639                                                   548 
640 G4double G4EmParameters::MaxKinEnergy() const     549 G4double G4EmParameters::MaxKinEnergy() const
641 {                                                 550 {
642   return maxKinEnergy;                            551   return maxKinEnergy;
643 }                                                 552 }
644                                                   553 
645 void G4EmParameters::SetMaxEnergyForCSDARange(    554 void G4EmParameters::SetMaxEnergyForCSDARange(G4double val)
646 {                                                 555 {
647   if(IsLocked()) { return; }                      556   if(IsLocked()) { return; }
648   if(val > minKinEnergy && val <= 100*CLHEP::T    557   if(val > minKinEnergy && val <= 100*CLHEP::TeV) {
649     maxKinEnergyCSDA = val;                       558     maxKinEnergyCSDA = val;
650   } else {                                        559   } else {
651     G4ExceptionDescription ed;                    560     G4ExceptionDescription ed;
652     ed << "Value of MaxKinEnergyCSDA is out of    561     ed << "Value of MaxKinEnergyCSDA is out of range: " 
653        << val/CLHEP::GeV << " GeV is ignored;     562        << val/CLHEP::GeV << " GeV is ignored; allowed range "
654        << minKinEnergy << " MeV - 100 TeV";       563        << minKinEnergy << " MeV - 100 TeV"; 
655     PrintWarning(ed);                             564     PrintWarning(ed);
656   }                                               565   }
657 }                                                 566 }
658                                                   567 
659 G4double G4EmParameters::MaxEnergyForCSDARange    568 G4double G4EmParameters::MaxEnergyForCSDARange() const
660 {                                                 569 {
661   return maxKinEnergyCSDA;                        570   return maxKinEnergyCSDA; 
662 }                                                 571 }
663                                                   572 
664 void G4EmParameters::SetLowestElectronEnergy(G    573 void G4EmParameters::SetLowestElectronEnergy(G4double val)
665 {                                                 574 {
666   if(IsLocked()) { return; }                      575   if(IsLocked()) { return; }
667   if(val >= 0.0) { lowestElectronEnergy = val;    576   if(val >= 0.0) { lowestElectronEnergy = val; }
668 }                                                 577 }
669                                                   578 
670 G4double G4EmParameters::LowestElectronEnergy(    579 G4double G4EmParameters::LowestElectronEnergy() const
671 {                                                 580 {
672   return lowestElectronEnergy;                    581   return lowestElectronEnergy; 
673 }                                                 582 }
674                                                   583 
675 void G4EmParameters::SetLowestMuHadEnergy(G4do    584 void G4EmParameters::SetLowestMuHadEnergy(G4double val)
676 {                                                 585 {
677   if(IsLocked()) { return; }                      586   if(IsLocked()) { return; }
678   if(val >= 0.0) { lowestMuHadEnergy = val; }     587   if(val >= 0.0) { lowestMuHadEnergy = val; }
679 }                                                 588 }
680                                                   589 
681 G4double G4EmParameters::LowestMuHadEnergy() c    590 G4double G4EmParameters::LowestMuHadEnergy() const
682 {                                                 591 {
683   return lowestMuHadEnergy;                       592   return lowestMuHadEnergy; 
684 }                                                 593 }
685                                                   594 
686 void G4EmParameters::SetLowestTripletEnergy(G4    595 void G4EmParameters::SetLowestTripletEnergy(G4double val)
687 {                                                 596 {
688   if(IsLocked()) { return; }                      597   if(IsLocked()) { return; }
689   if(val > 0.0) { lowestTripletEnergy = val; }    598   if(val > 0.0) { lowestTripletEnergy = val; }
690 }                                                 599 }
691                                                   600 
692 G4double G4EmParameters::LowestTripletEnergy()    601 G4double G4EmParameters::LowestTripletEnergy() const
693 {                                                 602 {
694   return lowestTripletEnergy;                     603   return lowestTripletEnergy;
695 }                                                 604 }
696                                                   605 
697 void G4EmParameters::SetMaxNIELEnergy(G4double    606 void G4EmParameters::SetMaxNIELEnergy(G4double val)
698 {                                                 607 {
699   if(IsLocked()) { return; }                      608   if(IsLocked()) { return; }
700   if(val >= 0.0) { maxNIELEnergy = val; }         609   if(val >= 0.0) { maxNIELEnergy = val; }
701 }                                                 610 }
702                                                   611 
703 G4double G4EmParameters::MaxNIELEnergy() const    612 G4double G4EmParameters::MaxNIELEnergy() const
704 {                                                 613 {
705   return maxNIELEnergy;                           614   return maxNIELEnergy;
706 }                                                 615 }
707                                                   616 
708 void G4EmParameters::SetMaxEnergyFor5DMuPair(G    617 void G4EmParameters::SetMaxEnergyFor5DMuPair(G4double val)
709 {                                                 618 {
710   if(IsLocked()) { return; }                      619   if(IsLocked()) { return; }
711   if(val > 0.0) { max5DEnergyForMuPair = val;     620   if(val > 0.0) { max5DEnergyForMuPair = val; }
712 }                                                 621 }
713                                                   622 
714 G4double G4EmParameters::MaxEnergyFor5DMuPair(    623 G4double G4EmParameters::MaxEnergyFor5DMuPair() const
715 {                                                 624 {
716   return max5DEnergyForMuPair;                    625   return max5DEnergyForMuPair;
717 }                                                 626 }
718                                                   627 
719 void G4EmParameters::SetLinearLossLimit(G4doub    628 void G4EmParameters::SetLinearLossLimit(G4double val)
720 {                                                 629 {
721   if(IsLocked()) { return; }                      630   if(IsLocked()) { return; }
722   if(val > 0.0 && val < 0.5) {                    631   if(val > 0.0 && val < 0.5) {
723     linLossLimit = val;                           632     linLossLimit = val;
724   } else {                                        633   } else {
725     G4ExceptionDescription ed;                    634     G4ExceptionDescription ed;
726     ed << "Value of linLossLimit is out of ran    635     ed << "Value of linLossLimit is out of range: " << val 
727        << " is ignored";                          636        << " is ignored"; 
728     PrintWarning(ed);                             637     PrintWarning(ed);
729   }                                               638   }
730 }                                                 639 }
731                                                   640 
732 G4double G4EmParameters::LinearLossLimit() con    641 G4double G4EmParameters::LinearLossLimit() const
733 {                                                 642 {
734   return linLossLimit;                            643   return linLossLimit;
735 }                                                 644 }
736                                                   645 
737 void G4EmParameters::SetBremsstrahlungTh(G4dou    646 void G4EmParameters::SetBremsstrahlungTh(G4double val)
738 {                                                 647 {
739   if(IsLocked()) { return; }                      648   if(IsLocked()) { return; }
740   if(val > 0.0) {                                 649   if(val > 0.0) {
741     bremsTh = val;                                650     bremsTh = val;
742   } else {                                        651   } else {
743     G4ExceptionDescription ed;                    652     G4ExceptionDescription ed;
744     ed << "Value of bremsstrahlung threshold i    653     ed << "Value of bremsstrahlung threshold is out of range: " 
745        << val/GeV << " GeV is ignored";           654        << val/GeV << " GeV is ignored"; 
746     PrintWarning(ed);                             655     PrintWarning(ed);
747   }                                               656   }
748 }                                                 657 }
749                                                   658 
750 G4double G4EmParameters::BremsstrahlungTh() co    659 G4double G4EmParameters::BremsstrahlungTh() const 
751 {                                                 660 {
752   return bremsTh;                                 661   return bremsTh;
753 }                                                 662 }
754                                                   663 
755 void G4EmParameters::SetMuHadBremsstrahlungTh(    664 void G4EmParameters::SetMuHadBremsstrahlungTh(G4double val)
756 {                                                 665 {
757   if(IsLocked()) { return; }                      666   if(IsLocked()) { return; }
758   if(val > 0.0) {                                 667   if(val > 0.0) {
759     bremsMuHadTh = val;                           668     bremsMuHadTh = val;
760   } else {                                        669   } else {
761     G4ExceptionDescription ed;                    670     G4ExceptionDescription ed;
762     ed << "Value of bremsstrahlung threshold i    671     ed << "Value of bremsstrahlung threshold is out of range: " 
763        << val/GeV << " GeV is ignored";           672        << val/GeV << " GeV is ignored"; 
764     PrintWarning(ed);                             673     PrintWarning(ed);
765   }                                               674   }
766 }                                                 675 }
767                                                   676 
768 G4double G4EmParameters::MuHadBremsstrahlungTh    677 G4double G4EmParameters::MuHadBremsstrahlungTh() const
769 {                                                 678 {
770   return bremsMuHadTh;                            679   return bremsMuHadTh;
771 }                                                 680 }
772                                                   681 
773 void G4EmParameters::SetLambdaFactor(G4double     682 void G4EmParameters::SetLambdaFactor(G4double val)
774 {                                                 683 {
775   if(IsLocked()) { return; }                      684   if(IsLocked()) { return; }
776   if(val > 0.0 && val < 1.0) {                    685   if(val > 0.0 && val < 1.0) {
777     lambdaFactor = val;                           686     lambdaFactor = val;
778   } else {                                        687   } else {
779     G4ExceptionDescription ed;                    688     G4ExceptionDescription ed;
780     ed << "Value of lambda factor is out of ra    689     ed << "Value of lambda factor is out of range: " << val 
781        << " is ignored";                          690        << " is ignored"; 
782     PrintWarning(ed);                             691     PrintWarning(ed);
783   }                                               692   }
784 }                                                 693 }
785                                                   694 
786 G4double G4EmParameters::LambdaFactor() const     695 G4double G4EmParameters::LambdaFactor() const 
787 {                                                 696 {
788   return lambdaFactor;                            697   return lambdaFactor;
789 }                                                 698 }
790                                                   699 
791 void G4EmParameters::SetFactorForAngleLimit(G4    700 void G4EmParameters::SetFactorForAngleLimit(G4double val)
792 {                                                 701 {
793   if(IsLocked()) { return; }                      702   if(IsLocked()) { return; }
794   if(val > 0.0) {                                 703   if(val > 0.0) {
795     factorForAngleLimit = val;                    704     factorForAngleLimit = val;
796   } else {                                        705   } else {
797     G4ExceptionDescription ed;                    706     G4ExceptionDescription ed;
798     ed << "Value of factor for enegry limit is    707     ed << "Value of factor for enegry limit is out of range: " 
799        << val << " is ignored";                   708        << val << " is ignored"; 
800     PrintWarning(ed);                             709     PrintWarning(ed);
801   }                                               710   }
802 }                                                 711 }
803                                                   712 
804 G4double G4EmParameters::FactorForAngleLimit()    713 G4double G4EmParameters::FactorForAngleLimit() const 
805 {                                                 714 {
806   return factorForAngleLimit;                     715   return factorForAngleLimit;
807 }                                                 716 }
808                                                   717 
809 void G4EmParameters::SetMscThetaLimit(G4double    718 void G4EmParameters::SetMscThetaLimit(G4double val)
810 {                                                 719 {
811   if(IsLocked()) { return; }                      720   if(IsLocked()) { return; }
812   if(val >= 0.0 && val <= pi) {                   721   if(val >= 0.0 && val <= pi) {
813     thetaLimit = val;                             722     thetaLimit = val;
814   } else {                                        723   } else {
815     G4ExceptionDescription ed;                    724     G4ExceptionDescription ed;
816     ed << "Value of polar angle limit is out o    725     ed << "Value of polar angle limit is out of range: " 
817        << val << " is ignored";                   726        << val << " is ignored"; 
818     PrintWarning(ed);                             727     PrintWarning(ed);
819   }                                               728   }
820 }                                                 729 }
821                                                   730 
822 G4double G4EmParameters::MscThetaLimit() const    731 G4double G4EmParameters::MscThetaLimit() const 
823 {                                                 732 {
824   return thetaLimit;                              733   return thetaLimit;
825 }                                                 734 }
826                                                   735 
827 void G4EmParameters::SetMscEnergyLimit(G4doubl    736 void G4EmParameters::SetMscEnergyLimit(G4double val)
828 {                                                 737 {
829   if(IsLocked()) { return; }                      738   if(IsLocked()) { return; }
830   if(val >= 0.0) {                                739   if(val >= 0.0) {
831     energyLimit = val;                            740     energyLimit = val;
832   } else {                                        741   } else {
833     G4ExceptionDescription ed;                    742     G4ExceptionDescription ed;
834     ed << "Value of msc energy limit is out of    743     ed << "Value of msc energy limit is out of range: " 
835        << val << " is ignored";                   744        << val << " is ignored"; 
836     PrintWarning(ed);                             745     PrintWarning(ed);
837   }                                               746   }
838 }                                                 747 }
839                                                   748 
840 G4double G4EmParameters::MscEnergyLimit() cons    749 G4double G4EmParameters::MscEnergyLimit() const
841 {                                                 750 {
842   return energyLimit;                             751   return energyLimit;
843 }                                                 752 }
844                                                   753 
845 void G4EmParameters::SetMscRangeFactor(G4doubl    754 void G4EmParameters::SetMscRangeFactor(G4double val)
846 {                                                 755 {
847   if(IsLocked()) { return; }                      756   if(IsLocked()) { return; }
848   if(val > 0.0 && val < 1.0) {                    757   if(val > 0.0 && val < 1.0) {
849     rangeFactor = val;                            758     rangeFactor = val;
850   } else {                                        759   } else {
851     G4ExceptionDescription ed;                    760     G4ExceptionDescription ed;
852     ed << "Value of rangeFactor is out of rang    761     ed << "Value of rangeFactor is out of range: " 
853        << val << " is ignored";                   762        << val << " is ignored"; 
854     PrintWarning(ed);                             763     PrintWarning(ed);
855   }                                               764   }
856 }                                                 765 }
857                                                   766 
858 G4double G4EmParameters::MscRangeFactor() cons    767 G4double G4EmParameters::MscRangeFactor() const 
859 {                                                 768 {
860   return rangeFactor;                             769   return rangeFactor;
861 }                                                 770 }
862                                                   771 
863 void G4EmParameters::SetMscMuHadRangeFactor(G4    772 void G4EmParameters::SetMscMuHadRangeFactor(G4double val)
864 {                                                 773 {
865   if(IsLocked()) { return; }                      774   if(IsLocked()) { return; }
866   if(val > 0.0 && val < 1.0) {                    775   if(val > 0.0 && val < 1.0) {
867     rangeFactorMuHad = val;                       776     rangeFactorMuHad = val;
868   } else {                                        777   } else {
869     G4ExceptionDescription ed;                    778     G4ExceptionDescription ed;
870     ed << "Value of rangeFactorMuHad is out of    779     ed << "Value of rangeFactorMuHad is out of range: " 
871        << val << " is ignored";                   780        << val << " is ignored"; 
872     PrintWarning(ed);                             781     PrintWarning(ed);
873   }                                               782   }
874 }                                                 783 }
875                                                   784 
876 G4double G4EmParameters::MscMuHadRangeFactor()    785 G4double G4EmParameters::MscMuHadRangeFactor() const 
877 {                                                 786 {
878   return rangeFactorMuHad;                        787   return rangeFactorMuHad;
879 }                                                 788 }
880                                                   789 
881 void G4EmParameters::SetMscGeomFactor(G4double    790 void G4EmParameters::SetMscGeomFactor(G4double val)
882 {                                                 791 {
883   if(IsLocked()) { return; }                      792   if(IsLocked()) { return; }
884   if(val >= 1.0) {                                793   if(val >= 1.0) {
885     geomFactor = val;                             794     geomFactor = val;
886   } else {                                        795   } else {
887     G4ExceptionDescription ed;                    796     G4ExceptionDescription ed;
888     ed << "Value of geomFactor is out of range    797     ed << "Value of geomFactor is out of range: " 
889        << val << " is ignored";                   798        << val << " is ignored"; 
890     PrintWarning(ed);                             799     PrintWarning(ed);
891   }                                               800   }
892 }                                                 801 }
893                                                   802 
894 G4double G4EmParameters::MscGeomFactor() const    803 G4double G4EmParameters::MscGeomFactor() const 
895 {                                                 804 {
896   return geomFactor;                              805   return geomFactor;
897 }                                                 806 }
898                                                   807 
899 void G4EmParameters::SetMscSafetyFactor(G4doub    808 void G4EmParameters::SetMscSafetyFactor(G4double val)
900 {                                                 809 {
901   if(IsLocked()) { return; }                      810   if(IsLocked()) { return; }
902   if(val >= 0.1) {                                811   if(val >= 0.1) {
903     safetyFactor = val;                           812     safetyFactor = val;
904   } else {                                        813   } else {
905     G4ExceptionDescription ed;                    814     G4ExceptionDescription ed;
906     ed << "Value of safetyFactor is out of ran    815     ed << "Value of safetyFactor is out of range: " 
907        << val << " is ignored";                   816        << val << " is ignored"; 
908     PrintWarning(ed);                             817     PrintWarning(ed);
909   }                                               818   }
910 }                                                 819 }
911                                                   820 
912 G4double G4EmParameters::MscSafetyFactor() con    821 G4double G4EmParameters::MscSafetyFactor() const 
913 {                                                 822 {
914   return safetyFactor;                            823   return safetyFactor;
915 }                                                 824 }
916                                                   825 
917 void G4EmParameters::SetMscLambdaLimit(G4doubl    826 void G4EmParameters::SetMscLambdaLimit(G4double val)
918 {                                                 827 {
919   if(IsLocked()) { return; }                      828   if(IsLocked()) { return; }
920   if(val >= 0.0) {                                829   if(val >= 0.0) {
921     lambdaLimit = val;                            830     lambdaLimit = val;
922   } else {                                        831   } else {
923     G4ExceptionDescription ed;                    832     G4ExceptionDescription ed;
924     ed << "Value of lambdaLimit is out of rang    833     ed << "Value of lambdaLimit is out of range: " 
925        << val << " is ignored";                   834        << val << " is ignored"; 
926     PrintWarning(ed);                             835     PrintWarning(ed);
927   }                                               836   }
928 }                                                 837 }
929                                                   838 
930 G4double G4EmParameters::MscLambdaLimit() cons    839 G4double G4EmParameters::MscLambdaLimit() const 
931 {                                                 840 {
932   return lambdaLimit;                             841   return lambdaLimit;
933 }                                                 842 }
934                                                   843 
935 void G4EmParameters::SetMscSkin(G4double val)     844 void G4EmParameters::SetMscSkin(G4double val)
936 {                                                 845 {
937   if(IsLocked()) { return; }                      846   if(IsLocked()) { return; }
938   if(val >= 1.0) {                                847   if(val >= 1.0) {
939     skin = val;                                   848     skin = val;
940   } else {                                        849   } else {
941     G4ExceptionDescription ed;                    850     G4ExceptionDescription ed;
942     ed << "Value of skin is out of range: "       851     ed << "Value of skin is out of range: " 
943        << val << " is ignored";                   852        << val << " is ignored"; 
944     PrintWarning(ed);                             853     PrintWarning(ed);
945   }                                               854   }
946 }                                                 855 }
947                                                   856 
948 G4double G4EmParameters::MscSkin() const          857 G4double G4EmParameters::MscSkin() const 
949 {                                                 858 {
950   return skin;                                    859   return skin;
951 }                                                 860 }
952                                                   861 
953 void G4EmParameters::SetScreeningFactor(G4doub    862 void G4EmParameters::SetScreeningFactor(G4double val)
954 {                                                 863 {
955   if(IsLocked()) { return; }                      864   if(IsLocked()) { return; }
956   if(val > 0.0) {                                 865   if(val > 0.0) {
957     factorScreen = val;                           866     factorScreen = val;
958   } else {                                        867   } else {
959     G4ExceptionDescription ed;                    868     G4ExceptionDescription ed;
960     ed << "Value of factorScreen is out of ran    869     ed << "Value of factorScreen is out of range: " 
961        << val << " is ignored";                   870        << val << " is ignored"; 
962     PrintWarning(ed);                             871     PrintWarning(ed);
963   }                                               872   }
964 }                                                 873 }
965                                                   874 
966 G4double G4EmParameters::ScreeningFactor() con    875 G4double G4EmParameters::ScreeningFactor() const
967 {                                                 876 {
968   return factorScreen;                            877   return factorScreen;
969 }                                                 878 }
970                                                   879 
971 void G4EmParameters::SetStepFunction(G4double     880 void G4EmParameters::SetStepFunction(G4double v1, G4double v2)
972 {                                                 881 {
973   if(IsLocked()) { return; }                      882   if(IsLocked()) { return; }
974   fBParameters->SetStepFunction(v1, v2);          883   fBParameters->SetStepFunction(v1, v2);
975 }                                                 884 }
976                                                   885 
977 void G4EmParameters::SetStepFunctionMuHad(G4do    886 void G4EmParameters::SetStepFunctionMuHad(G4double v1, G4double v2)
978 {                                                 887 {
979   if(IsLocked()) { return; }                      888   if(IsLocked()) { return; }
980   fBParameters->SetStepFunctionMuHad(v1, v2);     889   fBParameters->SetStepFunctionMuHad(v1, v2);
981 }                                                 890 }
982                                                   891 
983 void G4EmParameters::SetStepFunctionLightIons(    892 void G4EmParameters::SetStepFunctionLightIons(G4double v1, G4double v2)
984 {                                                 893 {
985   if(IsLocked()) { return; }                      894   if(IsLocked()) { return; }
986   fBParameters->SetStepFunctionLightIons(v1, v    895   fBParameters->SetStepFunctionLightIons(v1, v2);
987 }                                                 896 }
988                                                   897 
989 void G4EmParameters::SetStepFunctionIons(G4dou    898 void G4EmParameters::SetStepFunctionIons(G4double v1, G4double v2)
990 {                                                 899 {
991   if(IsLocked()) { return; }                      900   if(IsLocked()) { return; }
992   fBParameters->SetStepFunctionIons(v1, v2);      901   fBParameters->SetStepFunctionIons(v1, v2);
993 }                                                 902 }
994                                                   903 
995 void G4EmParameters::FillStepFunction(const G4    904 void G4EmParameters::FillStepFunction(const G4ParticleDefinition* part, G4VEnergyLossProcess* proc) const
996 {                                                 905 {
997   fBParameters->FillStepFunction(part, proc);     906   fBParameters->FillStepFunction(part, proc);
998 }                                                 907 }
999                                                   908 
1000 G4int G4EmParameters::NumberOfBins() const       909 G4int G4EmParameters::NumberOfBins() const 
1001 {                                                910 {
1002   return nbinsPerDecade*G4lrint(std::log10(ma    911   return nbinsPerDecade*G4lrint(std::log10(maxKinEnergy/minKinEnergy));
1003 }                                                912 }
1004                                                  913 
1005 void G4EmParameters::SetNumberOfBinsPerDecade    914 void G4EmParameters::SetNumberOfBinsPerDecade(G4int val)
1006 {                                                915 {
1007   if(IsLocked()) { return; }                     916   if(IsLocked()) { return; }
1008   if(val >= 5 && val < 1000000) {                917   if(val >= 5 && val < 1000000) {
1009     nbinsPerDecade = val;                        918     nbinsPerDecade = val;
1010   } else {                                       919   } else {
1011     G4ExceptionDescription ed;                   920     G4ExceptionDescription ed;
1012     ed << "Value of number of bins per decade    921     ed << "Value of number of bins per decade is out of range: " 
1013        << val << " is ignored";                  922        << val << " is ignored"; 
1014     PrintWarning(ed);                            923     PrintWarning(ed);
1015   }                                              924   }
1016 }                                                925 }
1017                                                  926 
1018 G4int G4EmParameters::NumberOfBinsPerDecade()    927 G4int G4EmParameters::NumberOfBinsPerDecade() const 
1019 {                                                928 {
1020   return nbinsPerDecade;                         929   return nbinsPerDecade; 
1021 }                                                930 }
1022                                                  931 
1023 void G4EmParameters::SetVerbose(G4int val)       932 void G4EmParameters::SetVerbose(G4int val)
1024 {                                                933 {
1025   if(IsLocked()) { return; }                     934   if(IsLocked()) { return; }
1026   verbose = val;                                 935   verbose = val;
1027   workerVerbose = std::min(workerVerbose, ver    936   workerVerbose = std::min(workerVerbose, verbose);
1028 }                                                937 }
1029                                                  938 
1030 G4int G4EmParameters::Verbose() const            939 G4int G4EmParameters::Verbose() const 
1031 {                                                940 {
1032   return verbose;                                941   return verbose;
1033 }                                                942 }
1034                                                  943 
1035 void G4EmParameters::SetWorkerVerbose(G4int v    944 void G4EmParameters::SetWorkerVerbose(G4int val)
1036 {                                                945 {
1037   if(IsLocked()) { return; }                     946   if(IsLocked()) { return; }
1038   workerVerbose = val;                           947   workerVerbose = val;
1039 }                                                948 }
1040                                                  949 
1041 G4int G4EmParameters::WorkerVerbose() const      950 G4int G4EmParameters::WorkerVerbose() const 
1042 {                                                951 {
1043   return workerVerbose;                          952   return workerVerbose;
1044 }                                                953 }
1045                                                  954 
1046 void G4EmParameters::SetNumberForFreeVector(G << 
1047 {                                             << 
1048   if(IsLocked()) { return; }                  << 
1049   nForFreeVector = val;                       << 
1050 }                                             << 
1051                                               << 
1052 G4int G4EmParameters::NumberForFreeVector() c << 
1053 {                                             << 
1054   return nForFreeVector;                      << 
1055 }                                             << 
1056                                               << 
1057 void G4EmParameters::SetTransportationWithMsc << 
1058 {                                             << 
1059   if(IsLocked()) { return; }                  << 
1060   fTransportationWithMsc = val;               << 
1061 }                                             << 
1062                                               << 
1063 G4TransportationWithMscType G4EmParameters::T << 
1064 {                                             << 
1065   return fTransportationWithMsc;              << 
1066 }                                             << 
1067                                               << 
1068 void G4EmParameters::SetFluctuationType(G4EmF << 
1069 {                                             << 
1070   if(IsLocked()) { return; }                  << 
1071   fFluct = val;                               << 
1072 }                                             << 
1073                                               << 
1074 G4EmFluctuationType G4EmParameters::Fluctuati << 
1075 {                                             << 
1076   return fFluct;                              << 
1077 }                                             << 
1078                                               << 
1079 void G4EmParameters::SetPositronAtRestModelTy << 
1080 {                                             << 
1081   if(IsLocked()) { return; }                  << 
1082   fPositronium = val;                         << 
1083 }                                             << 
1084                                               << 
1085 G4PositronAtRestModelType G4EmParameters::Pos << 
1086 {                                             << 
1087   return fPositronium;                        << 
1088 }                                             << 
1089                                               << 
1090 void G4EmParameters::SetMscStepLimitType(G4Ms    955 void G4EmParameters::SetMscStepLimitType(G4MscStepLimitType val)
1091 {                                                956 {
1092   if(IsLocked()) { return; }                     957   if(IsLocked()) { return; }
1093   mscStepLimit = val;                            958   mscStepLimit = val;
1094 }                                                959 }
1095                                                  960 
1096 G4MscStepLimitType G4EmParameters::MscStepLim    961 G4MscStepLimitType G4EmParameters::MscStepLimitType() const 
1097 {                                                962 {
1098   return mscStepLimit;                           963   return mscStepLimit;
1099 }                                                964 }
1100                                                  965 
1101 void G4EmParameters::SetMscMuHadStepLimitType    966 void G4EmParameters::SetMscMuHadStepLimitType(G4MscStepLimitType val)
1102 {                                                967 {
1103   if(IsLocked()) { return; }                     968   if(IsLocked()) { return; }
1104   mscStepLimitMuHad = val;                       969   mscStepLimitMuHad = val;
1105 }                                                970 }
1106                                                  971 
1107 G4MscStepLimitType G4EmParameters::MscMuHadSt    972 G4MscStepLimitType G4EmParameters::MscMuHadStepLimitType() const 
1108 {                                                973 {
1109   return mscStepLimitMuHad;                      974   return mscStepLimitMuHad;
1110 }                                                975 }
1111                                                  976 
1112 void G4EmParameters::SetSingleScatteringType(    977 void G4EmParameters::SetSingleScatteringType(G4eSingleScatteringType val)
1113 {                                                978 {
1114   if(IsLocked()) { return; }                     979   if(IsLocked()) { return; }
1115   fSStype = val;                                 980   fSStype = val;
1116 }                                                981 }
1117                                                  982 
1118 G4eSingleScatteringType G4EmParameters::Singl    983 G4eSingleScatteringType G4EmParameters::SingleScatteringType() const
1119 {                                                984 {
1120   return fSStype;                                985   return fSStype;
1121 }                                                986 }
1122                                                  987 
1123 void                                             988 void 
1124 G4EmParameters::SetNuclearFormfactorType(G4Nu    989 G4EmParameters::SetNuclearFormfactorType(G4NuclearFormfactorType val)
1125 {                                                990 {
1126   if(IsLocked()) { return; }                     991   if(IsLocked()) { return; }
1127   nucFormfactor = val;                           992   nucFormfactor = val;
1128 }                                                993 }
1129                                                  994 
1130 G4NuclearFormfactorType G4EmParameters::Nucle    995 G4NuclearFormfactorType G4EmParameters::NuclearFormfactorType() const
1131 {                                                996 {
1132   return nucFormfactor;                          997   return nucFormfactor;
1133 }                                                998 }
1134                                                  999 
1135 void G4EmParameters::SetDNAeSolvationSubType(    1000 void G4EmParameters::SetDNAeSolvationSubType(G4DNAModelSubType val)
1136 {                                                1001 {
1137   if(IsLocked()) { return; }                     1002   if(IsLocked()) { return; }
1138   fCParameters->SetDNAeSolvationSubType(val);    1003   fCParameters->SetDNAeSolvationSubType(val);
1139   ActivateDNA();                                 1004   ActivateDNA();
1140 }                                                1005 }
1141                                                  1006 
1142 G4DNAModelSubType G4EmParameters::DNAeSolvati    1007 G4DNAModelSubType G4EmParameters::DNAeSolvationSubType() const
1143 {                                                1008 {
1144   return fCParameters->DNAeSolvationSubType()    1009   return fCParameters->DNAeSolvationSubType();
1145 }                                                1010 }
1146                                                  1011 
1147 void G4EmParameters::SetConversionType(G4int     1012 void G4EmParameters::SetConversionType(G4int val)
1148 {                                                1013 {
1149   if(IsLocked()) { return; }                     1014   if(IsLocked()) { return; }
1150   tripletConv = val;                             1015   tripletConv = val;
1151 }                                                1016 }
1152                                                  1017 
1153 G4int G4EmParameters::GetConversionType() con    1018 G4int G4EmParameters::GetConversionType() const
1154 {                                                1019 {
1155   return tripletConv;                            1020   return tripletConv;
1156 }                                                1021 }
1157                                                  1022 
1158 void G4EmParameters::SetPIXECrossSectionModel    1023 void G4EmParameters::SetPIXECrossSectionModel(const G4String& sss)
1159 {                                                1024 {
1160   if(IsLocked()) { return; }                     1025   if(IsLocked()) { return; }
1161   fCParameters->SetPIXECrossSectionModel(sss)    1026   fCParameters->SetPIXECrossSectionModel(sss);
1162 }                                                1027 }
1163                                                  1028 
1164 const G4String& G4EmParameters::PIXECrossSect    1029 const G4String& G4EmParameters::PIXECrossSectionModel()
1165 {                                                1030 {
1166   return fCParameters->PIXECrossSectionModel(    1031   return fCParameters->PIXECrossSectionModel();
1167 }                                                1032 }
1168                                                  1033 
1169 void G4EmParameters::SetPIXEElectronCrossSect    1034 void G4EmParameters::SetPIXEElectronCrossSectionModel(const G4String& sss)
1170 {                                                1035 {
1171   if(IsLocked()) { return; }                     1036   if(IsLocked()) { return; }
1172   fCParameters->SetPIXEElectronCrossSectionMo    1037   fCParameters->SetPIXEElectronCrossSectionModel(sss);
1173 }                                                1038 }
1174                                                  1039 
1175 const G4String& G4EmParameters::PIXEElectronC    1040 const G4String& G4EmParameters::PIXEElectronCrossSectionModel()
1176 {                                                1041 {
1177   return fCParameters->PIXEElectronCrossSecti    1042   return fCParameters->PIXEElectronCrossSectionModel();
1178 }                                                1043 }
1179                                                  1044 
1180 void G4EmParameters::SetLivermoreDataDir(cons    1045 void G4EmParameters::SetLivermoreDataDir(const G4String& sss)
1181 {                                                1046 {
1182   if(IsLocked()) { return; }                     1047   if(IsLocked()) { return; }
1183   fCParameters->SetLivermoreDataDir(sss);        1048   fCParameters->SetLivermoreDataDir(sss);
1184 }                                                1049 }
1185                                                  1050 
1186 const G4String& G4EmParameters::LivermoreData    1051 const G4String& G4EmParameters::LivermoreDataDir()
1187 {                                                1052 {
1188   return fCParameters->LivermoreDataDir();       1053   return fCParameters->LivermoreDataDir();
1189 }                                                1054 }
1190                                                  1055 
1191 void G4EmParameters::PrintWarning(G4Exception    1056 void G4EmParameters::PrintWarning(G4ExceptionDescription& ed) const
1192 {                                                1057 {
1193   G4Exception("G4EmParameters", "em0044", Jus    1058   G4Exception("G4EmParameters", "em0044", JustWarning, ed);
1194 }                                                1059 }
1195                                                  1060 
1196 void G4EmParameters::AddPAIModel(const G4Stri    1061 void G4EmParameters::AddPAIModel(const G4String& particle,
1197                                  const G4Stri    1062                                  const G4String& region,
1198                                  const G4Stri    1063                                  const G4String& type)
1199 {                                                1064 {
1200   if(IsLocked()) { return; }                     1065   if(IsLocked()) { return; }
1201   fBParameters->AddPAIModel(particle, region,    1066   fBParameters->AddPAIModel(particle, region, type);
1202 }                                                1067 }
1203                                                  1068 
1204 const std::vector<G4String>& G4EmParameters::    1069 const std::vector<G4String>& G4EmParameters::ParticlesPAI() const
1205 {                                                1070 {
1206   return fBParameters->ParticlesPAI();           1071   return fBParameters->ParticlesPAI();
1207 }                                                1072 }
1208                                                  1073 
1209 const std::vector<G4String>& G4EmParameters::    1074 const std::vector<G4String>& G4EmParameters::RegionsPAI() const
1210 {                                                1075 {
1211   return fBParameters->RegionsPAI();             1076   return fBParameters->RegionsPAI();
1212 }                                                1077 }
1213                                                  1078 
1214 const std::vector<G4String>& G4EmParameters::    1079 const std::vector<G4String>& G4EmParameters::TypesPAI() const
1215 {                                                1080 {
1216   return fBParameters->TypesPAI();               1081   return fBParameters->TypesPAI();
1217 }                                                1082 }
1218                                                  1083 
1219 void G4EmParameters::AddMicroElec(const G4Str    1084 void G4EmParameters::AddMicroElec(const G4String& region)
1220 {                                                1085 {
1221   if(IsLocked()) { return; }                     1086   if(IsLocked()) { return; }
1222   fCParameters->AddMicroElec(region);            1087   fCParameters->AddMicroElec(region);
1223 }                                                1088 }
1224                                                  1089 
1225 const std::vector<G4String>& G4EmParameters::    1090 const std::vector<G4String>& G4EmParameters::RegionsMicroElec() const
1226 {                                                1091 {
1227   return fCParameters->RegionsMicroElec();       1092   return fCParameters->RegionsMicroElec();
1228 }                                                1093 }
1229                                                  1094 
1230 void G4EmParameters::AddDNA(const G4String& r    1095 void G4EmParameters::AddDNA(const G4String& region, const G4String& type)
1231 {                                                1096 {
1232   if(IsLocked()) { return; }                     1097   if(IsLocked()) { return; }
1233   fCParameters->AddDNA(region, type);            1098   fCParameters->AddDNA(region, type);
1234   ActivateDNA();                                 1099   ActivateDNA();
1235 }                                                1100 }
1236                                                  1101 
1237 const std::vector<G4String>& G4EmParameters::    1102 const std::vector<G4String>& G4EmParameters::RegionsDNA() const
1238 {                                                1103 {
1239   return fCParameters->RegionsDNA();             1104   return fCParameters->RegionsDNA();
1240 }                                                1105 }
1241                                                  1106 
1242 const std::vector<G4String>& G4EmParameters::    1107 const std::vector<G4String>& G4EmParameters::TypesDNA() const
1243 {                                                1108 {
1244   return fCParameters->TypesDNA();               1109   return fCParameters->TypesDNA();
1245 }                                                1110 }
1246                                                  1111 
1247 void G4EmParameters::AddPhysics(const G4Strin    1112 void G4EmParameters::AddPhysics(const G4String& region, const G4String& type)
1248 {                                                1113 {
1249   if(IsLocked()) { return; }                     1114   if(IsLocked()) { return; }
1250   fBParameters->AddPhysics(region, type);        1115   fBParameters->AddPhysics(region, type);
1251 }                                                1116 }
1252                                                  1117 
1253 const std::vector<G4String>& G4EmParameters::    1118 const std::vector<G4String>& G4EmParameters::RegionsPhysics() const
1254 {                                                1119 {
1255   return fBParameters->RegionsPhysics();         1120   return fBParameters->RegionsPhysics();
1256 }                                                1121 }
1257                                                  1122 
1258 const std::vector<G4String>& G4EmParameters::    1123 const std::vector<G4String>& G4EmParameters::TypesPhysics() const
1259 {                                                1124 {
1260   return fBParameters->TypesPhysics();           1125   return fBParameters->TypesPhysics();
1261 }                                                1126 }
1262                                                  1127 
1263 void G4EmParameters::SetSubCutRegion(const G4    1128 void G4EmParameters::SetSubCutRegion(const G4String& region)
1264 {                                                1129 {
1265   if(IsLocked()) { return; }                     1130   if(IsLocked()) { return; }
1266   fBParameters->SetSubCutRegion(region);         1131   fBParameters->SetSubCutRegion(region);
1267 }                                                1132 }
1268                                                  1133 
1269 void                                             1134 void 
1270 G4EmParameters::SetDeexActiveRegion(const G4S    1135 G4EmParameters::SetDeexActiveRegion(const G4String& region, G4bool adeex,
1271                                     G4bool aa    1136                                     G4bool aauger, G4bool apixe)
1272 {                                                1137 {
1273   if(IsLocked()) { return; }                     1138   if(IsLocked()) { return; }
1274   fCParameters->SetDeexActiveRegion(region, a    1139   fCParameters->SetDeexActiveRegion(region, adeex, aauger, apixe);
1275 }                                                1140 }
1276                                                  1141 
1277 void                                             1142 void 
1278 G4EmParameters::SetProcessBiasingFactor(const    1143 G4EmParameters::SetProcessBiasingFactor(const G4String& procname, 
1279                                         G4dou    1144                                         G4double val, G4bool wflag)
1280 {                                                1145 {
1281   if(IsLocked()) { return; }                     1146   if(IsLocked()) { return; }
1282   fBParameters->SetProcessBiasingFactor(procn    1147   fBParameters->SetProcessBiasingFactor(procname, val, wflag);
1283 }                                                1148 }
1284                                                  1149 
1285 void                                             1150 void 
1286 G4EmParameters::ActivateForcedInteraction(con    1151 G4EmParameters::ActivateForcedInteraction(const G4String& procname, 
1287                                           con    1152                                           const G4String& region,
1288                                           G4d    1153                                           G4double length, 
1289                                           G4b    1154                                           G4bool wflag)
1290 {                                                1155 {
1291   if(IsLocked() && !gener) { return; }           1156   if(IsLocked() && !gener) { return; }
1292   fBParameters->ActivateForcedInteraction(pro    1157   fBParameters->ActivateForcedInteraction(procname, region, length, wflag);
1293 }                                                1158 }
1294                                                  1159 
1295 void                                             1160 void 
1296 G4EmParameters::ActivateSecondaryBiasing(cons    1161 G4EmParameters::ActivateSecondaryBiasing(const G4String& procname,
1297                                          cons    1162                                          const G4String& region, 
1298                                          G4do    1163                                          G4double factor,
1299                                          G4do    1164                                          G4double energyLim)
1300 {                                                1165 {
1301   if(IsLocked()) { return; }                     1166   if(IsLocked()) { return; }
1302   fBParameters->ActivateSecondaryBiasing(proc    1167   fBParameters->ActivateSecondaryBiasing(procname, region, factor, energyLim);
1303 }                                                1168 }
1304                                                  1169 
1305 void G4EmParameters::DefineRegParamForLoss(G4    1170 void G4EmParameters::DefineRegParamForLoss(G4VEnergyLossProcess* ptr) const
1306 {                                                1171 {
1307   fBParameters->DefineRegParamForLoss(ptr);      1172   fBParameters->DefineRegParamForLoss(ptr);
1308 }                                                1173 }
1309                                                  1174 
1310 void G4EmParameters::DefineRegParamForEM(G4VE    1175 void G4EmParameters::DefineRegParamForEM(G4VEmProcess* ptr) const
1311 {                                                1176 {
1312   fBParameters->DefineRegParamForEM(ptr);        1177   fBParameters->DefineRegParamForEM(ptr);
1313 }                                                1178 }
1314                                                  1179 
1315 G4bool G4EmParameters::QuantumEntanglement()     1180 G4bool G4EmParameters::QuantumEntanglement() const
1316 {                                                1181 {
1317   return fBParameters->QuantumEntanglement();    1182   return fBParameters->QuantumEntanglement(); 
1318 }                                                1183 }
1319                                                  1184 
1320 void G4EmParameters::SetQuantumEntanglement(G    1185 void G4EmParameters::SetQuantumEntanglement(G4bool v)
1321 {                                                1186 {
1322   if(IsLocked()) { return; }                     1187   if(IsLocked()) { return; }
1323   fBParameters->SetQuantumEntanglement(v);       1188   fBParameters->SetQuantumEntanglement(v); 
1324 }                                                1189 }
1325                                                  1190 
1326 G4bool G4EmParameters::GetDirectionalSplittin    1191 G4bool G4EmParameters::GetDirectionalSplitting() const { 
1327   return fBParameters->GetDirectionalSplittin    1192   return fBParameters->GetDirectionalSplitting(); 
1328 }                                                1193 }
1329                                                  1194 
1330 void G4EmParameters::SetDirectionalSplitting(    1195 void G4EmParameters::SetDirectionalSplitting(G4bool v) 
1331 {                                                1196 { 
1332   if(IsLocked()) { return; }                     1197   if(IsLocked()) { return; }
1333   fBParameters->SetDirectionalSplitting(v);      1198   fBParameters->SetDirectionalSplitting(v); 
1334 }                                                1199 }
1335                                                  1200 
1336 void G4EmParameters::SetDirectionalSplittingT    1201 void G4EmParameters::SetDirectionalSplittingTarget(const G4ThreeVector& v)
1337 {                                                1202 { 
1338   if(IsLocked()) { return; }                     1203   if(IsLocked()) { return; }
1339   fBParameters->SetDirectionalSplittingTarget    1204   fBParameters->SetDirectionalSplittingTarget(v);
1340 }                                                1205 }
1341                                                  1206 
1342 G4ThreeVector G4EmParameters::GetDirectionalS    1207 G4ThreeVector G4EmParameters::GetDirectionalSplittingTarget() const
1343 {                                                1208 { 
1344   return fBParameters->GetDirectionalSplittin    1209   return fBParameters->GetDirectionalSplittingTarget(); 
1345 }                                                1210 }
1346                                                  1211 
1347 void G4EmParameters::SetDirectionalSplittingR    1212 void G4EmParameters::SetDirectionalSplittingRadius(G4double r)
1348 {                                                1213 { 
1349   if(IsLocked()) { return; }                     1214   if(IsLocked()) { return; }
1350   fBParameters->SetDirectionalSplittingRadius    1215   fBParameters->SetDirectionalSplittingRadius(r); 
1351 }                                                1216 }
1352                                                  1217 
1353 G4double G4EmParameters::GetDirectionalSplitt    1218 G4double G4EmParameters::GetDirectionalSplittingRadius()
1354 {                                                1219 { 
1355   return fBParameters->GetDirectionalSplittin    1220   return fBParameters->GetDirectionalSplittingRadius(); 
1356 }                                                1221 }
1357                                                  1222 
1358 void G4EmParameters::DefineRegParamForDeex(G4    1223 void G4EmParameters::DefineRegParamForDeex(G4VAtomDeexcitation* ptr) const
1359 {                                                1224 {
1360   fCParameters->DefineRegParamForDeex(ptr);      1225   fCParameters->DefineRegParamForDeex(ptr); 
1361 }                                                1226 }
1362                                                  1227 
1363 const G4String& G4EmParameters::GetDirLEDATA( << 
1364 {                                             << 
1365   return fDirLEDATA;                          << 
1366 }                                             << 
1367                                               << 
1368 void G4EmParameters::StreamInfo(std::ostream&    1228 void G4EmParameters::StreamInfo(std::ostream& os) const
1369 {                                                1229 {
1370   G4long prec = os.precision(5);              << 1230   G4int prec = os.precision(5);
1371   os << "====================================    1231   os << "=======================================================================" << "\n";
1372   os << "======                 Electromagnet    1232   os << "======                 Electromagnetic Physics Parameters      ========" << "\n";
1373   os << "====================================    1233   os << "=======================================================================" << "\n";
1374   os << "LPM effect enabled                      1234   os << "LPM effect enabled                                 " <<flagLPM << "\n";
1375   os << "Enable creation and use of sampling     1235   os << "Enable creation and use of sampling tables         " <<fSamplingTable << "\n";
1376   os << "Apply cuts on all EM processes          1236   os << "Apply cuts on all EM processes                     " <<applyCuts << "\n";
1377   const char* transportationWithMsc = "Disabl << 
1378   if(fTransportationWithMsc == G4Transportati << 
1379     transportationWithMsc = "Enabled";        << 
1380   } else if (fTransportationWithMsc == G4Tran << 
1381     transportationWithMsc = "MultipleSteps";  << 
1382   }                                           << 
1383   os << "Use combined TransportationWithMsc   << 
1384   os << "Use general process                     1237   os << "Use general process                                " <<gener << "\n";
1385   os << "Enable linear polarisation for gamma    1238   os << "Enable linear polarisation for gamma               " <<fPolarisation << "\n";
1386   os << "Enable photoeffect sampling below K- << 
1387   os << "Enable sampling of quantum entanglem    1239   os << "Enable sampling of quantum entanglement            " 
1388      <<fBParameters->QuantumEntanglement()  <    1240      <<fBParameters->QuantumEntanglement()  << "\n";
1389   os << "X-section factor for integral approa    1241   os << "X-section factor for integral approach             " <<lambdaFactor << "\n";
1390   os << "Min kinetic energy for tables           1242   os << "Min kinetic energy for tables                      " 
1391      <<G4BestUnit(minKinEnergy,"Energy") << "    1243      <<G4BestUnit(minKinEnergy,"Energy") << "\n";
1392   os << "Max kinetic energy for tables           1244   os << "Max kinetic energy for tables                      " 
1393      <<G4BestUnit(maxKinEnergy,"Energy") << "    1245      <<G4BestUnit(maxKinEnergy,"Energy") << "\n";
1394   os << "Number of bins per decade of a table    1246   os << "Number of bins per decade of a table               " <<nbinsPerDecade << "\n";
1395   os << "Verbose level                           1247   os << "Verbose level                                      " <<verbose << "\n";
1396   os << "Verbose level for worker thread         1248   os << "Verbose level for worker thread                    " <<workerVerbose << "\n";
1397   os << "Bremsstrahlung energy threshold abov    1249   os << "Bremsstrahlung energy threshold above which \n" 
1398      << "  primary e+- is added to the list o    1250      << "  primary e+- is added to the list of secondary    " 
1399      <<G4BestUnit(bremsTh,"Energy") << "\n";     1251      <<G4BestUnit(bremsTh,"Energy") << "\n";
1400   os << "Bremsstrahlung energy threshold abov    1252   os << "Bremsstrahlung energy threshold above which primary\n" 
1401      << "  muon/hadron is added to the list o    1253      << "  muon/hadron is added to the list of secondary    " 
1402      <<G4BestUnit(bremsMuHadTh,"Energy") << "    1254      <<G4BestUnit(bremsMuHadTh,"Energy") << "\n";
1403   G4String name3g = "SimplePositronium";      << 
1404   if (fPositronium == fAllisonPositronium) {  << 
1405   else if (fPositronium == fOrePowell) { name << 
1406   else if (fPositronium == fOrePowellPolar) { << 
1407   os << "Positron annihilation at rest model  << 
1408                                               << 
1409   os << "Enable 3 gamma annihilation on fly   << 
1410      << f3GammaAnnihilationOnFly << "\n";     << 
1411   os << "Lowest triplet kinetic energy           1255   os << "Lowest triplet kinetic energy                      " 
1412      <<G4BestUnit(lowestTripletEnergy,"Energy    1256      <<G4BestUnit(lowestTripletEnergy,"Energy") << "\n";
1413   os << "Enable sampling of gamma linear pola    1257   os << "Enable sampling of gamma linear polarisation       " <<fPolarisation << "\n";
1414   os << "5D gamma conversion model type          1258   os << "5D gamma conversion model type                     " <<tripletConv << "\n";
1415   os << "5D gamma conversion model on isolate    1259   os << "5D gamma conversion model on isolated ion          " <<onIsolated << "\n";
1416   if(max5DEnergyForMuPair>0.0) {                 1260   if(max5DEnergyForMuPair>0.0) {
1417   os << "5D gamma conversion limit for muon p    1261   os << "5D gamma conversion limit for muon pair            " 
1418      << max5DEnergyForMuPair/CLHEP::GeV << "     1262      << max5DEnergyForMuPair/CLHEP::GeV << " GeV\n";
1419   }                                              1263   }
1420   os << "Use Ricardo-Gerardo pair production  << 
1421      << fUseRiGePairProductionModel << "\n";  << 
1422   os << "Livermore data directory                1264   os << "Livermore data directory                           " 
1423      << fCParameters->LivermoreDataDir() << "    1265      << fCParameters->LivermoreDataDir() << "\n";
1424                                                  1266 
1425   os << "====================================    1267   os << "=======================================================================" << "\n";
1426   os << "======                 Ionisation Pa    1268   os << "======                 Ionisation Parameters                   ========" << "\n";
1427   os << "====================================    1269   os << "=======================================================================" << "\n";
1428   os << "Step function for e+-                   1270   os << "Step function for e+-                              " 
1429      <<"("<<fBParameters->GetStepFunctionP1()    1271      <<"("<<fBParameters->GetStepFunctionP1() << ", " 
1430      << fBParameters->GetStepFunctionP2()/CLH    1272      << fBParameters->GetStepFunctionP2()/CLHEP::mm << " mm)\n";
1431   os << "Step function for muons/hadrons         1273   os << "Step function for muons/hadrons                    " 
1432      <<"("<<fBParameters->GetStepFunctionMuHa    1274      <<"("<<fBParameters->GetStepFunctionMuHadP1() << ", " 
1433      << fBParameters->GetStepFunctionMuHadP2(    1275      << fBParameters->GetStepFunctionMuHadP2()/CLHEP::mm << " mm)\n";
1434   os << "Step function for light ions            1276   os << "Step function for light ions                       " 
1435      <<"("<<fBParameters->GetStepFunctionLigh    1277      <<"("<<fBParameters->GetStepFunctionLightIonsP1() << ", " 
1436      << fBParameters->GetStepFunctionLightIon    1278      << fBParameters->GetStepFunctionLightIonsP2()/CLHEP::mm << " mm)\n";
1437   os << "Step function for general ions          1279   os << "Step function for general ions                     " 
1438      <<"("<<fBParameters->GetStepFunctionIons    1280      <<"("<<fBParameters->GetStepFunctionIonsP1() << ", " 
1439      << fBParameters->GetStepFunctionIonsP2()    1281      << fBParameters->GetStepFunctionIonsP2()/CLHEP::mm << " mm)\n";
1440   os << "Lowest e+e- kinetic energy              1282   os << "Lowest e+e- kinetic energy                         " 
1441      <<G4BestUnit(lowestElectronEnergy,"Energ    1283      <<G4BestUnit(lowestElectronEnergy,"Energy") << "\n";
1442   os << "Lowest muon/hadron kinetic energy       1284   os << "Lowest muon/hadron kinetic energy                  " 
1443      <<G4BestUnit(lowestMuHadEnergy,"Energy")    1285      <<G4BestUnit(lowestMuHadEnergy,"Energy") << "\n";
1444   os << "Use ICRU90 data                      << 
1445   os << "Fluctuations of dE/dx are enabled       1286   os << "Fluctuations of dE/dx are enabled                  " <<lossFluctuation << "\n";
1446   G4String namef = "Universal";               << 1287   os << "Use ICRU90 data                                    " << fICRU90 << "\n";
1447   if(fFluct == fUrbanFluctuation) { namef = " << 
1448   else if(fFluct == fDummyFluctuation) { name << 
1449   os << "Type of fluctuation model for lepton << 
1450   os << "Use built-in Birks satuaration          1288   os << "Use built-in Birks satuaration                     " << birks << "\n";
1451   os << "Build CSDA range enabled                1289   os << "Build CSDA range enabled                           " <<buildCSDARange << "\n";
1452   os << "Use cut as a final range enabled        1290   os << "Use cut as a final range enabled                   " <<cutAsFinalRange << "\n";
1453   os << "Enable angular generator interface      1291   os << "Enable angular generator interface                 " 
1454      <<useAngGeneratorForIonisation << "\n";     1292      <<useAngGeneratorForIonisation << "\n";
1455   os << "Max kinetic energy for CSDA tables      1293   os << "Max kinetic energy for CSDA tables                 " 
1456      <<G4BestUnit(maxKinEnergyCSDA,"Energy")     1294      <<G4BestUnit(maxKinEnergyCSDA,"Energy") << "\n";
1457   os << "Max kinetic energy for NIEL computat    1295   os << "Max kinetic energy for NIEL computation            " 
1458      <<G4BestUnit(maxNIELEnergy,"Energy") <<     1296      <<G4BestUnit(maxNIELEnergy,"Energy") << "\n";
1459   os << "Linear loss limit                       1297   os << "Linear loss limit                                  " <<linLossLimit << "\n";
1460   os << "Read data from file for e+e- pair pr    1298   os << "Read data from file for e+e- pair production by mu " <<fMuDataFromFile << "\n";
1461                                                  1299 
1462   os << "====================================    1300   os << "=======================================================================" << "\n";
1463   os << "======                 Multiple Scat    1301   os << "======                 Multiple Scattering Parameters          ========" << "\n";
1464   os << "====================================    1302   os << "=======================================================================" << "\n";
1465   os << "Type of msc step limit algorithm for    1303   os << "Type of msc step limit algorithm for e+-           " <<mscStepLimit << "\n";
1466   os << "Type of msc step limit algorithm for    1304   os << "Type of msc step limit algorithm for muons/hadrons " <<mscStepLimitMuHad << "\n";
1467   os << "Msc lateral displacement for e+- ena    1305   os << "Msc lateral displacement for e+- enabled           " <<lateralDisplacement << "\n";
1468   os << "Msc lateral displacement for muons a    1306   os << "Msc lateral displacement for muons and hadrons     " <<muhadLateralDisplacement << "\n";
1469   os << "Urban msc model lateral displacement    1307   os << "Urban msc model lateral displacement alg96         " <<lateralDisplacementAlg96 << "\n";
1470   os << "Range factor for msc step limit for     1308   os << "Range factor for msc step limit for e+-            " <<rangeFactor << "\n";
1471   os << "Range factor for msc step limit for     1309   os << "Range factor for msc step limit for muons/hadrons  " <<rangeFactorMuHad << "\n";
1472   os << "Geometry factor for msc step limitat    1310   os << "Geometry factor for msc step limitation of e+-     " <<geomFactor << "\n";
1473   os << "Safety factor for msc step limit for    1311   os << "Safety factor for msc step limit for e+-           " <<safetyFactor << "\n";
1474   os << "Skin parameter for msc step limitati    1312   os << "Skin parameter for msc step limitation of e+-      " <<skin << "\n";
1475   os << "Lambda limit for msc step limit for     1313   os << "Lambda limit for msc step limit for e+-            " <<lambdaLimit/CLHEP::mm << " mm\n";
1476   os << "Use Mott correction for e- scatterin    1314   os << "Use Mott correction for e- scattering              " << useMottCorrection << "\n";
1477   os << "Factor used for dynamic computation     1315   os << "Factor used for dynamic computation of angular \n" 
1478      << "  limit between single and multiple     1316      << "  limit between single and multiple scattering     " << factorForAngleLimit << "\n";
1479   os << "Fixed angular limit between single \    1317   os << "Fixed angular limit between single \n"
1480      << "  and multiple scattering               1318      << "  and multiple scattering                          " 
1481      << thetaLimit/CLHEP::rad << " rad\n";       1319      << thetaLimit/CLHEP::rad << " rad\n";
1482   os << "Upper energy limit for e+- multiple     1320   os << "Upper energy limit for e+- multiple scattering     " 
1483      << energyLimit/CLHEP::MeV << " MeV\n";      1321      << energyLimit/CLHEP::MeV << " MeV\n";
1484   os << "Type of electron single scattering m    1322   os << "Type of electron single scattering model           " <<fSStype << "\n";
1485   os << "Type of nuclear form-factor             1323   os << "Type of nuclear form-factor                        " <<nucFormfactor << "\n";
1486   os << "Screening factor                        1324   os << "Screening factor                                   " <<factorScreen << "\n";
1487   os << "====================================    1325   os << "=======================================================================" << "\n";
1488                                                  1326 
1489   if(fCParameters->Fluo()) {                     1327   if(fCParameters->Fluo()) {
1490   os << "======                 Atomic Deexci    1328   os << "======                 Atomic Deexcitation Parameters          ========" << "\n";
1491   os << "====================================    1329   os << "=======================================================================" << "\n";
1492   os << "Fluorescence enabled                    1330   os << "Fluorescence enabled                               " <<fCParameters->Fluo() << "\n";
1493   G4String named = "fluor";                   << 1331   os << "Fluorescence Bearden data files enabled            " 
1494   G4EmFluoDirectory fdir = FluoDirectory();   << 1332      <<fCParameters->BeardenFluoDir() << "\n";
1495   if(fdir == fluoBearden) { named = "fluor_Be << 1333   os << "Fluorescence ANSTO data files enabled              " 
1496   else if(fdir == fluoANSTO) { named = "fluor << 1334      <<fCParameters->ANSTOFluoDir() << "\n";
1497   else if(fdir == fluoXDB_EADL) { named = "fl << 
1498   os << "Directory in G4LEDATA for fluorescen << 
1499   os << "Auger electron cascade enabled          1335   os << "Auger electron cascade enabled                     " 
1500      <<fCParameters->Auger() << "\n";            1336      <<fCParameters->Auger() << "\n";
1501   os << "PIXE atomic de-excitation enabled       1337   os << "PIXE atomic de-excitation enabled                  " <<fCParameters->Pixe() << "\n";
1502   os << "De-excitation module ignores cuts       1338   os << "De-excitation module ignores cuts                  " 
1503      <<fCParameters->DeexcitationIgnoreCut()     1339      <<fCParameters->DeexcitationIgnoreCut() << "\n";
1504   os << "Type of PIXE cross section for hadro    1340   os << "Type of PIXE cross section for hadrons             " 
1505      <<fCParameters->PIXECrossSectionModel()     1341      <<fCParameters->PIXECrossSectionModel() << "\n";
1506   os << "Type of PIXE cross section for e+-      1342   os << "Type of PIXE cross section for e+-                 " 
1507      <<fCParameters->PIXEElectronCrossSection    1343      <<fCParameters->PIXEElectronCrossSectionModel() << "\n";
1508   os << "====================================    1344   os << "=======================================================================" << "\n";
1509   }                                              1345   }
1510   if(fDNA) {                                     1346   if(fDNA) {
1511   os << "======                 DNA Physics P    1347   os << "======                 DNA Physics Parameters                  ========" << "\n";
1512   os << "====================================    1348   os << "=======================================================================" << "\n";
1513   os << "Use fast sampling in DNA models         1349   os << "Use fast sampling in DNA models                    " 
1514      << fCParameters->DNAFast() << "\n";         1350      << fCParameters->DNAFast() << "\n";
1515   os << "Use Stationary option in DNA models     1351   os << "Use Stationary option in DNA models                " 
1516      << fCParameters->DNAStationary() << "\n"    1352      << fCParameters->DNAStationary() << "\n";
1517   os << "Use DNA with multiple scattering of     1353   os << "Use DNA with multiple scattering of e-             " 
1518      << fCParameters->DNAElectronMsc() << "\n    1354      << fCParameters->DNAElectronMsc() << "\n";
1519   os << "Use DNA e- solvation model type         1355   os << "Use DNA e- solvation model type                    " 
1520      << fCParameters->DNAeSolvationSubType()     1356      << fCParameters->DNAeSolvationSubType() << "\n";
1521   auto chemModel = fCParameters->GetChemTimeS << 
1522   if(fCParameters->GetChemTimeStepModel() !=  << 
1523   {                                           << 
1524     std::vector<G4String> ChemModel{"Unknown" << 
1525     os << "Use DNA Chemistry model            << 
1526        << ChemModel.at((std::size_t)chemModel << 
1527   }                                           << 
1528   os << "====================================    1357   os << "=======================================================================" << G4endl;
1529   }                                              1358   }
1530   os.precision(prec);                            1359   os.precision(prec);
1531 }                                                1360 }
1532                                                  1361 
1533 void G4EmParameters::Dump()                      1362 void G4EmParameters::Dump()
1534 {                                                1363 {
1535   if(fIsPrinted) return;                         1364   if(fIsPrinted) return;
1536                                                  1365 
1537 #ifdef G4MULTITHREADED                           1366 #ifdef G4MULTITHREADED
1538   G4MUTEXLOCK(&emParametersMutex);               1367   G4MUTEXLOCK(&emParametersMutex);
1539 #endif                                           1368 #endif
1540   StreamInfo(G4cout);                            1369   StreamInfo(G4cout);
1541 #ifdef G4MULTITHREADED                           1370 #ifdef G4MULTITHREADED
1542   G4MUTEXUNLOCK(&emParametersMutex);             1371   G4MUTEXUNLOCK(&emParametersMutex);
1543 #endif                                           1372 #endif
1544 }                                                1373 }
1545                                                  1374 
1546 std::ostream& operator<< (std::ostream& os, c    1375 std::ostream& operator<< (std::ostream& os, const G4EmParameters& par)
1547 {                                                1376 {
1548   par.StreamInfo(os);                            1377   par.StreamInfo(os);
1549   return os;                                     1378   return os;
1550 }                                                1379 }
1551                                                  1380 
1552 G4bool G4EmParameters::IsLocked() const          1381 G4bool G4EmParameters::IsLocked() const
1553 {                                                1382 {
1554   return (!G4Threading::IsMasterThread() ||      1383   return (!G4Threading::IsMasterThread() ||
1555     (fStateManager->GetCurrentState() != G4St    1384     (fStateManager->GetCurrentState() != G4State_PreInit &&
1556            fStateManager->GetCurrentState() !    1385            fStateManager->GetCurrentState() != G4State_Init &&
1557      fStateManager->GetCurrentState() != G4St    1386      fStateManager->GetCurrentState() != G4State_Idle));
1558 }                                                1387 }
1559                                                  1388 
1560                                               << 
1561 void G4EmParameters::SetTimeStepModel(const G << 
1562 {                                             << 
1563   fCParameters-> SetChemTimeStepModel(model); << 
1564 }                                             << 
1565                                               << 
1566 G4ChemTimeStepModel G4EmParameters::GetTimeSt << 
1567 {                                             << 
1568   return fCParameters->GetChemTimeStepModel() << 
1569 }                                             << 
1570 //....oooOO0OOooo........oooOO0OOooo........o    1389 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.....
1571                                                  1390