Overview Contents Previous Next Geant4 User's Documents
Geant4 User's Guide
For Application Developers

2. Getting Started with Geant4 - Running a Simple Example

  1. How to Define the main() Program
    1. A Sample main() Method
    2. G4RunManager
    3. User Initialization and Action Classes
    4. G4UImanager and UI Command Submission
    5. G4cout and G4cerr
  2. How to Define a Detector Geometry
    1. Basic Concepts
    2. Create a Simple Volume
    3. Choose a Solid
    4. Create a Logical Volume
    5. Place a Volume
    6. Create a Physical Volume
    7. Coordinate Systems and Rotations
  3. How to Specify Materials in the Detector
    1. General Considerations
    2. Define a Simple material
    3. Define a Molecule
    4. Define a Mixture by Fractional Mass
    5. Print Material Information
  4. How to Specify Particles
    1. Particle Definition
    2. Range Cuts
  5. How to Specify Physics Processes
    1. Physics Processes
    2. Managing Processes
    3. Specifying Physics Processes
  6. How to Generate a Primary Event
    1. Generating Primary Events
    2. G4VPrimaryGenerator
  7. How to Make an Executable Program
    1. Building ExampleN01 in a UNIX environment
    2. Building ExampleN01 in a Windows Environment
  8. How to Set Up an Interactive Session
    1. Introduction
    2. A Short Description of Available Interface Classes
    3. Building the Interface Libraries
    4. How to Use the Interface
  9. How to Execute a Program
    1. Introduction
    2. 'Hard-coded' Batch Mode
    3. Batch Mode with Macro File
    4. Interactive Mode Driven by Command Lines
    5. General Case
  10. How to Visualize the Detector and Events
    1. Introduction
    2. Visualization Drivers
    3. How to Incorporate Visualization Drivers into an Executable
    4. Writing the main() Method to Include Visualization
    5. Sample Visualization Sessions
    6. More Information on Geant4 Visualization

About the authors