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.1.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.40 dataset.
G4LEVELGAMMADATA
Set to the path to the PhotonEvaporation3.1 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 RadioactiveDecay4.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.
In Geant4 10.1, a new dataset G4ENSDFSTATE1.0 has been introduced. Whilst this dataset is downloaded and installed for convenience, it is only required in a few special use cases described in the Geant4 Guide for Toolkit Developers. It is therefore not configured by default (meaning that the environment variable pointing to the data is not set) and you should not do so unless your application has the specific use cases discussed in that guide. Please see the Application Developer's Guide for information about these use cases and how to configure the use of G4ENSDFSTATE1.0.