12 import multiprocessing
as mp
14 from ROOT
import Belle2
16 import simulation
as sim
17 import reconstruction
as rec
21 path_to_output =
'rawdata/tests/digits.root'
22 b2.set_random_seed(
"L1V0RN0")
23 b2.set_log_level(b2.LogLevel.WARNING)
26 b2.conditions.disable_globaltag_replay()
30 """Create the file 'digits.root' needed for testing the packers if it does not exist"""
31 child_path = b2.create_path()
32 child_path.add_module(
'EventInfoSetter',
34 child_path.add_module(
'EvtGenInput')
35 sim.add_simulation(path=child_path)
36 child_path.add_module(
38 outputFileName=
'${BELLE2_LOCAL_DIR}/' +
40 branchNames=list(rec.DIGITS_OBJECTS))
41 child_path.add_module(
'Progress')
42 b2.process(child_path)
48 child = mp.Process(target=create_digits)
53 if child.exitcode != 0:
54 sys.exit(child.exitcode)
57 main_path = b2.create_path()
58 main_path.add_module(
'RootInput',
60 raw.add_packers(path=main_path)
61 main_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...