12from basf2
import find_file
13from softwaretrigger
import constants
17if __name__ ==
"__main__":
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")
24 os.mkdir(prepare_path)
25 except FileExistsError:
28 run_type = constants.RunTypes.cosmic
29 location = constants.Location.hlt
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
35 sys.exit(generate_input_file(
36 output_file_name=output_file_name,
40 passthrough=passthrough,
41 simulate_events_of_doom_buster=simulate_events_of_doom_buster)