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