Today's exercises cover the following items:
A Geant4 application example is provided, which serves as basis of the exercises. The exercises include the modification and/or extension of the following classes:
The following diagram shows the class hierarchy of the sensitive detector and the hit objects:
Please note, that some exercises rely on the successful completion of previous exercises, i.e. previously introduced functionalities might be used at a later stage. These mandatory exercises are marked with a star next to the exercise number (*). If you don't manage to complete them by your own, try to understand the provided solutions and introduce the requested functionalites into your example.
Exercise 4-1
Get familiar with the classes of the example application, which are subject of the exercises (see the list above). Also try to understand the class hierarchies (abstract base class, concrete user implementation) of the relevant classes (the above diagrams might be helpful). Answer following questions:
Exercise 4-2
Exercise 4-3*
Exercise 4-4
Introduce a conditional statement in the ProcessHits method of the sensitive detector, in order that hits are only created for primary particle tracks:
Exercise 4-5
Exercise 4-6
Exercise 4-7