23 from ROOT
import Belle2
24 from simulation
import add_simulation
25 from reconstruction
import add_reconstruction
30 """Returns 1 if current event contains at least one K_L^0, 0 otherwise"""
33 """reimplementation of Module::initialize()."""
38 """reimplementation of Module::event()."""
43 if abs(p.getPDG()) == 130:
44 b2.B2INFO(
'found a K_L!')
50 displayData.obj().select(p)
54 main = b2.create_path()
55 eventinfosetter = main.add_module(
'EventInfoSetter')
56 eventinfosetter.param(
'evtNumList', [2000])
58 eventinfoprinter = main.add_module(
'EventInfoPrinter')
60 evtgeninput = main.add_module(
'EvtGenInput')
62 components = [
'CDC',
'KLM']
63 add_simulation(main, components)
68 main.add_module(kltrigger)
72 emptypath = b2.create_path()
73 kltrigger.if_false(emptypath)
76 add_reconstruction(main, components)
79 display = main.add_module(
'Display')
A (simplified) python wrapper for StoreArray.
a (simplified) python wrapper for StoreObjPtr.