13 <output>KLMK0LOutput.root</output>
14 <contact>Leo Piilonen (piilonen@vt.edu)</contact>
15 <description>Generation of 2000 B -> J/psi K_L0 events for KLM validation.</description>
20 from simulation
import add_simulation
21 from reconstruction
import add_reconstruction
23 basf2.set_log_level(basf2.LogLevel.WARNING)
26 basf2.set_random_seed(123456)
29 main = basf2.create_path()
32 eventinfosetter = basf2.register_module(
'EventInfoSetter')
33 eventinfosetter.param(
'evtNumList', [2000])
36 evtgen = basf2.register_module(
'EvtGenInput')
37 evtgen.param(
'userDECFile', basf2.find_file(
'klm/validation/btojpsikl0.dec'))
40 progress = basf2.register_module(
'Progress')
41 progressBar = basf2.register_module(
'ProgressBar')
44 output = basf2.register_module(
'RootOutput')
45 output.param(
'outputFileName',
'../KLMK0LOutput.root')
48 main.add_module(eventinfosetter)
49 main.add_module(evtgen)
51 add_simulation(path=main)
52 add_reconstruction(path=main)
54 main.add_module(progress)
55 main.add_module(progressBar)
57 main.add_module(output)