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/G4Types.hh>
42 #include <Geant4/G4VPhysicsConstructor.hh>
43 #include <Geant4/G4VProcess.hh>
44 #include <Geant4/G4Version.hh>
52 #ifndef aParticleIterator
53 #define aParticleIterator ((subInstanceManager.offset[g4vpcInstanceID])._aParticleIterator)
57 : G4VPhysicsConstructor(name)
58 , _active_force_decay(
false)
59 , _force_decay_type(
kAll)
98 G4ProcessManager* pmanager = particle->GetProcessManager();
100 if (verboseLevel > 1)
102 std::cout <<
"Setting ext decayer for: "
107 G4ProcessVector* processVector = pmanager->GetProcessList();
108 #if G4VERSION_NUMBER >= 1060
109 for (
size_t i = 0; i < processVector->length(); i++)
111 for (G4int i = 0; i < processVector->length(); i++)
114 G4Decay* decay =
dynamic_cast<G4Decay*
>((*processVector)[i]);
121 decay->SetExtDecayer(extDecayer);
138 if (verboseLevel > 0)
140 std::cout <<
"External decayer physics constructed." << std::endl;