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 by opening the Environment
Variables dialog, as described in Section 3.1, clicking on the New button, and entering 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,
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-9.6.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.32 dataset.
G4LEVELGAMMADATA
Set to the path to the PhotonEvaporation2.3 dataset.
G4NEUTRONHPDATA
Set to the path to the G4NDL4.2 dataset.
G4NEUTRONXSDATA
Set to the path to the G4NEUTRONXS1.2 dataset.
G4PIIDATA
Set to the path to the G4PII1.3 dataset.
G4RADIOACTIVEDATA
Set to the path to the RadioactiveDecay3.6 dataset.
G4REALSURFACEDATA
Set to the path to the RealSurface1.0 dataset.
G4SAIDXSDATA
Set to the path to the G4SAIDDATA1.1 dataset.