Loading [MathJax]/extensions/tex2jax.js
ATLAS Offline Software
Main Page
Related Pages
Modules
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
z
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
:
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Properties
Related Functions
:
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
v
w
x
z
Files
File List
File Members
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Variables
$
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Enumerations
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
v
x
z
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Macros
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
GitLab
LXR
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
Generators
PMGSystematicsTools
local
bin
makeTOC.py
Go to the documentation of this file.
1
# Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
2
3
import
os,sys
4
5
inFile=
"README.md"
6
if
len(sys.argv) >1:
7
inFile=sys.argv[1]
8
9
f =
open
(inFile)
10
11
regularLines=[]
12
tocLines=[]
13
14
afterBreak=
False
15
afterTOC=
False
16
inCodeBlock=
False
17
18
for
line
in
f.readlines():
19
if
'```'
in
line: inCodeBlock=
not
inCodeBlock
20
if
'<br/>'
in
line:
21
afterBreak=
True
22
if
'Table of Contents:'
in
line:
23
regularLines+=[line]
24
afterTOC=
True
25
if
not
(afterTOC
and
not
afterBreak): regularLines+=[line]
26
27
if
'#'
==line[0]
and
afterBreak
and
not
inCodeBlock:
28
header=line.split(
'#'
)[-1].strip()
29
tag=
'#'
+header.lower().
replace
(
" "
,
"-"
).
replace
(
","
,
""
).
replace
(
"?"
,
""
).
replace
(
"("
,
""
).
replace
(
")"
,
""
).
replace
(
"/"
,
""
)
30
nIndents=line.count(
'#'
)
31
tocLine=
""
32
for
i
in
range
(nIndents-1):
33
tocLine+=
"\t"
34
tocLine+=
"- [%s](%s)\n"
%(header,tag)
35
tocLines+=[tocLine]
36
37
fOut = open (inFile+
".tmp"
,
'w'
)
38
39
for
rl
in
regularLines:
40
fOut.write(rl)
41
if
(
'Table of Contents:'
)
in
rl:
42
for
tl
in
tocLines:
43
fOut.write(tl)
44
45
os.system(
'mv %s %s'
%(inFile+
".tmp"
,inFile))
replace
std::string replace(std::string s, const std::string &s2, const std::string &s3)
Definition:
hcg.cxx:307
plotBeamSpotVxVal.range
range
Definition:
plotBeamSpotVxVal.py:195
Trk::open
@ open
Definition:
BinningType.h:40
Generated on Mon Apr 14 2025 21:14:30 for ATLAS Offline Software by
1.8.18