12from beamparameters
import add_beamparameters
15basf2.set_log_level(basf2.LogLevel.ERROR)
19main = basf2.create_path()
22beamparameters = add_beamparameters(main,
"SuperKEKB")
25hepevtreader = basf2.register_module(
'HepevtInput')
30hepevtreader.param(
'inputFileList', [
'BhWide_10events.txt'])
50hepevtreader.param(
'nVirtualParticles', 2)
61hepevtreader.param(
'boost2Lab',
True)
68hepevtreader.param(
'wrongSignPz',
True)
73eventinfosetter = basf2.register_module(
'EventInfoSetter')
74progress = basf2.register_module(
'Progress')
75simpleoutput = basf2.register_module(
'RootOutput')
78eventinfosetter.param(
'evtNumList', [100])
79eventinfosetter.param(
'runList', [1])
80eventinfosetter.param(
'expList', [0])
82simpleoutput.param(
'outputFileName',
'HepEvtReaderOutput.root')
85main.add_module(eventinfosetter)
86main.add_module(progress)
89main.add_module(hepevtreader)
91basf2.print_params(hepevtreader)
94main.add_module(simpleoutput)