Introduction to Geant4
Lectures by Andrea dell'Acqua (CERN)

From the Ann Arbor Workshop on Geant4
26 February to 2 March, 2001.

Exercise N04


Exercise number 4 comes from  Lecture 10, Kinematics, beginning on slide number 12.
 
 

Steps ExN04

The aim of the exercise is to implement a PrimaryGeneratorAction, 4-p generator (flat generation of particles in eta-phi).
    1. Use G4ParticleGun as a first attempt (the test beam generator is trivial in this case).
    2. Now try and implement your own PrimaryGenerator.
    3. Use G4UniformRand(), from Randomize.hh, if you need a random number generator (flat distribution in ]0,1[ ).
Definitions Helpful Links Checklist
Back to the Geant4 Lectures


For information: wlap@umich.edu
http://www.umich.edu/~wlap Last modified: syscmd(date)