Belle II Software light-2406-ragdoll
dry-run.py
1
8import basf2
9from ROOT import Belle2
10Belle2.Environment.Instance().setDryRun(True)
11
12basf2.set_random_seed("something boring")
13path = basf2.create_path()
14
15
16def add_inout(path, basename):
17 path.add_module("RootInput", inputFileName="in-" + basename + ".root")
18 path.add_module("RootOutput", outputFileName="out-" + basename + ".root")
19
20
21path.add_module("RootInput", inputFileNames=[f"in-{d}.root" for d in range(10)])
22add_inout(path, "normal")
23
24path1 = basf2.create_path()
25add_inout(path1, "sub_path")
26path.add_path(path1)
27
28
29path2 = basf2.create_path()
30add_inout(path2, "conditional")
31m = path.add_module("EventInfoSetter")
32m.if_true(path2)
33
34path3 = basf2.create_path()
35add_inout(path3, "for_each")
36path.for_each("MCParticles", "MCParticle", path3)
37
38basf2.process(path)
static Environment & Instance()
Static method to get a reference to the Environment instance.
Definition: Environment.cc:28