ATLAS Offline Software
Loading...
Searching...
No Matches
plot_tot_times Namespace Reference

Functions

 get_tot (fn)
 get_nbkgd (fn)
 plot_by_fn_type (fn_list, marker, label)

Variables

 stub = sys.argv[1]
 outname = sys.argv[2]
 fns = glob.glob(stub)
 fn_types = defaultdict(list)
 key = fn.split('_')
 markers = itertools.cycle(('ro','bo'))
 label

Function Documentation

◆ get_nbkgd()

plot_tot_times.get_nbkgd ( fn)

Definition at line 31 of file plot_tot_times.py.

31def get_nbkgd(fn):
32 print(fn)
33 x = fn.split('.')[0] # remove .log
34 toks = x.split('_')
35 x = [t for t in toks if t.startswith('b')][0]
36 x = x[1:] # remove 'b'
37 print(x)
38 return float(x)
39
void print(char *figname, TCanvas *c1)

◆ get_tot()

plot_tot_times.get_tot ( fn)

Definition at line 24 of file plot_tot_times.py.

24def get_tot(fn):
25 print('processing ', fn)
26 t = times(fn)
27 # return sum(t)/float(len(t))
28 return sum(t)
29
30

◆ plot_by_fn_type()

plot_tot_times.plot_by_fn_type ( fn_list,
marker,
label )

Definition at line 40 of file plot_tot_times.py.

40def plot_by_fn_type(fn_list, marker, label):
41 print('plotting', fn_list)
42
43 tot_times = [get_tot(fn) for fn in fn_list]
44 n_bkgd = [get_nbkgd(fn) for fn in fn_list]
45 # pl.plot(n_bkgd, tot_times, marker = marker, label=label)
46 pl.plot(n_bkgd, tot_times, marker, label=label)
47

Variable Documentation

◆ fn_types

plot_tot_times.fn_types = defaultdict(list)

Definition at line 48 of file plot_tot_times.py.

◆ fns

plot_tot_times.fns = glob.glob(stub)

Definition at line 18 of file plot_tot_times.py.

◆ key

str plot_tot_times.key = fn.split('_')

Definition at line 51 of file plot_tot_times.py.

◆ label

plot_tot_times.label

Definition at line 67 of file plot_tot_times.py.

◆ markers

plot_tot_times.markers = itertools.cycle(('ro','bo'))

Definition at line 56 of file plot_tot_times.py.

◆ outname

plot_tot_times.outname = sys.argv[2]

Definition at line 15 of file plot_tot_times.py.

◆ stub

plot_tot_times.stub = sys.argv[1]

Definition at line 14 of file plot_tot_times.py.