Skip to content

Commit

Permalink
makeplots: enable use_subranges
Browse files Browse the repository at this point in the history
  • Loading branch information
goi42 committed Nov 12, 2019
1 parent a508719 commit 28d84d2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion python/makeplots/makeplots_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@
for ibranch in ifile.b:
# ibranch.add_column(ifile)
for icut in ibranch.c:
icut.make_histogram(ifile, ibranch, return_histogram=False)
icut.make_histogram(ifile, ibranch, return_histogram=False, use_subranges=use_subranges)
i += 1
hbar.update(i)
hbar.finish()
Expand Down
3 changes: 3 additions & 0 deletions python/makeplots/makeplots_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,8 @@
help='use BuildLegend instead of the default creation (overrides all other settings)')
parser.add_argument('--nofileprogress', action='store_true',
help='do not display progress in event loops of files/chains')
parser.add_argument('--use_subranges', action='store_true',
help='use branch subranges to set binning')

# class modimport(argparse.Action):
# def __init__(self,option_strings,dest,nargs=None,**kwargs):
Expand Down Expand Up @@ -119,3 +121,4 @@
lhcbStyle = args.lhcbStyle
buildlegend = args.buildlegend
nofileprogress = args.nofileprogress
use_subranges = args.use_subranges

0 comments on commit 28d84d2

Please sign in to comment.