【文件属性】:
文件名称:hepmcanalysis:简单的python模块在python中具有简单的HepMC事件循环
文件大小:3.23MB
文件格式:ZIP
更新时间:2021-05-17 09:47:27
JupyterNotebook
肝素分析
简单的python模块,可以在python中轻松实现HepMC事件循环。 这是围绕非常轻巧的包装。
安装
git clone https://github.com/lukasheinrich/hepmcanalysis.git
cd hepmcanalysis
python setup.py build
python setup.py install
用法
一个完整的循环事件并打印事件的示例如下所示:
#!/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
【文件预览】:
hepmcanalysis-master
----README.md(884B)
----tests()
--------what.hepmc(7.76MB)
--------readwrite.py(324B)
--------test.hepmc(7.76MB)
--------demo.py(219B)
----LICENSE(18KB)
----hepmcanalysis()
--------ostreamproxy.h(720B)
--------ostringstreamproxy.h(605B)
--------istreamproxy.h(719B)
--------streamproxy.i(527B)
--------events.py(927B)
--------__init__.py(254B)
--------istringstreamproxy.h(695B)
----hepmczanalysis.ipynb(19KB)
----setup.py(1KB)