24 from tracking
import add_tracking_reconstruction
30 eventinfosetter = b2.register_module(
'EventInfoSetter')
36 eventinfosetter.param(
'expList', [0])
37 eventinfosetter.param(
'runList', [1])
38 eventinfosetter.param(
'evtNumList', [50])
39 eventinfoprinter = b2.register_module(
'EventInfoPrinter')
42 gearbox = b2.register_module(
'Gearbox')
43 geometry = b2.register_module(
'Geometry')
44 geometry.param(
'excludedComponents', [
'EKLM'])
47 evtgeninput = b2.register_module(
'EvtGenInput')
54 g4sim = b2.register_module(
'FullSim')
56 g4sim.logging.log_level = b2.LogLevel.ERROR
64 cdcdedx = b2.register_module(
'CDCDedxPID')
66 'useIndividualHits':
True,
68 'removeHighest': 0.25,
69 'onlyPrimaryParticles':
False,
70 'enableDebugOutput':
True,
71 'ignoreMissingParticles':
False,
73 cdcdedx.param(cdcdedx_params)
76 svddedx = b2.register_module(
'VXDDedxPID')
78 'useIndividualHits':
True,
80 'removeHighest': 0.25,
81 'onlyPrimaryParticles':
False,
84 'trackDistanceThreshold': 4.0,
85 'ignoreMissingParticles':
False,
87 svddedx.param(svddedx_params)
90 output = b2.register_module(
'RootOutput')
91 output.param(
'outputFileName',
'dedxPID_evtgen.root')
95 main = b2.create_path()
99 main.add_module(eventinfosetter)
100 main.add_module(eventinfoprinter)
101 main.add_module(gearbox)
102 main.add_module(geometry)
104 main.add_module(evtgeninput)
105 main.add_module(g4sim)
108 main.add_module(b2.register_module(
'PXDDigitizer'))
109 main.add_module(b2.register_module(
'PXDClusterizer'))
110 main.add_module(b2.register_module(
'SVDDigitizer'))
111 main.add_module(b2.register_module(
'SVDClusterizer'))
112 main.add_module(b2.register_module(
'CDCDigitizer'))
115 add_tracking_reconstruction(main)
117 main.add_module(cdcdedx)
118 main.add_module(svddedx)
120 main.add_module(output)