12 from tracking
import add_tracking_reconstruction
13 from simulation
import add_simulation
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
31 pxdROIFinder = b2.register_module(
'PXDROIFinder')
32 pxdROIFinder.logging.log_level = b2.LogLevel.DEBUG
34 param_pxdROIFinder = {
35 'recoTrackListName':
'RecoTracks',
36 'PXDInterceptListName':
'PXDIntercepts',
37 'ROIListName':
'ROIs',
39 pxdROIFinder.param(param_pxdROIFinder)
42 PXDDIGI = b2.register_module(
'PXDDigitizer')
44 pxdDigitFilter = b2.register_module(
'PXDdigiFilter')
45 pxdDigitFilter.param({
'ROIidsName':
'ROIs',
'CreateOutside':
True,
'overrideDB':
True,
'usePXDDataReduction':
True})
48 main = b2.create_path()
51 main.add_module(eventinfosetter)
52 main.add_module(eventinfoprinter)
53 main.add_module(evtgeninput)
54 add_simulation(main, components=[
'PXD',
'SVD',
'CDC'], forceSetPXDDataReduction=
True, usePXDDataReduction=
False)
55 add_tracking_reconstruction(main, [
'SVD',
'CDC'])
56 main.add_module(pxdROIFinder)
57 main.add_module(PXDDIGI)
58 main.add_module(pxdDigitFilter)
62 main.add_module(
'RootOutput')