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