CERN黄色报告的接口
yellowhiggs的Python项目详细描述
YellowHiggs提供了一个与Higgs产生截面和分支比数据的接口 欧洲核子研究中心黄色报告:
- CERNYellowReportPageAt7TeV
- CERNYellowReportPageAt8TeV
- CERNYellowReportPageAt13TeV
- CERNYellowReportPageAt14TeV
- CERNYellowReportPageBR
自动安装
自动安装最新版本的YellowHiggs pip:
pip install --user yellowhiggs
或者使用easy_install:
easy_install --user yellowhiggs
对于系统范围的安装,省略--user(需要根权限)。
升级现有的安装使用^ {TT3}$ 上面的pip或easy_install命令中的选项。
手动安装
在PyPI上获取最新的tarball
松开并安装(适当更换X):
tar -zxvf yellowhiggs-X.tar.gz cd yellowhiggs-X
把YellowHiggs安装到你的主目录 如果至少使用Python2.6:
python setup.py install --user
或者使用较旧的python版本:
python setup.py install --prefix=~/.local
您可能需要首先创建安装目录 在执行上面的行之前(对于python 2.4):
mkdir -p ~/.local/lib/python2.4/site-packages/
用法
如何使用黄希格斯粒子的示例:
>>>importyellowhiggs>>>>>>yellowhiggs.xsbr(7,130,'vbf','bb')(0.5689219999999999,(0.584851816,0.555836794))>>>yellowhiggs.xsbr(7,130,'vbf','bb',error_type='percent')(0.5689219999999999,(2.8,2.3))>>>yellowhiggs.xsbr(7,130,'vbf','bb',error_type='factor')(0.5689219999999999,(1.028,0.977))>>>>>>yellowhiggs.xsbr(7,130,'vbf','tautau')(0.0632392,(0.0650098976,0.06178469839999999))>>>>>>yellowhiggs.xsbr(7,125,'ggf','gammagamma')(0.0350599,(0.0418965805,0.0297658551))>>>yellowhiggs.xsbr(7,125,'ggf','gammagamma',error='scale')(0.0350599,(0.0391619083,0.0323252278))>>>yellowhiggs.xsbr(7,125,'ggf','gammagamma',error='pdf')(0.0350599,(0.0377945722,0.0325005273))>>>yellowhiggs.xsbr(7,125,'ggf','gammagamma',error='full')(0.0350599,(0.0418965805,0.0297658551))>>>yellowhiggs.xsbr(7,125,'ggf','gammagamma',error='pdf',error_type='percent')(0.0350599,(7.8,7.3))>>>>>>yellowhiggs.xs(7,150,'vbf')(0.9617,(0.9895892999999999,0.9405426))>>>yellowhiggs.xs(7,150,'vbf',error_type='percent')(0.9617,(2.9,2.2))>>>>>>yellowhiggs.br(150,'tautau')0.0178>>>yellowhiggs.br(155,'tautau')0.0105
横截面以[pb]为单位返回。
- xs返回 质量能中心、希格斯质量和产生模式。
- br返回希格斯质量[gev]和衰变通道的分支比。
- xsbr返回质心的横截面乘以分支比 能量[tev]、希格斯质量[gev]、产生模式和衰变通道。