- this is put together using the excellent https://github.com/Mizux/cmake-swig (a complete example of how to create a Modern CMake C++ Project with the SWIG code generator - wrappers for Python, .Net and Java.) - note, some doc left on purpose
- still needs work but main idea of having things in python is working (FastJet contribs with CMake + python (SWIG) bindings)
- tested with FastJet ver. 3.3.2
- and parts of code from FastJet Contrib ver. 1.041 - work on the python bindings ongoing (RecursiveTools and LundPlane for the moment)
- patches RecursiveTools/RecursiveSymmetryCutBase.hh, LundPlane/SecondaryLund.hh, LundPlane/LundGenerator.hh
- relies on
pythia8-configandfastjet-configin $PATH - tested with SWIG 4.0
- cmake 3.14.4
- CGAL 13.0.3 + BOOST 1.69.00 (also tested with cgal (and boost) installed with brew
brew install cgal) - ought to work with any 2.7> python - (see cmake/python.cmake) but the test (directory) fixed python ver. 3.
- this is in development so installation needs improvement - see below for a local install
git clone git@github.com:matplo/fjpydev.git
cd fjpydev/test
./local_pythia_install.sh
./local_fastjet_install.sh
. ./setup_env.sh
./build_here.sh
python3 ./05-user-info.py- for a quick install of PYTHIA8 (http://home.thep.lu.se/~torbjorn/Pythia.html) - use
local_pythia_install.sh - same for fastjet use
./local_fastjet_install.sh - before use (python, jupyter etc) source (fix of PYTHON_PATH)
. ./setup_env.shor usesys.path.append(...)in your python