Versions Compared

Key

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

...

Geant4 is probably the most difficult application to install of SLIC's dependencies, because there are a lot of options. I will describe a minimal installation procedure with support for built-in UI and visualization drivers. drivers You can always update the libraries later if you decide to change these settings.

Warning

The default Geant4 library settings for WIN32 are global and static. You may choose other settings, but this could require changes in installation settings "down the line" that I may not mention.

  1. Return to the work dir, create a Geant4 work 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.p01.tar.gz
    
  3. Unzip it.
    No Format
    tar zxvf geant4.7.0.p01.tar.gz
    
  4. Setting the following variables in $sim_work/setup.sh should allow you to compile without running the ./Configure script.
    No Format
    G4INSTALL=${sim_wrk}/geant4/geant4.7.0.p01
    G4SYSTEM=WIN32-g++
    
  5. Go into the Geant4 install dir.
    No Format
    cd geant4.7.0.p01
    
  6. Build the libraries. These will be placed at $G4INSTALL/lib/WIN32-g++. (Maybe you should let this run overnight!)
    No Format
    make
    
  7. Build the physics list libraries. These will go into $G4INSTALL/lib/plists/WIN32-g++.
    No Format
    cd ../physics_lists/hadronic
    make
    cd ../electromagnetic
    make
    
  8. Install the headers.
    No Format
    make includes
    

...

LCPhys

  1. Go back to the work dir.
    No Format
    cd $sim_wrk
    
  2. Checkout the physics list from CVS.
    No Format
    cvs -d :pserver:anonymous@cvs.freehep.org:/cvs/lcd checkout LCPhys
    
  3. Assuming that the environment from the Geant4 installation is still in place, you can build this like any other physics list.
    No Format
    cd LCPhys
    make
    
  4. Set the LCPhys variable in setup.sh.
    No Format
    LCPHYS_BASE=$sim_wrk/LCPhys
    

...