Session 3

Primary Particles, User Actions

Presentations

  • Primary Particles ( slides )
    • Primary particle generation, G4VUserPrimaryGeneratorAction and G4VPrimaryGenerator classes, Primary vertex and primary particle, Built-in primary particle generators, Particle gun, GPS, Interfaces to HEPEvt and HepMC
  • User Actions ( slides )
    • Optional user actions
  • Random number generators ( slides )
    • Introduction, HepRandom engine, /random commands
  • User Interfaces
    • Geant4 User Interfaces overview, Syntax of UI command, Interactive mode / batch mode, Macro file, G4UIExecutive  class ( slides )
    • Defining UI commands, Messenger classes, G4GenericMessengerslides )
    • Defining visualization and UI in main()slides )

Exercise

  • Use of G4ParticleGun
  • Randomizing particle direction
  • Storing/retrieving random generator status