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

Functions

 get_av (fn)
 get_nbkgd (fn)

Variables

 stub = sys.argv[1]
 outname = sys.argv[2]
 fns = glob.glob(stub)
list av_times = [get_av(fn) for fn in fns]
list n_bkgd = [get_nbkgd(fn) for fn in fns]

Function Documentation

◆ get_av()

plot_av_times.get_av ( fn)

Definition at line 22 of file plot_av_times.py.

22def get_av(fn):
23 t = times(fn)
24 return sum(t)/float(len(t))
25

◆ get_nbkgd()

plot_av_times.get_nbkgd ( fn)

Definition at line 28 of file plot_av_times.py.

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

Variable Documentation

◆ av_times

list plot_av_times.av_times = [get_av(fn) for fn in fns]

Definition at line 26 of file plot_av_times.py.

◆ fns

plot_av_times.fns = glob.glob(stub)

Definition at line 16 of file plot_av_times.py.

◆ n_bkgd

list plot_av_times.n_bkgd = [get_nbkgd(fn) for fn in fns]

Definition at line 37 of file plot_av_times.py.

◆ outname

plot_av_times.outname = sys.argv[2]

Definition at line 13 of file plot_av_times.py.

◆ stub

plot_av_times.stub = sys.argv[1]

Definition at line 12 of file plot_av_times.py.