2from plot_times
import times
6from collections
import defaultdict
10 print(
'Please supply an input file name stub to glob on the command line, and an output file name')
16if not outname.endswith(
'.pdf'): outname +=
'.pdf'
19print(
'glob found %d files: %s for stub %s' % (len(fns), str(fns), stub))
21 print(
'no files found for stub', stub)
25 print(
'processing ', fn)
35 x = [t
for t
in toks
if t.startswith(
'b')][0]
41 print(
'plotting', fn_list)
43 tot_times = [
get_tot(fn)
for fn
in fn_list]
44 n_bkgd = [
get_nbkgd(fn)
for fn
in fn_list]
46 pl.plot(n_bkgd, tot_times, marker, label=label)
48fn_types = defaultdict(list)
52 key = [k
for k
in key
if k.startswith(
'j')]
54 fn_types[key].append(fn)
56markers = itertools.cycle((
'ro',
'bo'))
59for k, v
in fn_types.items():
64for k, v
in fn_types.items():
70pl.suptitle(outname[:-4])
71pl.xlabel(
'n background')
72pl.ylabel(
'tot exec time 1000 events (ns)')
void print(char *figname, TCanvas *c1)
plot_by_fn_type(fn_list, marker, label)