Giter VIP home page Giter VIP logo

heppyy's Introduction

heppyy

HEP soft with python using cppyy

recommendation

use yasp with virtualenv

workdir=<somewhere>
cd ${workdir}
git clone https://github.com/matplo/yasp
cd yasp
./yaspenv.sh
# ./yasp.py -i yasp -m
# module load yasp

# Install some packages: can use --define version=x.xx.xx to set custom versions
python -m pip install numpy
yasp -mi HepMC2/2.06.11
module load HepMC2/2.06.11
yasp -mi HepMC3/3.2.7
module load HepMC3/3.2.7
yasp -mi LHAPDF6/6.5.4
module load HepMC3/3.2.7
yasp -mi fastjet/3.4.2
module load fastjet/3.4.2
yasp -i fjcontrib/1.053-custom  # Builds into fastjet
yasp -i IFNPlugin/jetflav         # Builds into fastjet
# yasp -i jetflav/default         # Builds into fastjet
yasp -mi root/6.28.12
module load root/6.28.12
yasp -mi roounfold/default
module load roounfold/default
yasp -mi pythia8/8310
module load pythia8/8310
yasp -mi sherpa/2.2.15 --define extra_opt=--disable-pyext
# you may need to use a cxx flag on a mac
# yasp -mi sherpa/2.2.15 --define cxx14=true
  • then one can do (starting with a fresh shell below)
cd ${workdir}
source yasp/venvyasp/bin/activate  # Load the virtualenv
module use yasp/software/modules   # Tell module where to look
module load root roounfold HepMC2 LHAPDF6 HepMC3 pythia8 sherpa fastjet
git clone https://github.com/matplo/heppyy.git
./heppyy/install_with_yasp.sh
  • test
./heppyy/example/test_yaspcppyy_pythia_fastjet.py
  • note yasp can make a collect module file
cd ${workdir}
./yasp/yaspenv.sh
module load root HepMC2 LHAPDF6 HepMC3 pythia8 sherpa fastjet heppyy
yasp --mm myheppyy

so next time "module load myheppyy" should work...

test

  • run ./example/test_pythia_fastjet.py

heppyy's People

Contributors

ezradlesser avatar matplo avatar

Stargazers

 avatar

Watchers

 avatar  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.