#include <G4OpticalPhoton.hh>
Inheritance diagram for G4OpticalPhoton:
Public Member Functions | |
~G4OpticalPhoton () | |
Static Public Member Functions | |
static G4OpticalPhoton * | Definition () |
static G4OpticalPhoton * | OpticalPhotonDefinition () |
static G4OpticalPhoton * | OpticalPhoton () |
Definition at line 50 of file G4OpticalPhoton.hh.
G4OpticalPhoton::~G4OpticalPhoton | ( | ) | [inline] |
G4OpticalPhoton * G4OpticalPhoton::Definition | ( | ) | [static] |
Definition at line 49 of file G4OpticalPhoton.cc.
References G4ParticleTable::FindParticle(), G4ParticleDefinition::G4ParticleDefinition(), and G4ParticleTable::GetParticleTable().
Referenced by OpticalPhoton(), and OpticalPhotonDefinition().
00050 { 00051 if (theInstance !=0) return theInstance; 00052 00053 const G4String name = "opticalphoton"; 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 2, -1, -1, 00071 0, 0, 0, 00072 "opticalphoton", 0, 0, 0, 00073 true, 0.0, NULL, 00074 false, "photon", 0 00075 ); 00076 } 00077 theInstance = reinterpret_cast<G4OpticalPhoton*>(anInstance); 00078 return theInstance; 00079 }
G4OpticalPhoton * G4OpticalPhoton::OpticalPhoton | ( | ) | [static] |
Definition at line 87 of file G4OpticalPhoton.cc.
References Definition().
Referenced by G4OpticalPhysics::ConstructProcess(), G4OpWLS::IsApplicable(), G4OpRayleigh::IsApplicable(), G4OpMieHG::IsApplicable(), G4OpBoundaryProcess::IsApplicable(), G4OpAbsorption::IsApplicable(), G4Scintillation::PostStepDoIt(), G4OpWLS::PostStepDoIt(), and G4Cerenkov::PostStepDoIt().
00088 { 00089 return Definition(); 00090 }
G4OpticalPhoton * G4OpticalPhoton::OpticalPhotonDefinition | ( | ) | [static] |
Definition at line 82 of file G4OpticalPhoton.cc.
References Definition().
Referenced by G4OpticalPhysics::ConstructParticle(), and G4BosonConstructor::ConstructParticle().
00083 { 00084 return Definition(); 00085 }