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
MCJobOptionUtils
python
JOsupport.py
Go to the documentation of this file.
1
# Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
2
3
# Pythonised helper functions for usage in top-level JobOptions
4
# written by Zach Marshall <zach.marshall@cern.ch>
5
# updates by Christian Gutschow <chris.g@cern.ch>
6
7
import
os
8
from
AthenaCommon
import
Logging
9
mglog = Logging.logging.getLogger(
'MCJobOptionUtils'
)
10
11
12
def
get_physics_short
():
13
FIRST_DIR = (os.environ[
'JOBOPTSEARCHPATH'
]).
split
(
":"
)[0]
14
jofiles = [f
for
f
in
os.listdir(FIRST_DIR)
if
(f.startswith(
'mc'
)
and
f.endswith(
'.py'
))]
15
if
len(jofiles)==0:
16
raise
RuntimeError(
'No job options found in '
+FIRST_DIR)
17
joparts = os.path.basename(jofiles[0]).
split
(
'.'
)
18
if
len(joparts)<2:
19
raise
RuntimeError(
'Malformed job options file name: '
+jofiles[0])
20
return
joparts[1]
21
22
23
def
check_reset_proc_number
(opts):
24
if
'ATHENA_CORE_NUMBER'
in
os.environ
and
int
(os.environ[
'ATHENA_CORE_NUMBER'
])>0:
25
mglog.info(
'Noticed that you have run with an athena MT-like whole-node setup. Will re-configure now to make sure that the remainder of the job runs serially.'
)
26
# Try to modify the opts underfoot
27
if
not
hasattr(opts,
'nprocs'
):
28
mglog.warning(
'Did not see option!'
)
29
else
:
30
opts.nprocs = 0
31
mglog.debug(
str
(opts))
32
33
34
def
ls_dir
(directory):
35
mglog.info(
'For your information, ls of '
+directory+
':'
)
36
mglog.info(
sorted
( os.listdir( directory ) ) )
37
38
DerivationFramework::TriggerMatchingUtils::sorted
std::vector< typename R::value_type > sorted(const R &r, PROJ proj={})
Helper function to create a sorted vector from an unsorted range.
python.JOsupport.check_reset_proc_number
def check_reset_proc_number(opts)
Definition:
JOsupport.py:23
python.CaloAddPedShiftConfig.int
int
Definition:
CaloAddPedShiftConfig.py:45
python.JOsupport.get_physics_short
def get_physics_short()
Definition:
JOsupport.py:12
str
Definition:
BTagTrackIpAccessor.cxx:11
python.JOsupport.ls_dir
def ls_dir(directory)
Definition:
JOsupport.py:34
Trk::split
@ split
Definition:
LayerMaterialProperties.h:38
Generated on Mon May 5 2025 21:12:29 for ATLAS Offline Software by
1.8.18