ATLAS Offline Software
Trigger
TrigHypothesis
TrigHLTJetHypoUnitTests
python
plot_times.py
Go to the documentation of this file.
1
# Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
2
import
pylab
as
pl
3
import
sys
4
import
os
5
6
7
8
9
10
def
times
(fn):
11
result = []
12
with
open
(fn)
as
iff:
13
for
l
in
iff:
14
if
'tav'
in
l
and
'node: 0 parent: 0'
in
l:
15
result.append(
float
(l[:-1].
split
()[-1]))
16
17
return
result
18
19
20
if
__name__ ==
'__main__'
:
21
22
if
len(sys.argv) < 2:
23
print
(
'Please supply an input file name on the command line'
)
24
sys.exit(0)
25
26
27
fn = sys.argv[1]
28
if
not
os.path.exists(fn):
29
print
(
'unknown file. giving up: '
, fn)
30
sys.exit(0)
31
x =
times
(fn)
32
# print x
33
pl.hist(x)
34
pl.suptitle(
'Execution times for %s'
% fn)
35
pl.xlabel(
'time (ns)'
)
36
pl.ylabel(
'no of calls'
)
37
pl.savefig(
'%s_times.pdf'
% fn[:-4])
38
pl.show()
print
void print(char *figname, TCanvas *c1)
Definition:
TRTCalib_StrawStatusPlots.cxx:26
Trk::open
@ open
Definition:
BinningType.h:40
Trk::split
@ split
Definition:
LayerMaterialProperties.h:38
plot_times.times
def times(fn)
Definition:
plot_times.py:10
python.LArMinBiasAlgConfig.float
float
Definition:
LArMinBiasAlgConfig.py:65
Generated on Mon Sep 29 2025 21:16:56 for ATLAS Offline Software by
1.8.18