23from tracking
import add_tracking_reconstruction
29eventinfosetter = b2.register_module(
'EventInfoSetter')
35eventinfosetter.param(
'expList', [0])
36eventinfosetter.param(
'runList', [1])
37eventinfosetter.param(
'evtNumList', [50])
38eventinfoprinter = b2.register_module(
'EventInfoPrinter')
41gearbox = b2.register_module(
'Gearbox')
42geometry = b2.register_module(
'Geometry')
43geometry.param(
'excludedComponents', [
'EKLM'])
46evtgeninput = b2.register_module(
'EvtGenInput')
53g4sim = b2.register_module(
'FullSim')
55g4sim.logging.log_level = b2.LogLevel.ERROR
63cdcdedx = b2.register_module(
'CDCDedxPID')
65 'useIndividualHits':
True,
67 'removeHighest': 0.25,
68 'onlyPrimaryParticles':
False,
69 'enableDebugOutput':
True,
70 'ignoreMissingParticles':
False,
72cdcdedx.param(cdcdedx_params)
75svddedx = b2.register_module(
'VXDDedxPID')
77 'useIndividualHits':
True,
79 'removeHighest': 0.25,
80 'onlyPrimaryParticles':
False,
83 'trackDistanceThreshold': 4.0,
84 'ignoreMissingParticles':
False,
86svddedx.param(svddedx_params)
89output = b2.register_module(
'RootOutput')
90output.param(
'outputFileName',
'dedxPID_evtgen.root')
94main = b2.create_path()
98main.add_module(eventinfosetter)
99main.add_module(eventinfoprinter)
100main.add_module(gearbox)
101main.add_module(geometry)
103main.add_module(evtgeninput)
104main.add_module(g4sim)
107 main.add_module(b2.register_module(
'PXDDigitizer'))
108 main.add_module(b2.register_module(
'PXDClusterizer'))
109main.add_module(b2.register_module(
'SVDDigitizer'))
110main.add_module(b2.register_module(
'SVDClusterizer'))
111main.add_module(b2.register_module(
'CDCDigitizer'))
114add_tracking_reconstruction(main)
116main.add_module(cdcdedx)
117main.add_module(svddedx)
119main.add_module(output)