Belle II Software
development
test_beamspot_and_ip_variables.py
1
#!/usr/bin/env python3
2
3
10
11
import
basf2
as
b2
12
import
modularAnalysis
as
ma
13
import
b2test_utils
as
b2tu
14
15
16
def
check_file(input_file_name):
17
"""Run the check with a quick basf2 printout for the
18
first event in ``input_file_name`` on the validation server"""
19
input_file = b2tu.require_file(input_file_name, 'validation')
20
pa = b2.Path()
21
ma.inputMdst(input_file, path=pa)
22
ma.printVariableValues(
23
"", ["IPX", "IPY", "IPZ", "genIPX", "genIPY", "genIPZ"], path=pa)
24
b2tu.safe_process(pa, 1)
25
26
27
if __name__ == "__main__":
28
b2.set_random_seed(":-)")
29
b2tu.configure_logging_for_tests()
30
check_file("mdst16.root")
31
# TODO: update this to check a data event when a suitable file is added
analysis
tests
test_beamspot_and_ip_variables.py
Generated on Mon Sep 1 2025 02:46:07 for Belle II Software by
1.13.2