11import multiprocessing
as mp
13from ROOT
import Belle2
15import simulation
as sim
16import reconstruction
as rec
20path_to_output =
'rawdata/tests/digits.root'
21b2.set_random_seed(
"L1V0RN0")
22b2.set_log_level(b2.LogLevel.WARNING)
25b2.conditions.disable_globaltag_replay()
29 """Create the file 'digits.root' needed for testing the packers if it does not exist"""
30 child_path = b2.create_path()
31 child_path.add_module(
'EventInfoSetter',
33 child_path.add_module(
'EvtGenInput')
34 sim.add_simulation(path=child_path)
35 child_path.add_module(
37 outputFileName=
'${BELLE2_LOCAL_DIR}/' +
39 branchNames=list(rec.DIGITS_OBJECTS))
40 child_path.add_module(
'Progress')
41 b2.process(child_path)
47 child = mp.Process(target=create_digits)
52 if child.exitcode != 0:
53 sys.exit(child.exitcode)
56main_path = b2.create_path()
57main_path.add_module(
'RootInput',
59raw.add_packers(path=main_path)
60main_path.add_module(
'Progress')
static std::string findFile(const std::string &path, bool silent=false)
Search for given file or directory in local or central release directory, and return absolute path if...