G4UnknownParticle Class Reference

#include <G4UnknownParticle.hh>

Inheritance diagram for G4UnknownParticle:

G4ParticleDefinition

Public Member Functions

 ~G4UnknownParticle ()

Static Public Member Functions

static G4UnknownParticleDefinition ()
static G4UnknownParticleUnknownParticleDefinition ()
static G4UnknownParticleUnknownParticle ()

Detailed Description

Definition at line 50 of file G4UnknownParticle.hh.


Constructor & Destructor Documentation

G4UnknownParticle::~G4UnknownParticle (  )  [inline]

Definition at line 59 of file G4UnknownParticle.hh.

00059 {}


Member Function Documentation

G4UnknownParticle * G4UnknownParticle::Definition (  )  [static]

Definition at line 48 of file G4UnknownParticle.cc.

References G4ParticleTable::FindParticle(), G4ParticleDefinition::G4ParticleDefinition(), and G4ParticleTable::GetParticleTable().

Referenced by UnknownParticle(), and UnknownParticleDefinition().

00049 {
00050   if (theInstance !=0) return theInstance;
00051 
00052   const G4String name = "unknown";
00053   // search in particle table]
00054   G4ParticleTable* pTable = G4ParticleTable::GetParticleTable();
00055   G4ParticleDefinition* anInstance = pTable->FindParticle(name);
00056   if (anInstance ==0)
00057   {
00058   // create particle
00059   //      
00060   //    Arguments for constructor are as follows 
00061   //               name             mass          width         charge
00062   //             2*spin           parity  C-conjugation
00063   //          2*Isospin       2*Isospin3       G-parity
00064   //               type    lepton number  baryon number   PDG encoding
00065   //             stable         lifetime    decay table 
00066   //             shortlived      subType    anti_encoding
00067    anInstance = new G4ParticleDefinition(
00068                  name,         0.0*MeV,       0.0*MeV,         0.0, 
00069                     0,               0,             0,          
00070                     0,               0,             0,             
00071            "geantino",               0,             0,           0,
00072                  true,             0.0,          NULL,
00073                 false,      "geantino",            0
00074                 );
00075   }
00076   theInstance = reinterpret_cast<G4UnknownParticle*>(anInstance);
00077   return theInstance;
00078 
00079 }

G4UnknownParticle * G4UnknownParticle::UnknownParticle (  )  [static]

Definition at line 86 of file G4UnknownParticle.cc.

References Definition().

00087 {
00088   return Definition();
00089 }

G4UnknownParticle * G4UnknownParticle::UnknownParticleDefinition (  )  [static]

Definition at line 81 of file G4UnknownParticle.cc.

References Definition().

00082 {
00083   return Definition();
00084 }


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