17 from ROOT
import Belle2
18 from simulation
import *
19 from reconstruction
import *
24 """Returns 1 if current event contains at least one K_L^0, 0 otherwise"""
27 """reimplementation of Module::initialize()."""
32 """reimplementation of Module::event()."""
37 if abs(p.getPDG()) == 130:
38 B2INFO(
'found a K_L!')
44 displayData.obj().select(p)
49 eventinfosetter = main.add_module(
'EventInfoSetter')
50 eventinfosetter.param(
'evtNumList', [2000])
52 eventinfoprinter = main.add_module(
'EventInfoPrinter')
54 evtgeninput = main.add_module(
'EvtGenInput')
56 components = [
'CDC',
'KLM',
'MagneticField']
57 add_simulation(main, components)
62 main.add_module(kltrigger)
66 emptypath = create_path()
67 kltrigger.if_false(emptypath)
70 add_reconstruction(main, components)
73 display = main.add_module(
'Display')