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