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