Skip to content

rey-lbl/pyjetty

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1,797 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pyjetty

recommended build/setup

  • 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

  • modules/pyjetty contains an env module

example python script

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

add/extend c++ (swig) to python

  • 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

more functionality?

  • 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

contributing

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 heppy@lbl.gov

About

some work on jets

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages

  • Jupyter Notebook 57.7%
  • Python 34.8%
  • Shell 3.9%
  • C++ 1.8%
  • C 1.6%
  • CMake 0.2%