Proton Calorimetry/Detector Simulation
Jump to navigation
Jump to search
This page contains information on the Geant4 code that form the Proton Calorimetry detector simulation.
In order to run Geant4 simulations, you will either need to download and install the software yourself or make use of the existing installation on the UCL HEP Linux cluster. To use the existing installation, follow this dedicated page.
Local Installation of GEANT4 on MacOS
Correct for MacOS High Sierra 10.13.6
- Install Xcode 10 or higher from Mac App Store and install command line tools by executing in a terminal window
xcode-select --install
. - Install CMake 3.8 or higher [1]
- Optional: Install CLHEP 2.4.1.0 or higher [2] (see README for build/install instructions)
<source_code_dir>
is the directory where the README is located.<build_directory>
can be any folder you like (can be deleted after installation).<install_directory>
should be the default:/usr/local
- Install Expat 2.0.1 or higher [3] (see README for build/install instructions)
- Execute
./buildconf.sh
and then./configure
in the directory<download_directory>/expat
- Might need to use
sudo
when executingmake install
- Execute
- Install zlib 1.2.3 or higher [4] (see README for build/install instructions)
- Might need to use
sudo
when executingmake install</code.>
- Might need to use
- Install Xerces-C++ headers and library 3 or higher [5]
- Will need to install GPG [6] to verify KEYS
- Install GEANT4 [7]
- Enable additional build options: multithreading, install data, GDML, QT, OpenGL, RayTracer, zlib
- Apparently system CLHEP should not be used unless absolutely necessary
Running QUARC Detector Simulation
- You can copy the simulation files from this path on the HEP cluster:
/unix/pbt/users/sshaikh/Simulation
- In the folder 'build', execute:
sudo cmake -DCMAKE_PREFIX_PATH=/usr/local/lib/Geant4-<YOUR VERSION HERE>/ <YOUR PATH TO SIMULATION FOLDER>
- Then, execute:
sudo make
- To run the simulation with the default macro,
inter.mac
, execute: ./ProtonSimulation
- To run the simulation with a different macro, e.g.
interactive.mac
, execute: ./ProtonSimulation ../macros/interactive.mac