Belle II Software  release-08-01-10
test_phase3_expressreco_passthrough.py
1 
8 
9 import os
10 import pathlib
11 import sys
12 from basf2 import find_file
13 from softwaretrigger import constants
14 from softwaretrigger.test_support import get_file_name, generate_input_file
15 
16 
17 if __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  )