Geant4 Cross Reference

Cross-Referencing   Geant4
Geant4/examples/extended/electromagnetic/TestEm12/src/PhysicsList.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 /examples/extended/electromagnetic/TestEm12/src/PhysicsList.cc (Version 11.3.0) and /examples/extended/electromagnetic/TestEm12/src/PhysicsList.cc (Version 9.6.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 /// \file electromagnetic/TestEm12/src/Physics     26 /// \file electromagnetic/TestEm12/src/PhysicsList.cc
 27 /// \brief Implementation of the PhysicsList c     27 /// \brief Implementation of the PhysicsList class
 28 //                                                 28 //
                                                   >>  29 // $Id$
 29 //                                                 30 //
 30 //....oooOO0OOooo........oooOO0OOooo........oo     31 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
 31 //....oooOO0OOooo........oooOO0OOooo........oo     32 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
 32                                                    33 
 33 #include "PhysicsList.hh"                          34 #include "PhysicsList.hh"
                                                   >>  35 #include "PhysicsListMessenger.hh"
 34                                                    36 
 35 #include "PhysListEmStandard.hh"                   37 #include "PhysListEmStandard.hh"
                                                   >>  38 #include "PhysListEmStandardSS.hh"
 36 #include "PhysListEmStandardSSM.hh"                39 #include "PhysListEmStandardSSM.hh"
 37 #include "PhysicsListMessenger.hh"             <<  40 #include "PhysListEmStandardGS.hh"
                                                   >>  41 #include "PhysListEmStandardWVI.hh"
 38                                                    42 
 39 #include "G4EmDNAPhysics.hh"                   << 
 40 #include "G4EmDNAPhysics_option1.hh"           << 
 41 #include "G4EmDNAPhysics_option2.hh"           << 
 42 #include "G4EmDNAPhysics_option3.hh"           << 
 43 #include "G4EmDNAPhysics_option4.hh"           << 
 44 #include "G4EmDNAPhysics_option5.hh"           << 
 45 #include "G4EmDNAPhysics_option6.hh"           << 
 46 #include "G4EmDNAPhysics_option7.hh"           << 
 47 #include "G4EmLivermorePhysics.hh"             << 
 48 #include "G4EmLowEPPhysics.hh"                 << 
 49 #include "G4EmPenelopePhysics.hh"              << 
 50 #include "G4EmStandardPhysics.hh"                  43 #include "G4EmStandardPhysics.hh"
 51 #include "G4EmStandardPhysicsGS.hh"            << 
 52 #include "G4EmStandardPhysicsSS.hh"            << 
 53 #include "G4EmStandardPhysicsWVI.hh"           << 
 54 #include "G4EmStandardPhysics_option1.hh"          44 #include "G4EmStandardPhysics_option1.hh"
 55 #include "G4EmStandardPhysics_option2.hh"          45 #include "G4EmStandardPhysics_option2.hh"
 56 #include "G4EmStandardPhysics_option3.hh"          46 #include "G4EmStandardPhysics_option3.hh"
 57 #include "G4EmStandardPhysics_option4.hh"          47 #include "G4EmStandardPhysics_option4.hh"
                                                   >>  48 #include "G4EmLivermorePhysics.hh"
                                                   >>  49 #include "G4EmPenelopePhysics.hh"
                                                   >>  50 #include "G4EmDNAPhysics.hh"
                                                   >>  51 
 58 #include "G4LossTableManager.hh"                   52 #include "G4LossTableManager.hh"
 59 #include "G4SystemOfUnits.hh"                  << 
 60 #include "G4UnitsTable.hh"                         53 #include "G4UnitsTable.hh"
 61                                                <<  54 #include "G4SystemOfUnits.hh"
 62 // particles                                   << 
 63                                                << 
 64 #include "G4BaryonConstructor.hh"              << 
 65 #include "G4BosonConstructor.hh"               << 
 66 #include "G4DNAGenericIonsManager.hh"          << 
 67 #include "G4IonConstructor.hh"                 << 
 68 #include "G4LeptonConstructor.hh"              << 
 69 #include "G4MesonConstructor.hh"               << 
 70 #include "G4ShortLivedConstructor.hh"          << 
 71                                                << 
 72 G4ThreadLocal StepMax* PhysicsList::fStepMaxPr << 
 73                                                    55 
 74 //....oooOO0OOooo........oooOO0OOooo........oo     56 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
 75                                                    57 
 76 PhysicsList::PhysicsList()                     <<  58 PhysicsList::PhysicsList() : G4VModularPhysicsList()
 77 {                                                  59 {
                                                   >>  60   G4LossTableManager::Instance();
                                                   >>  61   defaultCutValue = 1.*mm;
                                                   >>  62   fCutForGamma     = defaultCutValue;
                                                   >>  63   fCutForElectron  = defaultCutValue;
                                                   >>  64   fCutForPositron  = defaultCutValue;
                                                   >>  65 
                                                   >>  66   fStepMaxProcess  = 0;
                                                   >>  67 
 78   fMessenger = new PhysicsListMessenger(this);     68   fMessenger = new PhysicsListMessenger(this);
 79                                                    69 
 80   SetVerboseLevel(1);                              70   SetVerboseLevel(1);
 81                                                    71 
 82   // EM physics                                    72   // EM physics
 83   fEmPhysicsList = new PhysListEmStandard(fEmN     73   fEmPhysicsList = new PhysListEmStandard(fEmName = "local");
 84                                                    74 
 85   // Em options                                << 
 86   //                                           << 
 87   G4EmParameters::Instance()->SetBuildCSDARang << 
 88                                                << 
 89   SetDefaultCutValue(1. * mm);                 << 
 90 }                                                  75 }
 91                                                    76 
 92 //....oooOO0OOooo........oooOO0OOooo........oo     77 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
 93                                                    78 
 94 PhysicsList::~PhysicsList()                        79 PhysicsList::~PhysicsList()
 95 {                                                  80 {
 96   delete fMessenger;                               81   delete fMessenger;
 97   delete fEmPhysicsList;                           82   delete fEmPhysicsList;
 98 }                                                  83 }
 99                                                    84 
100 //....oooOO0OOooo........oooOO0OOooo........oo     85 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
101                                                    86 
102 void PhysicsList::ConstructParticle()          <<  87 // Bosons
103 {                                              <<  88 #include "G4ChargedGeantino.hh"
104   G4BosonConstructor pBosonConstructor;        <<  89 #include "G4Geantino.hh"
105   pBosonConstructor.ConstructParticle();       <<  90 #include "G4Gamma.hh"
106                                                <<  91 #include "G4OpticalPhoton.hh"
107   G4LeptonConstructor pLeptonConstructor;      <<  92 
108   pLeptonConstructor.ConstructParticle();      <<  93 // leptons
109                                                <<  94 #include "G4MuonPlus.hh"
110   G4MesonConstructor pMesonConstructor;        <<  95 #include "G4MuonMinus.hh"
111   pMesonConstructor.ConstructParticle();       <<  96 #include "G4NeutrinoMu.hh"
112                                                <<  97 #include "G4AntiNeutrinoMu.hh"
113   G4BaryonConstructor pBaryonConstructor;      <<  98 
114   pBaryonConstructor.ConstructParticle();      <<  99 #include "G4Electron.hh"
115                                                << 100 #include "G4Positron.hh"
116   G4IonConstructor pIonConstructor;            << 101 #include "G4NeutrinoE.hh"
117   pIonConstructor.ConstructParticle();         << 102 #include "G4AntiNeutrinoE.hh"
                                                   >> 103 
                                                   >> 104 // Mesons
                                                   >> 105 #include "G4PionPlus.hh"
                                                   >> 106 #include "G4PionMinus.hh"
                                                   >> 107 #include "G4PionZero.hh"
                                                   >> 108 #include "G4Eta.hh"
                                                   >> 109 #include "G4EtaPrime.hh"
                                                   >> 110 
                                                   >> 111 #include "G4KaonPlus.hh"
                                                   >> 112 #include "G4KaonMinus.hh"
                                                   >> 113 #include "G4KaonZero.hh"
                                                   >> 114 #include "G4AntiKaonZero.hh"
                                                   >> 115 #include "G4KaonZeroLong.hh"
                                                   >> 116 #include "G4KaonZeroShort.hh"
                                                   >> 117 
                                                   >> 118 // Baryons
                                                   >> 119 #include "G4Proton.hh"
                                                   >> 120 #include "G4AntiProton.hh"
                                                   >> 121 #include "G4Neutron.hh"
                                                   >> 122 #include "G4AntiNeutron.hh"
                                                   >> 123 
                                                   >> 124 // Nuclei
                                                   >> 125 #include "G4Alpha.hh"
                                                   >> 126 #include "G4Deuteron.hh"
                                                   >> 127 #include "G4Triton.hh"
                                                   >> 128 #include "G4He3.hh"
                                                   >> 129 #include "G4GenericIon.hh"
                                                   >> 130 #include "G4DNAGenericIonsManager.hh"
118                                                   131 
119   G4ShortLivedConstructor pShortLivedConstruct << 132 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
120   pShortLivedConstructor.ConstructParticle();  << 
121                                                   133 
122   // DNA                                       << 134 void PhysicsList::ConstructParticle()
                                                   >> 135 {
                                                   >> 136 // pseudo-particles
                                                   >> 137   G4Geantino::GeantinoDefinition();
                                                   >> 138   G4ChargedGeantino::ChargedGeantinoDefinition();
                                                   >> 139   
                                                   >> 140 // gamma
                                                   >> 141   G4Gamma::GammaDefinition();
                                                   >> 142   
                                                   >> 143 // optical photon
                                                   >> 144   G4OpticalPhoton::OpticalPhotonDefinition();
                                                   >> 145 
                                                   >> 146 // leptons
                                                   >> 147   G4Electron::ElectronDefinition();
                                                   >> 148   G4Positron::PositronDefinition();
                                                   >> 149   G4MuonPlus::MuonPlusDefinition();
                                                   >> 150   G4MuonMinus::MuonMinusDefinition();
                                                   >> 151 
                                                   >> 152   G4NeutrinoE::NeutrinoEDefinition();
                                                   >> 153   G4AntiNeutrinoE::AntiNeutrinoEDefinition();
                                                   >> 154   G4NeutrinoMu::NeutrinoMuDefinition();
                                                   >> 155   G4AntiNeutrinoMu::AntiNeutrinoMuDefinition();  
                                                   >> 156 
                                                   >> 157 // mesons
                                                   >> 158   G4PionPlus::PionPlusDefinition();
                                                   >> 159   G4PionMinus::PionMinusDefinition();
                                                   >> 160   G4PionZero::PionZeroDefinition();
                                                   >> 161   G4Eta::EtaDefinition();
                                                   >> 162   G4EtaPrime::EtaPrimeDefinition();
                                                   >> 163   G4KaonPlus::KaonPlusDefinition();
                                                   >> 164   G4KaonMinus::KaonMinusDefinition();
                                                   >> 165   G4KaonZero::KaonZeroDefinition();
                                                   >> 166   G4AntiKaonZero::AntiKaonZeroDefinition();
                                                   >> 167   G4KaonZeroLong::KaonZeroLongDefinition();
                                                   >> 168   G4KaonZeroShort::KaonZeroShortDefinition();
                                                   >> 169 
                                                   >> 170 // barions
                                                   >> 171   G4Proton::ProtonDefinition();
                                                   >> 172   G4AntiProton::AntiProtonDefinition();
                                                   >> 173   G4Neutron::NeutronDefinition();
                                                   >> 174   G4AntiNeutron::AntiNeutronDefinition();
                                                   >> 175 
                                                   >> 176 // ions
                                                   >> 177   G4Deuteron::DeuteronDefinition();
                                                   >> 178   G4Triton::TritonDefinition();
                                                   >> 179   G4He3::He3Definition();
                                                   >> 180   G4Alpha::AlphaDefinition();
                                                   >> 181   G4GenericIon::GenericIonDefinition();
                                                   >> 182   
                                                   >> 183 // DNA
123   G4DNAGenericIonsManager* genericIonsManager;    184   G4DNAGenericIonsManager* genericIonsManager;
124   genericIonsManager = G4DNAGenericIonsManager << 185   genericIonsManager=G4DNAGenericIonsManager::Instance();
125   genericIonsManager->GetIon("alpha++");          186   genericIonsManager->GetIon("alpha++");
126   genericIonsManager->GetIon("alpha+");           187   genericIonsManager->GetIon("alpha+");
127   genericIonsManager->GetIon("helium");           188   genericIonsManager->GetIon("helium");
128   genericIonsManager->GetIon("hydrogen");      << 189   genericIonsManager->GetIon("hydrogen");  
129 }                                                 190 }
130                                                   191 
131 //....oooOO0OOooo........oooOO0OOooo........oo    192 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
132                                                   193 
133 #include "G4ProcessManager.hh"                    194 #include "G4ProcessManager.hh"
                                                   >> 195 #include "G4EmProcessOptions.hh"
134                                                   196 
135 void PhysicsList::ConstructProcess()              197 void PhysicsList::ConstructProcess()
136 {                                                 198 {
137   // transportation                               199   // transportation
138   //                                              200   //
139   AddTransportation();                            201   AddTransportation();
140                                                << 202   
141   // electromagnetic physics list                 203   // electromagnetic physics list
142   //                                              204   //
143   fEmPhysicsList->ConstructProcess();             205   fEmPhysicsList->ConstructProcess();
144                                                << 206   
                                                   >> 207   // Em options
                                                   >> 208   //
                                                   >> 209   G4EmProcessOptions emOptions;
                                                   >> 210   emOptions.SetBuildCSDARange(true);
                                                   >> 211   emOptions.SetDEDXBinningForCSDARange(8*10);
                                                   >> 212     
145   // decay process                                213   // decay process
146   //                                              214   //
147   AddDecay();                                     215   AddDecay();
148                                                << 216   
149   // step limitation (as a full process)          217   // step limitation (as a full process)
150   //                                           << 218   //  
151   AddStepMax();                                   219   AddStepMax();
152 }                                                 220 }
153                                                   221 
154 //....oooOO0OOooo........oooOO0OOooo........oo    222 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
155                                                   223 
156 void PhysicsList::AddPhysicsList(const G4Strin    224 void PhysicsList::AddPhysicsList(const G4String& name)
157 {                                                 225 {
158   if (verboseLevel > -1) {                     << 226   if (verboseLevel>-1) {
159     G4cout << "PhysicsList::AddPhysicsList: <"    227     G4cout << "PhysicsList::AddPhysicsList: <" << name << ">" << G4endl;
160   }                                               228   }
161                                                   229 
162   if (name == fEmName) return;                    230   if (name == fEmName) return;
163                                                   231 
164   if (name == "local") {                          232   if (name == "local") {
                                                   >> 233 
165     fEmName = name;                               234     fEmName = name;
166     delete fEmPhysicsList;                        235     delete fEmPhysicsList;
167     fEmPhysicsList = new PhysListEmStandard(na    236     fEmPhysicsList = new PhysListEmStandard(name);
168   }                                            << 237     
169   else if (name == "emstandard_opt0") {        << 238   } else if (name == "emstandard_opt0") {
                                                   >> 239 
170     fEmName = name;                               240     fEmName = name;
171     delete fEmPhysicsList;                        241     delete fEmPhysicsList;
172     fEmPhysicsList = new G4EmStandardPhysics()    242     fEmPhysicsList = new G4EmStandardPhysics();
173   }                                            << 243     
174   else if (name == "emstandard_opt1") {        << 244   } else if (name == "emstandard_opt1") {
                                                   >> 245 
175     fEmName = name;                               246     fEmName = name;
176     delete fEmPhysicsList;                        247     delete fEmPhysicsList;
177     fEmPhysicsList = new G4EmStandardPhysics_o    248     fEmPhysicsList = new G4EmStandardPhysics_option1();
178   }                                            << 249 
179   else if (name == "emstandard_opt2") {        << 250   } else if (name == "emstandard_opt2") {
                                                   >> 251 
180     fEmName = name;                               252     fEmName = name;
181     delete fEmPhysicsList;                        253     delete fEmPhysicsList;
182     fEmPhysicsList = new G4EmStandardPhysics_o    254     fEmPhysicsList = new G4EmStandardPhysics_option2();
183   }                                            << 255         
184   else if (name == "emstandard_opt3") {        << 256   } else if (name == "emstandard_opt3") {
                                                   >> 257 
185     fEmName = name;                               258     fEmName = name;
186     delete fEmPhysicsList;                        259     delete fEmPhysicsList;
187     fEmPhysicsList = new G4EmStandardPhysics_o    260     fEmPhysicsList = new G4EmStandardPhysics_option3();
188   }                                            << 261     
189   else if (name == "emstandard_opt4") {        << 262   } else if (name == "emstandard_opt4") {
                                                   >> 263 
190     fEmName = name;                               264     fEmName = name;
191     delete fEmPhysicsList;                        265     delete fEmPhysicsList;
192     fEmPhysicsList = new G4EmStandardPhysics_o    266     fEmPhysicsList = new G4EmStandardPhysics_option4();
193   }                                            << 267     
194   else if (name == "emstandardSS") {           << 268   } else if (name == "standardSS") {
                                                   >> 269 
195     fEmName = name;                               270     fEmName = name;
196     delete fEmPhysicsList;                        271     delete fEmPhysicsList;
197     fEmPhysicsList = new G4EmStandardPhysicsSS << 272     fEmPhysicsList = new PhysListEmStandardSS(name);
198   }                                            << 273 
199   else if (name == "standardSSM") {            << 274   } else if (name == "standardSSM") {
                                                   >> 275 
200     fEmName = name;                               276     fEmName = name;
201     delete fEmPhysicsList;                        277     delete fEmPhysicsList;
202     fEmPhysicsList = new PhysListEmStandardSSM    278     fEmPhysicsList = new PhysListEmStandardSSM(name);
203   }                                            << 279 
204   else if (name == "emstandardWVI") {          << 280   } else if (name == "standardWVI") {
                                                   >> 281 
205     fEmName = name;                               282     fEmName = name;
206     delete fEmPhysicsList;                        283     delete fEmPhysicsList;
207     fEmPhysicsList = new G4EmStandardPhysicsWV << 284     fEmPhysicsList = new PhysListEmStandardWVI(name);
208   }                                            << 285 
209   else if (name == "standardGS") {             << 286   } else if (name == "standardGS") {
                                                   >> 287 
210     fEmName = name;                               288     fEmName = name;
211     delete fEmPhysicsList;                        289     delete fEmPhysicsList;
212     fEmPhysicsList = new G4EmStandardPhysicsGS << 290     fEmPhysicsList = new PhysListEmStandardGS(name);
213   }                                            << 291                     
214   else if (name == "emlivermore") {            << 292   } else if (name == "emlivermore") {
215     fEmName = name;                               293     fEmName = name;
216     delete fEmPhysicsList;                        294     delete fEmPhysicsList;
217     fEmPhysicsList = new G4EmLivermorePhysics(    295     fEmPhysicsList = new G4EmLivermorePhysics();
218   }                                            << 296     
219   else if (name == "empenelope") {             << 297   } else if (name == "empenelope") {
220     fEmName = name;                               298     fEmName = name;
221     delete fEmPhysicsList;                        299     delete fEmPhysicsList;
222     fEmPhysicsList = new G4EmPenelopePhysics()    300     fEmPhysicsList = new G4EmPenelopePhysics();
223   }                                            << 301 
224   else if (name == "emlowenergy") {            << 302   } else if (name == "dna") {
225     fEmName = name;                            << 
226     delete fEmPhysicsList;                     << 
227     fEmPhysicsList = new G4EmLowEPPhysics();   << 
228   }                                            << 
229   else if (name == "dna") {                    << 
230     fEmName = name;                               303     fEmName = name;
231     delete fEmPhysicsList;                        304     delete fEmPhysicsList;
232     fEmPhysicsList = new G4EmDNAPhysics();        305     fEmPhysicsList = new G4EmDNAPhysics();
233   }                                            << 306          
234   else if (name == "dna_opt1") {               << 307   } else {
235     fEmName = name;                            << 308 
236     delete fEmPhysicsList;                     << 
237     fEmPhysicsList = new G4EmDNAPhysics_option << 
238   }                                            << 
239   else if (name == "dna_opt2") {               << 
240     fEmName = name;                            << 
241     delete fEmPhysicsList;                     << 
242     fEmPhysicsList = new G4EmDNAPhysics_option << 
243   }                                            << 
244   else if (name == "dna_opt3") {               << 
245     fEmName = name;                            << 
246     delete fEmPhysicsList;                     << 
247     fEmPhysicsList = new G4EmDNAPhysics_option << 
248   }                                            << 
249   else if (name == "dna_opt4") {               << 
250     fEmName = name;                            << 
251     delete fEmPhysicsList;                     << 
252     fEmPhysicsList = new G4EmDNAPhysics_option << 
253   }                                            << 
254   else if (name == "dna_opt5") {               << 
255     fEmName = name;                            << 
256     delete fEmPhysicsList;                     << 
257     fEmPhysicsList = new G4EmDNAPhysics_option << 
258   }                                            << 
259   else if (name == "dna_opt6") {               << 
260     fEmName = name;                            << 
261     delete fEmPhysicsList;                     << 
262     fEmPhysicsList = new G4EmDNAPhysics_option << 
263   }                                            << 
264   else if (name == "dna_opt7") {               << 
265     fEmName = name;                            << 
266     delete fEmPhysicsList;                     << 
267     fEmPhysicsList = new G4EmDNAPhysics_option << 
268   }                                            << 
269   else {                                       << 
270     G4cout << "PhysicsList::AddPhysicsList: <"    309     G4cout << "PhysicsList::AddPhysicsList: <" << name << ">"
271            << " is not defined" << G4endl;     << 310            << " is not defined"
                                                   >> 311            << G4endl;
272   }                                               312   }
273   G4EmParameters::Instance()->SetBuildCSDARang << 
274 }                                                 313 }
275                                                   314 
276 //....oooOO0OOooo........oooOO0OOooo........oo    315 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
277                                                   316 
278 #include "G4Decay.hh"                             317 #include "G4Decay.hh"
279                                                   318 
280 void PhysicsList::AddDecay()                      319 void PhysicsList::AddDecay()
281 {                                                 320 {
282   // decay process                                321   // decay process
283   //                                              322   //
284   G4Decay* fDecayProcess = new G4Decay();         323   G4Decay* fDecayProcess = new G4Decay();
285                                                   324 
286   auto particleIterator = GetParticleIterator( << 325   theParticleIterator->reset();
287   particleIterator->reset();                   << 326   while( (*theParticleIterator)() ){
288   while ((*particleIterator)()) {              << 327     G4ParticleDefinition* particle = theParticleIterator->value();
289     G4ParticleDefinition* particle = particleI << 
290     G4ProcessManager* pmanager = particle->Get    328     G4ProcessManager* pmanager = particle->GetProcessManager();
291                                                   329 
292     if (fDecayProcess->IsApplicable(*particle) << 330     if (fDecayProcess->IsApplicable(*particle) && !particle->IsShortLived()) { 
293       pmanager->AddProcess(fDecayProcess);     << 331 
                                                   >> 332       pmanager ->AddProcess(fDecayProcess);
294                                                   333 
295       // set ordering for PostStepDoIt and AtR    334       // set ordering for PostStepDoIt and AtRestDoIt
296       pmanager->SetProcessOrdering(fDecayProce << 335       pmanager ->SetProcessOrdering(fDecayProcess, idxPostStep);
297       pmanager->SetProcessOrdering(fDecayProce << 336       pmanager ->SetProcessOrdering(fDecayProcess, idxAtRest);
                                                   >> 337 
298     }                                             338     }
299   }                                               339   }
300 }                                                 340 }
301                                                   341 
302 //....oooOO0OOooo........oooOO0OOooo........oo    342 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
303                                                   343 
304 #include "StepMax.hh"                             344 #include "StepMax.hh"
305                                                   345 
306 void PhysicsList::AddStepMax()                    346 void PhysicsList::AddStepMax()
307 {                                                 347 {
308   // Step limitation seen as a process            348   // Step limitation seen as a process
309   fStepMaxProcess = new StepMax();                349   fStepMaxProcess = new StepMax();
310                                                   350 
311   auto particleIterator = GetParticleIterator( << 351   theParticleIterator->reset();
312   particleIterator->reset();                   << 352   while ((*theParticleIterator)()){
313   while ((*particleIterator)()) {              << 353       G4ParticleDefinition* particle = theParticleIterator->value();
314     G4ParticleDefinition* particle = particleI << 354       G4ProcessManager* pmanager = particle->GetProcessManager();
315     G4ProcessManager* pmanager = particle->Get << 355 
316                                                << 356       if (fStepMaxProcess->IsApplicable(*particle))
317     if (fStepMaxProcess->IsApplicable(*particl << 357         {
318       pmanager->AddDiscreteProcess(fStepMaxPro << 358           pmanager ->AddDiscreteProcess(fStepMaxProcess);
319     }                                          << 359         }
320   }                                               360   }
321 }                                                 361 }
322                                                   362 
323 //....oooOO0OOooo........oooOO0OOooo........oo    363 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
                                                   >> 364 
                                                   >> 365 #include "G4Gamma.hh"
                                                   >> 366 #include "G4Electron.hh"
                                                   >> 367 #include "G4Positron.hh"
                                                   >> 368 
                                                   >> 369 void PhysicsList::SetCuts()
                                                   >> 370 {
                                                   >> 371   if (verboseLevel >0) {
                                                   >> 372     G4cout << "PhysicsList::SetCuts:";
                                                   >> 373     G4cout << "CutLength : " << G4BestUnit(defaultCutValue,"Length") << G4endl;
                                                   >> 374   }
                                                   >> 375   
                                                   >> 376   // set cut values for gamma at first and for e- second and next for e+,
                                                   >> 377   // because some processes for e+/e- need cut values for gamma
                                                   >> 378   SetCutValue(fCutForGamma, "gamma");
                                                   >> 379   SetCutValue(fCutForElectron, "e-");
                                                   >> 380   SetCutValue(fCutForPositron, "e+");
                                                   >> 381 
                                                   >> 382   if (verboseLevel>0) DumpCutValuesTable();
                                                   >> 383 }
                                                   >> 384 
                                                   >> 385 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
                                                   >> 386 
                                                   >> 387 void PhysicsList::SetCutForGamma(G4double cut)
                                                   >> 388 {
                                                   >> 389   fCutForGamma = cut;
                                                   >> 390   SetParticleCuts(fCutForGamma, G4Gamma::Gamma());
                                                   >> 391 }
                                                   >> 392 
                                                   >> 393 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
                                                   >> 394 
                                                   >> 395 void PhysicsList::SetCutForElectron(G4double cut)
                                                   >> 396 {
                                                   >> 397   fCutForElectron = cut;
                                                   >> 398   SetParticleCuts(fCutForElectron, G4Electron::Electron());
                                                   >> 399 }
                                                   >> 400 
                                                   >> 401 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
                                                   >> 402 
                                                   >> 403 void PhysicsList::SetCutForPositron(G4double cut)
                                                   >> 404 {
                                                   >> 405   fCutForPositron = cut;
                                                   >> 406   SetParticleCuts(fCutForPositron, G4Positron::Positron());
                                                   >> 407 }
                                                   >> 408 
                                                   >> 409 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
                                                   >> 410 
324                                                   411