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