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 svdROIFinder = b2.register_module(
'SVDROIFinder')
32 svdROIFinder.logging.log_level = b2.LogLevel.DEBUG
34 param_svdROIFinder = {
35 'recoTrackListName':
'RecoTracks',
36 'SVDInterceptListName':
'SVDIntercepts',
37 'ROIListName':
'ROIs',
55 svdROIFinder.param(param_svdROIFinder)
57 svdROIFinderAnalysis = b2.register_module(
'SVDROIFinderAnalysis')
58 svdROIFinderAnalysis.logging.log_level = b2.LogLevel.RESULT
59 svdROIFinderAnalysis.logging.debug_level = 1
60 param_svdROIFinderAnalysis = {
61 'recoTrackListName':
'RecoTracks',
62 'SVDInterceptListName':
'SVDIntercepts',
63 'ROIListName':
'ROIs',
65 'rootFileName':
'svdDataRedAnalysis_SVDCDC_MCTF_test',
67 svdROIFinderAnalysis.param(param_svdROIFinderAnalysis)
70 main = b2.create_path()
73 main.add_module(eventinfosetter)
74 main.add_module(eventinfoprinter)
75 main.add_module(evtgeninput)
76 add_simulation(main, components=[
'MagneticField',
'SVD',
'CDC'], usePXDDataReduction=
False)
77 add_tracking_reconstruction(main, [
'CDC'], mcTrackFinding=
True)
78 main.add_module(svdROIFinder)