Each particle type corresponds to
- a class derived from G4ParticleDefinition (one to one)
- ex.) G4Electron represents “electron”
- the static and unique object of the class
- The object is created automatically at the beginning
if the class is declared in the execution of the program
The pointer to the static object can be obtained by
the static member function such as G4Electron::Electron()
- a class derived from G4ParticleDefinition (one to one)
G4ParticleTable has
- the list of all particle types existent in the program
- some functions to search in the list
Previous slide | Next slide | Back to first slide | View graphic version |