13 ROOT.SetSignalPolicy( ROOT.kSignalFast )
17 'framework.py',
'hsimple.py',
'hsum.py',
'formula1.py',
18 'fillrandom.py',
'fit1.py',
'h1draw.py',
'graph.py',
19 'gerrors.py',
'tornado.py',
'surfaces.py',
'zdemo.py',
20 'geometry.py',
'na49view.py',
'file.py',
21 'ntuple1.py',
'rootmarks.py' ]
24 def bexec( dir, macro, bench ):
25 if ROOT.gROOT.IsBatch():
26 print 'Processing benchmark: %s\n' % macro
28 summary = bench.GetPrimitive(
'TPave' )
29 tmacro = summary.GetLineWith( macro )
31 tmacro.SetTextColor( 4 )
35 execfile( os.path.join( macrodir, macro ), sys.modules[ __name__ ].__dict__ )
37 summary2 = bench.GetPrimitive(
'TPave' )
38 tmacro2 = summary2.GetLineWith( macro )
40 tmacro2.SetTextColor( 2 )
46 if __name__ ==
'__main__':
50 macrodir = os.path.dirname( os.path.join( os.getcwd(), __file__ ) )
55 bench = ROOT.TCanvas(
'bench',
'Benchmarks Summary', -1000, 50, 200, 500 )
56 summary = ROOT.TPaveText( 0, 0, 1, 1 )
57 summary.SetTextAlign( 12 )
58 summary.SetTextSize( 0.1 )
62 summary.AddText(
' ** %s' % m )
66 bexec( macrodir, m, bench )
void bexec(TString &dir, const char *macro)