46 #include "Geant4/G4ParticleDefinition.hh" 47 #include "Geant4/G4ProcessManager.hh" 49 #include "Geant4/G4BosonConstructor.hh" 50 #include "Geant4/G4LeptonConstructor.hh" 51 #include "Geant4/G4MesonConstructor.hh" 52 #include "Geant4/G4BosonConstructor.hh" 53 #include "Geant4/G4BaryonConstructor.hh" 54 #include "Geant4/G4IonConstructor.hh" 55 #include "Geant4/G4ShortLivedConstructor.hh" 58 #include "Geant4/G4PhysicsConstructorFactory.hh" 66 : G4VPhysicsConstructor(
"Decay"), verbose(ver)
71 : G4VPhysicsConstructor(name),
verbose(ver)
83 G4BosonConstructor pBosonConstructor;
84 pBosonConstructor.ConstructParticle();
86 G4LeptonConstructor pLeptonConstructor;
87 pLeptonConstructor.ConstructParticle();
89 G4MesonConstructor pMesonConstructor;
90 pMesonConstructor.ConstructParticle();
92 G4BaryonConstructor pBaryonConstructor;
93 pBaryonConstructor.ConstructParticle();
95 G4IonConstructor pIonConstructor;
96 pIonConstructor.ConstructParticle();
98 G4ShortLivedConstructor pShortLivedConstructor;
99 pShortLivedConstructor.ConstructParticle();
107 G4PhysicsListHelper* ph = G4PhysicsListHelper::GetPhysicsListHelper();
111 auto myParticleIterator=GetParticleIterator();
112 myParticleIterator->reset();
113 G4ParticleDefinition* particle=0;
115 while( (*myParticleIterator)() )
117 particle = myParticleIterator->value();
120 bool isMuPlus = particle->GetParticleName() ==
"mu+";
124 G4cout <<
"### Decays for " << particle->GetParticleName() << G4endl;
129 G4cout <<
"MyG4DecayPhysics::ConstructProcess() mu+ decays will be disabled\n" << G4endl;
130 particle->DumpTable();
131 particle->GetProcessManager()->DumpInfo();
G4_DECLARE_PHYSCONSTR_FACTORY(MyG4DecayPhysics)
static G4ThreadLocal G4Decay * fDecayProcess
static G4ThreadLocal G4bool wasActivated
virtual void ConstructProcess()
virtual ~MyG4DecayPhysics()
MyG4DecayPhysics(G4int ver=1)
virtual void ConstructParticle()