Skip to content

Commit

Permalink
Bring hgwatch in line with the new frontend interface.
Browse files Browse the repository at this point in the history
  • Loading branch information
jpivarski committed Sep 26, 2016
1 parent 90511a1 commit 2ea532a
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions scripts/hgwatch
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,15 @@ commandSets = {
# for --root
"root": """
import ROOT
roothist = None
# Must give hg.root the right number of "name" strings.
# Must give hg.plot.root the right number of "name" strings.
if isinstance(hg, Fraction):
roothist = hg.root(newName(), newName())
roothist = hg.plot.root(newName(), newName())
elif isinstance(hg, (Stack, IrregularlyBin)):
roothist = hg.root(*[newName() for i in xrange(hg.cuts)])
roothist = hg.plot.root(*[newName() for i in xrange(hg.cuts)])
else:
roothist = hg.root(newName())
roothist = hg.plot.root(newName())
if isinstance(roothist, ROOT.TH2):
roothist.Draw("colz") # Preferred visualization.
Expand Down

0 comments on commit 2ea532a

Please sign in to comment.