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