Belle II Software
development
Toggle main menu visibility
Main Page
Modules
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
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
w
x
z
Variables
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
v
w
x
z
Typedefs
a
b
c
d
e
g
i
k
l
m
n
p
r
s
t
u
v
w
Enumerations
Enumerator
c
d
f
p
t
v
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
_
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
Enumerations
a
b
c
d
e
f
g
h
i
l
m
o
p
r
s
t
u
v
Enumerator
a
b
c
d
e
f
g
h
k
l
m
n
o
p
r
s
t
u
v
w
z
Related Functions
b
c
d
g
i
o
r
s
t
Files
File List
File Members
All
Functions
Typedefs
Macros
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 Thu Apr 10 2025 02:36:13 for Belle II Software by
1.9.6