Belle II Software development
test_phase3_expressreco_passthrough.py
1
8
9import os
10import pathlib
11import sys
12from basf2 import find_file
13from softwaretrigger import constants
14from softwaretrigger.test_support import get_file_name, generate_input_file
15
16
17if __name__ == "__main__":
18
19 prepare_path = os.getenv("BELLE2_PREPARE_PATH", "")
20 if prepare_path == "":
21 parent_path = pathlib.Path(find_file('framework')).parent.absolute()
22 prepare_path = os.path.join(parent_path, "prepare_tests")
23 try:
24 os.mkdir(prepare_path)
25 except FileExistsError:
26 pass
27
28 run_type = constants.RunTypes.beam
29 location = constants.Location.expressreco
30 passthrough = True
31 simulate_events_of_doom_buster = False
32 output_file_name = get_file_name(
33 prepare_path, run_type, location, passthrough, simulate_events_of_doom_buster
34 )
35 sys.exit(generate_input_file(
36 output_file_name=output_file_name,
37 run_type=run_type,
38 location=location,
39 exp_number=1003,
40 passthrough=passthrough,
41 simulate_events_of_doom_buster=simulate_events_of_doom_buster)
42 )