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 PXDCLUST = b2.register_module(
'PXDClusterizer')
46 pxdClusterFilter = b2.register_module(
'PXDclusterFilter')
47 pxdClusterFilter.param({
'ROIidsName':
'ROIs',
'CreateOutside':
True,
'overrideDB':
True,
'enableFiltering':
True})
50 main = b2.create_path()
53 main.add_module(eventinfosetter)
54 main.add_module(eventinfoprinter)
55 main.add_module(evtgeninput)
56 add_simulation(main, components=[
'PXD',
'SVD',
'CDC'], forceSetPXDDataReduction=
True, usePXDDataReduction=
False)
57 add_tracking_reconstruction(main, [
'SVD',
'CDC'])
58 main.add_module(pxdROIFinder)
59 main.add_module(PXDDIGI)
60 main.add_module(PXDCLUST)
61 main.add_module(pxdClusterFilter)
65 main.add_module(
'RootOutput')