22from ROOT
import Belle2
23from simulation
import add_simulation
24from reconstruction
import add_reconstruction
29 """Returns 1 if current event contains at least one K_L^0, 0 otherwise"""
32 """reimplementation of Module::initialize()."""
37 """reimplementation of Module::event()."""
42 if abs(p.getPDG()) == 130:
43 b2.B2INFO(
'found a K_L!')
49 displayData.obj().select(p)
53main = b2.create_path()
54eventinfosetter = main.add_module(
'EventInfoSetter')
55eventinfosetter.param(
'evtNumList', [2000])
57eventinfoprinter = main.add_module(
'EventInfoPrinter')
59evtgeninput = main.add_module(
'EvtGenInput')
61components = [
'CDC',
'KLM']
62add_simulation(main, components)
67main.add_module(kltrigger)
71emptypath = b2.create_path()
72kltrigger.if_false(emptypath)
75add_reconstruction(main, components)
78display = main.add_module(
'Display')
A (simplified) python wrapper for StoreArray.
a (simplified) python wrapper for StoreObjPtr.