If you built and installed Geant4 configured with the option
GEANT4_INSTALL_DATA
set, then the Geant4 datasets will have been downloaded and installed automatically.
In this case, the geant4.(c)sh
and
geant4make.(c)sh
scripts will set up the needed
environment variables required by Geant4 to locate these datasets.
On Windows, you will need to set the needed environment variables
listed below by hand. This can be done as follows
Open the Windows Control Panel.
Open the System item in the Control Panel.
Click on the Advanced system settings link on the System window (on Windows XP, click on the Advanced tab).
Click on the Environment Variables button in the System Properties window.
For each dataset, click on the New button to create a new entry
Enter the Variable name and Variable value using the names and paths described below.
If you chose not to install the datasets, but require them later,
the geant4-config
program may be used to install
them on Unix platforms via its --install-datasets
argument. This is
documented in Section 3.2.3.
On Windows platforms, you will need to download and unpack them by
hand to the location
you specified for GEANT4_INSTALL_DATADIR
.
If you did not set this, it defaults to
CMAKE_INSTALL_PREFIX/share/Geant4-10.3.0/data
.
Unpacking the datasets in this location will result in Geant4
automatically locating them once geant4.(c)sh
or
geant4make.(c)sh
have been sourced.
If you have datasets in a different location, then you will need to manually set the following environment variables:
G4LEDATA
Set to the path to the G4EMLOW6.50 dataset.
G4LEVELGAMMADATA
Set to the path to the PhotonEvaporation4.2 dataset.
G4NEUTRONHPDATA
Set to the path to the G4NDL4.5 dataset.
G4NEUTRONXSDATA
Set to the path to the G4NEUTRONXS1.4 dataset.
G4PIIDATA
Set to the path to the G4PII1.3 dataset.
G4RADIOACTIVEDATA
Set to the path to the RadioactiveDecay5.1 dataset.
G4REALSURFACEDATA
Set to the path to the RealSurface1.0 dataset.
G4SAIDXSDATA
Set to the path to the G4SAIDDATA1.1 dataset.
G4ABLADATA
Set to the path to the G4ABLA3.0 dataset.
G4ENSDFSTATEDATA
Set to the path to the G4ENSDFSTATE2.1 dataset.