ATLAS Offline Software
Functions | Variables
plot_tot_times Namespace Reference

Functions

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

Variables

 stub
 
 outname
 
 fns
 
 fn_types
 
 key
 
 markers
 
 label
 

Function Documentation

◆ get_nbkgd()

def plot_tot_times.get_nbkgd (   fn)

Definition at line 32 of file plot_tot_times.py.

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

◆ get_tot()

def plot_tot_times.get_tot (   fn)

Definition at line 25 of file plot_tot_times.py.

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

◆ plot_by_fn_type()

def plot_tot_times.plot_by_fn_type (   fn_list,
  marker,
  label 
)

Definition at line 41 of file plot_tot_times.py.

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

Variable Documentation

◆ fn_types

plot_tot_times.fn_types

Definition at line 49 of file plot_tot_times.py.

◆ fns

plot_tot_times.fns

Definition at line 19 of file plot_tot_times.py.

◆ key

plot_tot_times.key

Definition at line 52 of file plot_tot_times.py.

◆ label

plot_tot_times.label

Definition at line 68 of file plot_tot_times.py.

◆ markers

plot_tot_times.markers

Definition at line 57 of file plot_tot_times.py.

◆ outname

plot_tot_times.outname

Definition at line 16 of file plot_tot_times.py.

◆ stub

plot_tot_times.stub

Definition at line 15 of file plot_tot_times.py.

plot_tot_times.get_tot
def get_tot(fn)
Definition: plot_tot_times.py:25
plot_tot_times.plot_by_fn_type
def plot_by_fn_type(fn_list, marker, label)
Definition: plot_tot_times.py:41
plot_tot_times.get_nbkgd
def get_nbkgd(fn)
Definition: plot_tot_times.py:32
convertTimingResiduals.sum
sum
Definition: convertTimingResiduals.py:55
Muon::print
std::string print(const MuPatSegment &)
Definition: MuonTrackSteering.cxx:28
readCCLHist.float
float
Definition: readCCLHist.py:83
plot_times.times
def times(fn)
Definition: plot_times.py:11