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