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