#include <G4UnboundPN.hh>
Inheritance diagram for G4UnboundPN:
Static Public Member Functions | |
static G4UnboundPN * | Definition () |
static G4UnboundPN * | UnboundPNDefinition () |
static G4UnboundPN * | UnboundPN () |
Definition at line 46 of file G4UnboundPN.hh.
G4UnboundPN * G4UnboundPN::Definition | ( | ) | [static] |
Definition at line 66 of file G4UnboundPN.cc.
References G4ParticleTable::GetParticleTable(), G4ParticleTable::Remove(), and G4ParticleTable::SetReadiness().
Referenced by G4InuclElementaryParticle::makeDefinition(), G4InuclElementaryParticle::type(), UnboundPN(), and UnboundPNDefinition().
00066 { 00067 if (0 == theInstance) { 00068 theInstance = new G4UnboundPN; // There can be only one 00069 00070 G4ParticleTable* pTable = G4ParticleTable::GetParticleTable(); 00071 pTable->SetReadiness(false); // Suppress error message 00072 pTable->Remove(theInstance); // Make invisible to GEANT4 00073 pTable->SetReadiness(true); // Set back 'ready to use' flag 00074 } 00075 00076 return theInstance; 00077 }
G4UnboundPN * G4UnboundPN::UnboundPN | ( | ) | [static] |
Definition at line 81 of file G4UnboundPN.cc.
References Definition().
00081 { return Definition(); }
G4UnboundPN * G4UnboundPN::UnboundPNDefinition | ( | ) | [static] |
Definition at line 80 of file G4UnboundPN.cc.
References Definition().
00080 { return Definition(); }