G4Geantino Class Reference

#include <G4Geantino.hh>

Inheritance diagram for G4Geantino:

G4ParticleDefinition

Public Member Functions

 ~G4Geantino ()

Static Public Member Functions

static G4GeantinoDefinition ()
static G4GeantinoGeantinoDefinition ()
static G4GeantinoGeantino ()

Detailed Description

Definition at line 50 of file G4Geantino.hh.


Constructor & Destructor Documentation

G4Geantino::~G4Geantino (  )  [inline]

Definition at line 59 of file G4Geantino.hh.

00059 {}


Member Function Documentation

G4Geantino * G4Geantino::Definition (  )  [static]

Definition at line 49 of file G4Geantino.cc.

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

Referenced by Geantino(), and GeantinoDefinition().

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

G4Geantino * G4Geantino::Geantino (  )  [static]

Definition at line 87 of file G4Geantino.cc.

References Definition().

Referenced by G4ParticleGunMessenger::G4ParticleGunMessenger().

00088 {
00089   return Definition();
00090 }

G4Geantino * G4Geantino::GeantinoDefinition (  )  [static]

Definition at line 82 of file G4Geantino.cc.

References Definition().

Referenced by G4BosonConstructor::ConstructParticle(), G4TheRayTracer::CreateBitMap(), and G4SingleParticleSource::G4SingleParticleSource().

00083 {
00084   return Definition();
00085 }


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