5 #include "G4ProcessManager.hh" 28 string hd_msg =
gemcOpt.
args[
"LOG_MSG"].args +
" General Physics List: <<< ";
30 cout << hd_msg <<
" Building Decay processes " << endl;
32 G4Decay*fDecayProcess =
new G4Decay();
35 theParticleIterator->reset();
36 while( (*theParticleIterator)() )
38 G4ParticleDefinition* particle = theParticleIterator->value();
39 G4ProcessManager* pmanager = particle->GetProcessManager();
40 string pname = particle->GetParticleName();
41 if (fDecayProcess->IsApplicable(*particle))
43 if(VERB > 2) cout << hd_msg <<
" Adding Decay Process for " << pname << endl;
44 pmanager ->AddProcess(fDecayProcess);
46 pmanager ->SetProcessOrdering(fDecayProcess, idxPostStep);
47 pmanager ->SetProcessOrdering(fDecayProcess, idxAtRest);
GeneralPhysics(gemc_opts)
map< string, opts > args
Options map.
virtual void ConstructParticle()
virtual void ConstructProcess()
virtual ~GeneralPhysics()