Session 4 : Enoncé

Code for download: session4_start.tar.gz

Exercise:

  • Explore processes defined for proton, e-, e+, gamma particles via UI commands and add these commands in run.mac.
  • Add a possibility to select any Geant4 physics list using G4PhysListFactory class.
    • Check availability of the physics list via
      G4bool IsReferencePhysList(const G4String& physListName);
      See basic/B4/B4a/exampleB4a.cc how to define optional arguments in main function.
  • Set particles production thresholds (cuts) via Geant4 command in run.mac.
    See setCut* commands in /run directory.
  • Define a region in EM calorimeter with lower production thresholds than the default ones.
    See in DetectorConstruction class in examples/extended/electromagnetic/TestEm8 how to define a region with production cuts.

Solution: session4_solution.tar.gz

Exercise ++:

The exercises marked as ++ are optional; they are recommended for participants who have already some experience with Geant4 and get some time left for practicing more than the basic exercise proposed above.

  • There is no complementary exercise for this session.