Home / Packages / Simulation / Geant4 / Instructions

Instructions for Geant4 administrators

  1. Geant4 installation
  2. Installing Geant4 in the external area
  3. Updating Geant4 in a release

These instructions are confusing. Local installation and installation at CERN are mixed.

1) Geant4 installation

Geant4 has to be installed in a directory with at least 200 MBytes of free disk space. Make sure that the platform and the compiler, which you are using, are supported and up-to-date, and that CLHEP is installed on your machine or that you have access to CERN AFS.

For the typical installation of Geant4 version n.m on lxplus

2) Installing Geant4 in the external area

At CERN Geant4 is installed in the "external" directory /afs/cern.ch/atlas/offline/external/geant4.

Make sure that you have write access to this area; contact Andrea Dell'Acqua if you want to be granted permission.

		 >    EXTERNAL =  /afs/cern.ch/atlas/offline/external    
  or
>   setenv EXTERNAL /afs/cern.ch/atlas/offline/external

>   cd $EXTERNAL/geant4/releases
>   mkdir specific/redhat73/gcc-3.2/geant4.n.m
>   mkdir share/geant4.n.m
Copy recursively from the G4 distribution the directories include and source, and directories lib and bin.
      >   cd $G4INSTALL 
>   cp -r include $EXTERNAL/releases/share/geant4.n.m/
>   cp -r source  $EXTERNAL/releases/share/geant4.n.m/
>   cp -r lib $EXTERNAL/releases/specific/redhat73/gcc-3.2/geant4.n.m/
>   cp -r bin $EXTERNAL/releases/specific/redhat73/gcc-3.2/geant4.n.m/

Disk space in the geant4 external area is extremely limited. Additional volumes (volume1-4) have been added to increase the space. Releases can be copied to one of the additional volumes and links established to set up the requested directory structure.

3) Update Geant4 version in a release

A CMT interface package, External/Geant4, in the ATLAS CVS repository is used to set up the environment needed for running Geant4 in the ATLAS s/w. Change the Geant4 version as follows:

↑ Top