Platform and installation

All snapshots in the examples galleries are taken on the platform as below and installed with the following steps.

  1. geant4.9.5
  2. Ubuntu11.10
  3. cmake version 2.8.5 build libraries and setenv LD_LIBRARY_PATH
  • built-in CLHEP used. GEANT4_USE_SYSTEM_CLHEP DEFAULT : OFF
  • CMAKE_INSTALL_PREFIX is specified as an absolute path
  •  GEANT4_USE_OPENGL_X11: specified as ON
  • GEANT4_INSTALL_DATA default value: OFF and necessary environment variables are specified as below:  Notice G4LEDATA is now required
  • %cd to CMAKE_INSTALL_GEANT4 and %source bin/geant4.csh

 

Environment variables to specify my own data set

  • G4LEVELGAMMADATA=~/G4DATA/PhotonEvaporation2.2
  • G4RADIOACTIVEDATA=~/G4DATA/RadioactiveDecay3.4
  • G4LEDATA=~/G4DATA/G4EMLOW6.23
  •  G4NEUTRONHPDATA=~/G4DATA/G4NDL4.0
  • G4ABLADATA=~/G4DATA/G4ABLA3.0
  • G4REALSURFACEDATA=~/G4DATA/RealSurface1.0
  •  G4NEUTRONXSDATA=~/G4DATA/G4NEUTRONXS1.1
  • G4PIIDATA=~/G4DATA/G4PII1.3

Compilation and run

  1. cd examples/Basic/
  2. mkdir B1-build
  3. cd B1-build
  4. cmake –Geant5_DIR=$CMAKE_INSTALL_GEANT4 ../B1
  5. make
  6. ./exampleB1