ATLAS Offline Software
Tracking
Acts
ActsConfig
scripts
ParseActsStatDump.py
Go to the documentation of this file.
1
#!/usr/bin/env python
2
# Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3
4
def
GetCustomAthArgs
():
5
from
argparse
import
ArgumentParser
6
parser = ArgumentParser(description=
'Parser for dumping ACTS statistics after reco'
)
7
parser.add_argument(
"--inputFile"
, help=
'Name of the input log file'
, required=
True
)
8
return
parser.parse_args()
9
10
def
main
(fileName: str):
11
assert
isinstance(fileName ,str)
12
13
import
re
14
with
open
(fileName,
'r'
)
as
inFile:
15
for
line
in
inFile:
16
# Check stat report statement
17
match = re.findall(
r'(Acts\S+\s+INFO.*statistics)'
, line)
18
if
match:
19
print
(match[0])
20
21
match = re.findall(
r'(Acts\S+\s+INFO.*Ratios)'
, line)
22
if
match:
23
print
(match[0])
24
25
# print table
26
match = re.findall(
r'\d{2}:\d{2}:\d{2}\s(\|[A-Za-z0-9. +/-]+\|[^a-df-z]+\|$)'
, line)
27
if
match:
28
print
(match[0])
29
30
if
__name__ ==
"__main__"
:
31
# Parse the arguments
32
MyArgs =
GetCustomAthArgs
()
33
main
(MyArgs.inputFile)
34
ParseActsStatDump.main
def main(str fileName)
Definition:
ParseActsStatDump.py:10
print
void print(char *figname, TCanvas *c1)
Definition:
TRTCalib_StrawStatusPlots.cxx:25
Trk::open
@ open
Definition:
BinningType.h:40
ParseActsStatDump.GetCustomAthArgs
def GetCustomAthArgs()
Definition:
ParseActsStatDump.py:4
Generated on Sun Dec 22 2024 21:16:01 for ATLAS Offline Software by
1.8.18