Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Return to the work dir, create a Geant4 subdir and go into it.
    No Format
    cd $sim_work
    mkdir geant4
    cd geant4
    
  2. Download the Geant4 tarball.
    No Format
    wget http://geant4.cern.ch/geant4/source/source/geant4.7.0.p011.tar.gz
    
  3. Unzip it.
    No Format
    tar -zxvf geant4.7.0.p01.tar.gz
    
  4. Set the following variables in setup.sh. (You should not need to run Configure.)
    No Format
    export G4INSTALL=${sim_work}/geant4/geant4.7.0.p011
    export G4SYSTEM=Linux-g++
    
  5. Go into the Geant4 base dir.
    No Format
    cd geant4.7.0.p011
    
  6. Build the libraries, which will be placed at $G4INSTALL/lib/Linux-g++. (This could take up to a few hours depending on your machine.)
    No Format
    cd source
    make
    # Install the includes into *$G4INSTALL/include* .
    make includes
    
  7. Build the physics list libraries. These will go into the default location at $G4INSTALL/lib/plists/Linux-g++.
    No Format
    cd ../physics_lists/hadronic
    make
    

...

No Format
#!/bin/sh

# work area
export sim_work=~/sim

# clhep installation area
export CLHEP_BASE_DIR=${sim_work}/clhep

# geant4
export G4INSTALL=${sim_work}/geant4/geant4.7.0.p011
export G4SYSTEM=Linux-g++

# LCPhys
export LCPHYS_BASE=${sim_work}/LCPhys

# LCIO
export LCIO=${sim_work}/lcio
export LD_LIBRARY_PATH=$LCIO/tools:$LCIO/bin:$PATH

# Xerces-C++ installation area
export XERCESCROOT=${sim_work}/xercesc
export LD_LIBRARY_PATH=$XERCESCROOT/lib:$PATH

# GDML
export GDML_BASE=${sim_work}/GDML2/CPPGDML

# LCDD
export LCDD_BASE=${sim_work}/lcdd

# SLIC
export SLIC_BASE=${sim_work}/slic

...