2 from __future__
import print_function
3 from plot_times
import times
7 from collections
import defaultdict
11 print(
'Please supply an input file name stub to glob on the command line, and an output file name')
17 if not outname.endswith(
'.pdf'): outname +=
'.pdf'
20 print(
'glob found %d files: %s for stub %s' % (len(fns),
str(fns), stub))
22 print(
'no files found for stub', stub)
26 print(
'processing ', fn)
36 x = [t
for t
in toks
if t.startswith(
'b')][0]
42 print(
'plotting', fn_list)
44 tot_times = [
get_tot(fn)
for fn
in fn_list]
45 n_bkgd = [
get_nbkgd(fn)
for fn
in fn_list]
47 pl.plot(n_bkgd, tot_times, marker, label=label)
49 fn_types = defaultdict(list)
53 key = [k
for k
in key
if k.startswith(
'j')]
57 markers = itertools.cycle((
'ro',
'bo'))
60 for k, v
in fn_types.items():
65 for k, v
in fn_types.items():
71 pl.suptitle(outname[:-4])
72 pl.xlabel(
'n background')
73 pl.ylabel(
'tot exec time 1000 events (ns)')