Belle II Software
light-2403-persian
Main Page
Modules
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
z
Functions
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
Variables
Typedefs
a
b
c
d
l
m
n
p
r
s
w
Enumerations
Enumerator
Classes
Class List
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
_
c
d
e
f
h
i
m
o
p
r
s
t
v
w
Enumerations
b
c
e
g
h
m
p
s
t
v
Enumerator
b
c
k
t
Related Functions
Files
File List
File Members
All
Functions
check_globaltag_trim.py
1
8
9
'''
10
When the database is initialized, the globaltag names are trimmed in order to remove
11
leading and trailing whitespaces, which would make basf2 crashing.
12
13
This test checks if the trim is correctly applied.
14
'''
15
16
import
basf2
as
b2
17
18
19
tag = b2.conditions.default_globaltags[0]
20
tags = [f
' {tag}'
, f
'{tag} '
, f
' {tag} '
]
21
b2.conditions.override_globaltags(tags)
22
23
main = b2.Path()
24
main.add_module(
'EventInfoSetter'
)
25
main.add_module(
'PrintBeamParameters'
)
# this module "touches" the database
26
b2.process(main)
# if the process does not crash, we are happy
framework
tests
check_globaltag_trim.py
Generated on Fri Apr 12 2024 06:51:19 for Belle II Software by
1.9.1