47 parser = OptionParser()
48 parser.add_option(
"-p",
"--pattern", dest=
"pattern", type =
"string", default =
None,
49 help=
"Pattern to match histogram to")
50 parser.add_option(
"-x",
"--exclude", dest=
"exclude", type =
"string", default =
None,
51 help=
"Pattern to exclude histogram from matching")
52 parser.add_option(
"-n",
"--noSkip", dest=
"noSkip", action =
"store_true",
53 help=
"Match all histograms (not just trigger timers)")
54 (options, args) = parser.parse_args()
58 myFile = ROOT.TFile(arg)
61 pattern = options.pattern
62 get_matches(pattern, options.exclude, options.noSkip, myFile)