13 from beamparameters
import add_beamparameters
16 basf2.set_log_level(basf2.LogLevel.ERROR)
20 main = basf2.create_path()
23 beamparameters = add_beamparameters(main,
"SuperKEKB")
26 hepevtreader = basf2.register_module(
'HepevtInput')
31 hepevtreader.param(
'inputFileList', [
'BhWide_10events.txt'])
51 hepevtreader.param(
'nVirtualParticles', 2)
62 hepevtreader.param(
'boost2Lab',
True)
69 hepevtreader.param(
'wrongSignPz',
True)
74 eventinfosetter = basf2.register_module(
'EventInfoSetter')
75 progress = basf2.register_module(
'Progress')
76 simpleoutput = basf2.register_module(
'RootOutput')
79 eventinfosetter.param(
'evtNumList', [100])
80 eventinfosetter.param(
'runList', [1])
81 eventinfosetter.param(
'expList', [0])
83 simpleoutput.param(
'outputFileName',
'HepEvtReaderOutput.root')
86 main.add_module(eventinfosetter)
87 main.add_module(progress)
90 main.add_module(hepevtreader)
92 basf2.print_params(hepevtreader)
95 main.add_module(simpleoutput)