9 from ROOT
import Belle2
12 basf2.set_random_seed(
"something boring")
13 path = basf2.create_path()
16 def add_inout(path, basename):
17 path.add_module(
"RootInput", inputFileName=
"in-" + basename +
".root")
18 path.add_module(
"RootOutput", outputFileName=
"out-" + basename +
".root")
21 path.add_module(
"RootInput", inputFileNames=[
"in-%d.root" % d
for d
in range(10)])
22 add_inout(path,
"normal")
24 path1 = basf2.create_path()
25 add_inout(path1,
"sub_path")
29 path2 = basf2.create_path()
30 add_inout(path2,
"conditional")
31 m = path.add_module(
"EventInfoSetter")
34 path3 = basf2.create_path()
35 add_inout(path3,
"for_each")
36 path.for_each(
"MCParticles",
"MCParticle", path3)
static Environment & Instance()
Static method to get a reference to the Environment instance.