SkillAgentSearch skills...

Hepmcanalysis

simple python module to have easy HepMC event loops in python

Install / Use

/learn @lukasheinrich/Hepmcanalysis
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

hepmcanalysis

DOI

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

View on GitHub
GitHub Stars5
CategoryDevelopment
Updated1y ago
Forks1

Languages

Jupyter Notebook

Security Score

70/100

Audited on Jan 9, 2025

No findings