用pyroot脚本生成html报告的简单包
root-report的Python项目详细描述
根报告
简单的python包,用于从cern根脚本创建html报告。
示例
from root_report import Report
import ROOT
ROOT.SetBatch(1)
report = Report ( "name_of_the_report", "/some/browser-accessible/path/" )
report.outputTitle ( "Title of the Report" )
f1 = ROOT.TF1 ( "parab", "x**2", -1, 1)
f1.Draw()
report.outputCanvas ( "figureIdentifier" )
report << "Some <B>HTML</B> description here. " << report.br
report.close()