- Timestamp:
- Nov 5, 2010, 4:08:39 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/examples/extended/electromagnetic/TestEm8/src/PhysicsList.cc
r1337 r1342 24 24 // ******************************************************************** 25 25 // 26 // 27 // $Id: PhysicsList.cc,v 1.19 2010/06/04 17:08:15 vnivanch Exp $ 28 // GEANT4 tag $Name: geant4-09-04-beta-01 $ 26 // $Id: PhysicsList.cc,v 1.21 2010/10/27 14:52:07 vnivanch Exp $ 27 // GEANT4 tag $Name: examples-V09-03-09 $ 28 // 29 //--------------------------------------------------------------------------- 30 // 31 // ClassName: PhysicsList 32 // 33 // Description: EM physics with a possibility to add PAI model 34 // 35 // Author: V.Ivanchenko 01.09.2010 36 // 37 //---------------------------------------------------------------------------- 29 38 // 30 39 … … 39 48 #include "G4EmStandardPhysics_option2.hh" 40 49 #include "G4EmStandardPhysics_option3.hh" 50 #include "G4EmLivermorePhysics.hh" 51 #include "G4EmPenelopePhysics.hh" 41 52 #include "G4DecayPhysics.hh" 42 53 … … 47 58 #include "G4Electron.hh" 48 59 #include "G4Positron.hh" 60 #include "G4Proton.hh" 49 61 50 62 #include "G4UnitsTable.hh" … … 67 79 cutForElectron = defaultCutValue; 68 80 cutForPositron = defaultCutValue; 69 70 stepMaxProcess = 0; 81 cutForProton = defaultCutValue; 71 82 72 83 pMessenger = new PhysicsListMessenger(this); 84 85 stepMaxProcess = new StepMax(); 73 86 74 87 // Decay Physics is always defined … … 140 153 emPhysicsList = new G4EmStandardPhysics_option3(); 141 154 155 } else if (name == "emlivermore") { 156 157 emName = name; 158 delete emPhysicsList; 159 emPhysicsList = new G4EmLivermorePhysics(); 160 161 } else if (name == "empenelope") { 162 163 emName = name; 164 delete emPhysicsList; 165 emPhysicsList = new G4EmPenelopePhysics(); 166 142 167 } else if (name == "pai") { 143 168 … … 163 188 { 164 189 // Step limitation seen as a process 165 stepMaxProcess = new StepMax();166 190 167 191 theParticleIterator->reset(); … … 195 219 SetCutValue(cutForElectron, "e-"); 196 220 SetCutValue(cutForPositron, "e+"); 221 SetCutValue(cutForProton, "proton"); 197 222 198 223 if ( verboseLevel > 0 ) { DumpCutValuesTable(); } … … 221 246 cutForPositron = cut; 222 247 SetParticleCuts(cutForPositron, G4Positron::Positron()); 248 } 249 250 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... 251 252 void PhysicsList::SetCutForProton(G4double cut) 253 { 254 cutForPositron = cut; 255 SetParticleCuts(cutForProton, G4Proton::Proton()); 223 256 } 224 257
Note: See TracChangeset
for help on using the changeset viewer.