74 TVirtualMCDecayer* mcDecayer = gMC->GetDecayer();
90 auto aParticleIterator = GetParticleIterator();
91 aParticleIterator->reset();
92 while ((*aParticleIterator)()) {
94 G4ProcessManager* pmanager = particle->GetProcessManager();
97 if (!pmanager)
continue;
99 if (
fSelection.find(particle->GetParticleName()) != std::string::npos) {
102 G4cout <<
"Switching off Geant4 decay table for: "
103 << particle->GetParticleName() << G4endl;
109 particle->SetDecayTable(0);
113 G4cout <<
"Setting ext decayer for: "
114 << aParticleIterator->value()->GetParticleName() << G4endl;
117 G4ProcessVector* processVector = pmanager->GetProcessList();
118 for (
size_t i = 0; i < processVector->length(); i++) {
120 G4Decay* decay =
dynamic_cast<G4Decay*
>((*processVector)[i]);
121 if (decay) decay->SetExtDecayer(tg4Decayer);
127 <<
"External decayer physics constructed." << G4endl;