12from simulation
import add_simulation
13from reconstruction
import add_reconstruction
21eventinfosetter = b2.register_module(
'EventInfoSetter')
22eventinfosetter.param(
'expList', [0])
23eventinfosetter.param(
'runList', [1])
24eventinfosetter.param(
'evtNumList', [numEvents])
26eventinfoprinter = b2.register_module(
'EventInfoPrinter')
28evtgeninput = b2.register_module(
'EvtGenInput')
29evtgeninput.logging.log_level = b2.LogLevel.INFO
32main = b2.create_path()
35main.add_module(eventinfosetter)
36main.add_module(eventinfoprinter)
37main.add_module(evtgeninput)
38add_simulation(main, components=[
'MagneticField',
'PXD'], usePXDDataReduction=
False)
39add_reconstruction(main, components=[
'MagneticField',
'PXD'])
42main.add_module(
'RootOutput')