Hands On 2: Confirming Your Geant4 Installation

Set up


  1. Set up a work directory parallel to your copy of the Geant4 toolkit:

  2. Copy to it two directories from the novice examples area of your copy of Geant4
  3. Check that the following environment variables are set properly


Example N03

  1. Go to the N03 directory
  2. Build the executable:
  3. There should now be an executable file in mytestdir/bin/$G4SYSTEM/ named exampleN03

  4. Go back to the N03 directory and run the executable
  5. A graphics window should open and you should see an Idle> prompt.
  6. You should now see something like this in the graphics window:


  7. Enter exit to end the program.

Example N07

  1. Go to the N07 directory
  2. Build the executable:
  3. There should now be an executable file in mytestdir/bin/$G4SYSTEM/ named exampleN07

  4. Go back to the N03 directory and run the executable
  5. A graphics window should open and you should see an Idle> prompt.
  6. You should now see something like this in the graphics window:


  7. Enter exit to end the program.