Giter VIP home page Giter VIP logo

pyjetty's Introduction

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 [email protected]

pyjetty's People

Contributors

jdmulligan avatar matplo avatar ezradlesser avatar felixringer avatar hotqcd avatar rey-lbl avatar nacerh avatar pdhankhe avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.