G4UnboundPN Class Reference

#include <G4UnboundPN.hh>

Inheritance diagram for G4UnboundPN:

G4VShortLivedParticle G4ParticleDefinition

Static Public Member Functions

static G4UnboundPNDefinition ()
static G4UnboundPNUnboundPNDefinition ()
static G4UnboundPNUnboundPN ()

Detailed Description

Definition at line 46 of file G4UnboundPN.hh.


Member Function Documentation

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(); }


The documentation for this class was generated from the following files:
Generated on Mon May 27 17:53:37 2013 for Geant4 by  doxygen 1.4.7