Introduction to GEANT4

From UCL HEP PBT Wiki

Jump to: navigation, search
m
m
Line 114: Line 114:
== Generate primary particles ==  
== Generate primary particles ==  
-
G4VUserPrimaryGeneratorAction is a mandatory user action class to control the generation of primary particles.  
+
<span style="color:#ff0000"> G4VUserPrimaryGeneratorAction </span> is a mandatory user action class to control the generation of primary particles.  
-
The particle generation is done via classes G4ParticleGun and G4GeneralParticleSource.  
+
The particle generation is done via classes <span style="color:#ff0000"> G4ParticleGun </span> and <span style="color:#ff0000"> G4GeneralParticleSource </span>.  
* <span style="color:#ff0000"> G4ParticleGun </span> is used to simulate a beam of particles. It shoots a primary particle of a certain energy and direction from a given point at a given time.
* <span style="color:#ff0000"> G4ParticleGun </span> is used to simulate a beam of particles. It shoots a primary particle of a certain energy and direction from a given point at a given time.

Revision as of 07:51, 7 July 2014

Personal tools