12.07.2015 Views

Geant4 User's Guide for Application Developers - Geant4 - CERN

Geant4 User's Guide for Application Developers - Geant4 - CERN

Geant4 User's Guide for Application Developers - Geant4 - CERN

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Chapter 1. Introduction1.1. Scope of this manualThe <strong>User's</strong> <strong>Guide</strong> <strong>for</strong> <strong>Application</strong> <strong>Developers</strong> is the first manual the reader should consult when learning about<strong>Geant4</strong> or developing a <strong>Geant4</strong>-based detector simulation program. This manual is designed to:• introduce the first-time user to the <strong>Geant4</strong> object-oriented detector simulation toolkit,• provide a description of the available tools and how to use them, and• supply the practical in<strong>for</strong>mation required to develop and run simulation applications which may be used in realexperiments.This manual is intended to be an overview of the toolkit, rather than an exhaustive treatment of it. Related physicsdiscussions are not included unless required <strong>for</strong> the description of a particular tool. Detailed discussions of thephysics included in <strong>Geant4</strong> can be found in the Physics Reference Manual. Details of the design and functionalityof the <strong>Geant4</strong> classes can be found in the <strong>User's</strong> <strong>Guide</strong> <strong>for</strong> Toolkit <strong>Developers</strong>, and a complete list of all <strong>Geant4</strong>classes is given in the Software Reference Manual.<strong>Geant4</strong> is a completely new detector simulation toolkit written in the C++ language. The reader is assumed to havea basic knowledge of object-oriented programming using C++. No knowledge of earlier FORTRAN versions ofGeant is required. Although <strong>Geant4</strong> is a fairly complicated software system, only a relatively small part of it needsto be understood in order to begin developing detector simulation applications.1.2. How to use this manualA very basic introduction to <strong>Geant4</strong> is presented in Chapter 2, "Getting Started with <strong>Geant4</strong> - Running aSimple Example". It is a recipe <strong>for</strong> writing and running a simple <strong>Geant4</strong> application program. New users of<strong>Geant4</strong> should read this chapter first. It is strongly recommended that this chapter be read in conjunction witha <strong>Geant4</strong> system installed and running on your computer. It is helpful to run the provided examples as they arediscussed in the manual. To install the <strong>Geant4</strong> system on your computer, please refer to the Installation <strong>Guide</strong><strong>for</strong> Setting up <strong>Geant4</strong> in Your Computing Environment.Chapter 3, "Toolkit Fundamentals" discusses general<strong>Geant4</strong> issues such as class categories and the physicalunits system. It goes on to discuss runs and events, which are the basic units of a simulation.Chapter 4, "Detector Definition and Response" describes how to construct a detector from customized materialsand geometric shapes, and embed it in electromagnetic fields. It also describes how to make the detector sensitiveto particles passing through it and how to store this in<strong>for</strong>mation.How particles are propagated through a material is treated in Chapter 5, "Tracking and Physics". The <strong>Geant4</strong>"philosophy" of particle tracking is presented along with summaries of the physics processes provided by thetoolkit. The definition and implementation of <strong>Geant4</strong> particles is discussed and a list of particle properties isprovided.Chapter 6, "User Actions" is a description of the "user hooks" by which the simulation code may be customizedto per<strong>for</strong>m special tasks.Chapter 7, "Communication and Control" provides a summary of the commands available to the user to controlthe execution of the simulation. After Chapter 2, Chapters 6 and 7 are of <strong>for</strong>meost importance to the new applicationdeveloper.The display of detector geometry, tracks and events may be incorporated into a simulation application by usingthe tools described in Chapter 8, "Visualization".Chapter 9, "Examples" provides a set of novice and advanced simulation codes which may be compiled andrun "as is" from the <strong>Geant4</strong> source code. These examples may be used as educational tools or as base code fromwhich more complex applications are developed.1

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!