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
test_hlt_tools.py
1
8
9
'''
10
Test for checking if the main tools of the hlt package works.
11
'''
12
13
import
glob
14
import
subprocess
15
16
import
basf2
as
b2
17
import
b2test_utils
as
b2tu
18
19
if
__name__ ==
'__main__'
:
20
with
b2tu.clean_working_directory():
21
22
# Check if b2hlt_print_result.py works.
23
mdst_files = glob.glob(f
'{b2.find_file("mdst/tests")}/mdst-v*.root'
)
24
mdst_files.sort(reverse=
True
)
25
subprocess.check_call([
'b2hlt_print_result.py'
, mdst_files[0]])
26
27
# Check if b2hlt_triggers works.
28
# 1: b2hlt_triggers print
29
subprocess.check_call([
'b2hlt_triggers'
,
'print'
,
'--database'
,
'online'
])
30
# 2: b2hlt_triggers download
31
subprocess.check_call([
'b2hlt_triggers'
,
'download'
,
'--database'
,
'online'
])
32
# 3: b2hlt_triggers add_cut
33
subprocess.check_call([
'b2hlt_triggers'
,
'add_cut'
,
'filter'
,
'accept_goats'
,
'[nTrkLoose > 0]'
,
'10'
,
'False'
])
34
# 4: b2hlt_triggers remove_cut
35
subprocess.check_call([
'b2hlt_triggers'
,
'remove_cut'
,
'skim'
,
'accept_bhabha'
])
hlt
tests
test_hlt_tools.py
Generated on Wed Apr 9 2025 02:42:30 for Belle II Software by
1.9.6