LArSoft  v04_26_02
Geant4 Examples

This module collects four sets of user examples aimed to demonstrate to the user how to make correct use of the GEANT4 toolkit by implementing in a correct way those user-classes which the user is supposed to customize in order to define his/her own simulation setup.

The "novice" set of examples is oriented to novice users and covering all possible general use-cases typical of an "application"-oriented kind of development. As several examples in this "novice" set became too complicated, a new "basic" set, covering the most typical use-cases of a Geant4 application with keeping simplicity and ease of use, is provided and is going to replace the "novice" set in future.

An "extended" set of examples require some additional libraries besides of Geant4. This set covers some specific use cases for actual detector simulation. An "advanced" set of examples covers the use-cases typical of a "toolkit"-oriented kind of development, where real complete applications for different simulation studies are provided; may require additional third party products to be built.

Most of the examples can be run both in interactive and batch mode, and input macro files (*.in) and reference output files (*.out) are provided. Basic, novice and most of the extended examples are considered part of the system testing suite for validation of the official releases of the GEANT4 toolkit. Basic, novice and some of the extended and advanced examples are also used as "acceptance"-tests for the release process.

See more on each examples category pages:

And more on what is common for all examples:

  • README_HowToRun
  • README_HowToNavigate