14from ROOT
import TCanvas, TFile, TPaveText
15from ROOT
import gROOT, gBenchmark
17c1 =
TCanvas(
'c1',
'The Fit Canvas', 200, 10, 700, 500 )
21c1.GetFrame().SetBorderMode(-1 )
24gBenchmark.Start(
'fit1' )
28File =
"fillrandom-py.root"
29if (ROOT.gSystem.AccessPathName(File)) :
30 ROOT.Info(
"fit1.py", File+
" does not exist")
44sqroot = gROOT.FindObject(
'sqroot' )
50h1f = gROOT.FindObject(
'h1f' )
57fitlabel =
TPaveText( 0.6, 0.3, 0.9, 0.80,
'NDC' )
58fitlabel.SetTextAlign( 12 )
59fitlabel.SetFillColor( 42 )
60fitlabel.ReadFile(path.join(str(gROOT.GetTutorialDir()),
'math',
'fit',
'fit1_py.py'))
63gBenchmark.Show(
'fit1' )
A file, usually with extension .root, that stores data and code in the form of serialized objects in ...