#include <G4DecayPhysics.hh>
Inheritance diagram for G4DecayPhysics:
Public Member Functions | |
G4DecayPhysics (G4int ver=1) | |
G4DecayPhysics (const G4String &name, G4int ver=1) | |
virtual | ~G4DecayPhysics () |
virtual void | ConstructParticle () |
virtual void | ConstructProcess () |
virtual G4Decay * | GetDecayProcess () |
Definition at line 49 of file G4DecayPhysics.hh.
G4DecayPhysics::G4DecayPhysics | ( | G4int | ver = 1 |
) |
Definition at line 60 of file G4DecayPhysics.cc.
00061 : G4VPhysicsConstructor("Decay"), verbose(ver), wasActivated(false) 00062 { 00063 fDecayProcess = 0; 00064 }
Definition at line 66 of file G4DecayPhysics.cc.
00067 : G4VPhysicsConstructor(name), verbose(ver), wasActivated(false) 00068 { 00069 fDecayProcess = 0; 00070 }
G4DecayPhysics::~G4DecayPhysics | ( | ) | [virtual] |
void G4DecayPhysics::ConstructParticle | ( | ) | [virtual] |
Implements G4VPhysicsConstructor.
Definition at line 77 of file G4DecayPhysics.cc.
References G4ShortLivedConstructor::ConstructParticle(), G4IonConstructor::ConstructParticle(), G4BaryonConstructor::ConstructParticle(), G4MesonConstructor::ConstructParticle(), G4LeptonConstructor::ConstructParticle(), and G4BosonConstructor::ConstructParticle().
00078 { 00079 00080 // G4cout << "G4DecayPhysics::ConstructParticle" << G4endl; 00081 G4BosonConstructor pBosonConstructor; 00082 pBosonConstructor.ConstructParticle(); 00083 00084 G4LeptonConstructor pLeptonConstructor; 00085 pLeptonConstructor.ConstructParticle(); 00086 00087 G4MesonConstructor pMesonConstructor; 00088 pMesonConstructor.ConstructParticle(); 00089 00090 G4BaryonConstructor pBaryonConstructor; 00091 pBaryonConstructor.ConstructParticle(); 00092 00093 G4IonConstructor pIonConstructor; 00094 pIonConstructor.ConstructParticle(); 00095 00096 G4ShortLivedConstructor pShortLivedConstructor; 00097 pShortLivedConstructor.ConstructParticle(); 00098 }
void G4DecayPhysics::ConstructProcess | ( | ) | [virtual] |
Implements G4VPhysicsConstructor.
Definition at line 100 of file G4DecayPhysics.cc.
References G4cout, G4endl, G4ParticleDefinition::GetParticleName(), G4PhysicsListHelper::GetPhysicsListHelper(), G4Decay::IsApplicable(), G4PhysicsListHelper::RegisterProcess(), G4ParticleTableIterator< K, V >::reset(), G4VPhysicsConstructor::theParticleIterator, and G4ParticleTableIterator< K, V >::value().
00101 { 00102 if(wasActivated) { return; } 00103 wasActivated = true; 00104 00105 G4PhysicsListHelper* ph = G4PhysicsListHelper::GetPhysicsListHelper(); 00106 00107 // Add Decay Process 00108 fDecayProcess = new G4Decay(); 00109 theParticleIterator->reset(); 00110 G4ParticleDefinition* particle=0; 00111 00112 while( (*theParticleIterator)() ) 00113 { 00114 particle = theParticleIterator->value(); 00115 if( fDecayProcess->IsApplicable(*particle) ) 00116 { 00117 if(verbose > 1) { 00118 G4cout << "### Decays for " << particle->GetParticleName() << G4endl; 00119 } 00120 ph->RegisterProcess(fDecayProcess, particle); 00121 } 00122 } 00123 }
virtual G4Decay* G4DecayPhysics::GetDecayProcess | ( | ) | [inline, virtual] |