- meant as an extension of https://github.com/matplo/heppy
- an example (you probably want to start in a different directory)...
cd /tmp
git clone https://github.com/matplo/heppy.git
./heppy/docker/heppy/run.sh
cd /host/tmp
git clone https://github.com/matplo/pyjetty.git
heppy_load
./pyjetty/cpptools/build.sh --tenngen --tglaubermc
- run an example within the docker
./pyjetty/pyjetty/examples/pythia_gen_fastjet_lund_test.py
- some info/tips on the heppy docker at https://github.com/matplo/heppy/tree/master/docker/heppy
- next time around it is sufficient to load only the pyjetty:
/tmp/heppy/docker/heppy/run.sh
module use /host/tmp/pyjetty/modules
module load pyjetty
- note the useful
pyjetty_cd
after the pyjetty module is loaded
-
install heppy and
export HEPPY_DIR=<path to heppy>
-
execute
$HEPPY_DIR/scripts/pipenv_heppy.sh run <where pyjetty>/cpptools/build.sh
- that's it... -
alternatively load the heppy module (from in heppy/modules)
- modules/pyjetty contains an env module
module use <where pyjetty>/modules
module load pyjetty/1.0
pyjettypython $PYJETTY_DIR/cpptools/tests/pythia_gen_fj_lund_test.py
notes/tips: use a new shell after building; no need to load or set heppy the pyjetty module should take care of things
- in the
cpptools/src
directory create your code/directory - edit
cpptools/src/pyjetty.i
,cpptools/src/CMakeLists.txt
as needed - run
./cpptools/scripts/build_cpptools.sh
- TennGen background generator (via https://github.com/matplo/TennGen)
-- install with
$HEPPY_DIR/scripts/pipenv_heppy.sh run <where pyjetty>/cpptools/build.sh --tenngen
- TGlauberMC - a Glauber MC implementation (via https://github.com/matplo/TGlauberMC)
-- install with
$HEPPY_DIR/scripts/pipenv_heppy.sh run <where pyjetty>/cpptools/build.sh --tglaubermc
Note: to install both use both flags: --tenngen --tglaubermc
Please fork and make a pull request. Please let us know if you are using this code - we are very much open for collaboration - email us at [email protected]