36 #include <Geant4/G4Decay.hh>
37 #include <Geant4/G4ParticleDefinition.hh>
38 #include <Geant4/G4ParticleTable.hh>
39 #include <Geant4/G4ProcessManager.hh>
40 #include <Geant4/G4ProcessVector.hh>
41 #include <Geant4/G4String.hh>
42 #include <Geant4/G4VPhysicsConstructor.hh>
43 #include <Geant4/G4VProcess.hh>
44 #include <Geant4/G4Version.hh>
53 #ifndef aParticleIterator
54 #define aParticleIterator ((subInstanceManager.offset[g4vpcInstanceID])._aParticleIterator)
58 : G4VPhysicsConstructor(name)
59 , _active_force_decay(
false)
60 , _force_decay_type(
kAll)
99 G4ProcessManager* pmanager = particle->GetProcessManager();
101 if (verboseLevel > 1)
103 std::cout <<
"Setting ext decayer for: "
108 G4ProcessVector* processVector = pmanager->GetProcessList();
109 #if G4VERSION_NUMBER >= 1060
110 for (
size_t i = 0;
i < processVector->length();
i++)
112 for (G4int
i = 0;
i < processVector->length();
i++)
115 G4Decay* decay =
dynamic_cast<G4Decay*
>((*processVector)[
i]);
122 decay->SetExtDecayer(extDecayer);
139 if (verboseLevel > 0)
141 std::cout <<
"External decayer physics constructed." << std::endl;