7 f = ROOT.TFile(args.input)
9 sigs = [f.Get(h.lstrip(
"-"))
for h
in args.histo_sig]
13 bkgs = [f.Get(h.lstrip(
"-"))
for h
in args.histo_bkg]
26 print args.format % (n_sig / n_bkg)
28 if __name__ ==
"__main__":
29 parser = argparse.ArgumentParser()
32 parser.add_argument(
"-hs",
"--histo_sig", required=
True, type=util.comma_separated)
33 parser.add_argument(
"-hb",
"--histo_bkg", required=
True, type=util.comma_separated)
34 parser.add_argument(
"-f",
"--format", default=
"%f")
35 main(parser.parse_args())