Hepmcanalysis
simple python module to have easy HepMC event loops in python
Install / Use
/learn @lukasheinrich/HepmcanalysisREADME
hepmcanalysis
simple python module to have easy HepMC event loops in python. This is very light wrapper around pyhepmc.
Installation
git clone https://github.com/lukasheinrich/hepmcanalysis.git
cd hepmcanalysis
python setup.py build
python setup.py install
Usage
A complete example looping events and printing them looks like this:
#!/usr/bin/env python
from hepmcanalysis.events import fromfile
def main():
for e in fromfile('test.hepmc'):
print 'numer of particles: {}'.format(len(e.particles()))
if __name__ == '__main__':
main()
example: http://nbviewer.ipython.org/github/lukasheinrich/hepmcanalysis/blob/master/hepmczanalysis.ipynb
Related Skills
node-connect
339.1kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
83.8kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
339.1kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
commit-push-pr
83.8kCommit, push, and open a PR
