Python、ROOT 和 MINUIT 集成?

发布于 2024-07-13 13:39:41 字数 1436 浏览 8 评论 0原文

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

晚雾 2024-07-20 13:39:43

可能值得查看 rootpy。 也许还没有完全成熟,但这是朝着正确方向迈出的一步。

是的,rootpy 构建在 PyROOT 之上,但具有一些附加功能

  • :强调Pythonic接口并隐藏ROOT的一些丑陋之处;
  • 它与 matlibplot 集成,后者拥有更大的开发社区,并且在 SO 上有更多的存在,更不用说更好了寻找情节;
  • 它允许转换为 HDF5 文件,这将允许您与无法使用的人共享数据安装整体 ROOT 包的时间。

不幸的是,只要您正在使用构建在 CINT 之上的东西(其中PyROOT 是),您仍然需要处理 ROOT 中最丑陋的部分


如果您厌倦了摸索 PyROOT,另一种选择是使用 将 ROOT 直接转换为HDF5

It's probably worth checking out rootpy. Maybe not totally mature yet, but it's a step in the right direction.

Yes, rootpy is built on top of PyROOT, but with some additional features:

  • it emphasizes a pythonic interface and hides some of the ugliness of ROOT;
  • it integrates with matlibplot, which has a larger development community, and a greater presence on SO, not to mention better looking plots;
  • it allows conversion to HDF5 files, which will allow you to share data with people who can't take the time to install the monolithic ROOT package.

Unfortunately, as long as you're working with something built on top of CINT (which PyROOT is), you'll still have to deal with one of the ugliest parts of ROOT.


The other option, if you're sick of fumbling with PyROOT, is to use one of the packages that converts ROOT directly to HDF5

海夕 2024-07-20 13:39:43

我不久前写了一个 minuit 包装器(在我的 1 次经验样本中,ROOT 的 minuit 似乎比 pyminuit 更强大,而且我更喜欢 ROOT Minuit 输出)

https://github.com/piti118/RTMinuit

具有numpy根文件读取能力

https: //github.com/piti118/root_numpy

以及基于 RTMinuit 和 numpy 的不太完善的拟合库和玩具生成等

https://github.com/piti118/dist_fit

教程和帮助都在包中给出

I wrote a minuit wrapper a while back(In my sample of 1 experience, ROOT's minuit seems more robust than pyminuit and I like ROOT Minuit output more)

https://github.com/piti118/RTMinuit

With numpy root file reading capability

https://github.com/piti118/root_numpy

And not so polished fitting library and toy generation etc. based on RTMinuit and numpy

https://github.com/piti118/dist_fit

Tutorials and help are all given in the package

故人爱我别走 2024-07-20 13:39:42

您知道 pyROOT,对吧?

我自己从未尝试过,所以我不知道它如何满足您的需求。

You are aware of pyROOT, right?

Never tried it myself, so I don't know how it might stack up against your needs.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文