gluon48:marki:geant4> cat README.geant4.10.02.p02fixed
Sep 8, 2016
NOTE: The source file G4GDMLReadStructure.cc was modified to fix a
bug reported to GEANT4 bugzilla (# 1842) but not yet fixed in distributed
source. Link to bug report is here:
The modified source was re-tarred as geant4.10.02.p02fixed.tar.gz
Here is how I built Geant4 10.02.p02fixed on Linux RHEL6 x86_64
0.) Make sure gcc4.9.2 and cmake 3.5.1 are in your PATH. gcc was
already set up via sim-recon, but I had to add cmake explicitly:
> setenv PATH /apps/cmake/cmake-3.5.1/bin:$PATH
1.) Unpack the source and create a build directory next to it as
suggested by the build instructions.
> tar xzf geant4.10.02.p02fixed.tar.gz
> mkdir geant4.10.02.p02fixed-build.$BMS_OSNAME
> cd geant4.10.02.p02fixed-build.$BMS_OSNAME
2.) Run cmake with appropriate flags to turn on GDML, OpenGL, and
raytracer. The GDML is so it can read geometry converted from
HDDS to GDML using the ROOT TGeoManager->Export() utility.
Note that GDML requires xerces and that it be given explicitly.
> cmake -DCMAKE_INSTALL_PREFIX=/group/halld/Software/ExternalPackages/GEANT4/geant4.10.02.p02fixed.$BMS_OSNAME \
3.) Run make (multi-threaded) followed by make install
> nice make -j32
> make install
4.) Make sure the "data" directory containing all of the physics
process data files exists parallel to the installation directory.
The directory: geant4.10.02.p02fixed.$BMS_OSNAME/share/Geant4-10.2.2
will automatically be created. The data link, however, must be
created by hand:
> cd geant4.10.02.p02fixed.Linux_CentOS6-x86_64-gcc4.4.7/share/Geant4-10.2.2
> ln -s ../../../data
5.) Set up your environment to use this.
setenv G4 /group/halld/Software/ExternalPackages/GEANT4/geant4.10.02.p02fixed.$BMS_OSNAME
For older details, see:
two step process:
1. fix data model
2. convert from geant3 to geant4
Have a meeting a week from Friday: March 8