forked from sagittaeri/htt
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsig
More file actions
executable file
·24 lines (19 loc) · 767 Bytes
/
sig
File metadata and controls
executable file
·24 lines (19 loc) · 767 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/usr/bin/env python
from rootpy.extern.argparse import ArgumentParser
parser = ArgumentParser()
parser.add_argument('--verbose', action='store_true', default=False)
parser.add_argument('--unblind', action='store_false', dest='blind', default=True)
parser.add_argument('--mu_profile_value', type=float, default=1)
parser.add_argument('file')
parser.add_argument('workspace')
args = parser.parse_args()
from statstools import get_significance_workspace
from rootpy.io import root_open
with root_open(args.file) as f:
if args.workspace not in f:
f.ls()
else:
h = get_significance_workspace(
f[args.workspace], blind=args.blind,
mu_profile_value=args.mu_profile_value, verbose=True)
print list(h.y())