39 b2.set_log_level(b2.LogLevel.INFO)
41 b2.set_random_seed(1028307)
44 eventinfosetter = b2.register_module(
'EventInfoSetter')
47 eventinfosetter.param(
'expList', [0])
48 eventinfosetter.param(
'runList', [1])
49 eventinfosetter.param(
'evtNumList', [1])
50 eventinfoprinter = b2.register_module(
'EventInfoPrinter')
53 gearbox = b2.register_module(
'Gearbox')
54 geometry = b2.register_module(
'Geometry')
57 geometry.param(
'components', [
'MagneticFieldConstant4LimitedRCDC',
'CDC'])
60 pGun = b2.register_module(
'ParticleGun')
67 'momentumGeneration':
'uniform',
68 'momentumParams': [1.0, 1.0],
69 'thetaGeneration':
'uniform',
71 'thetaParams': [90., 90.],
72 'phiGeneration':
'uniform',
73 'phiParams': [0., 360.],
74 'xVertexParams': [0.0, 0.0],
75 'yVertexParams': [0.0, 0.0],
76 'zVertexParams': [0.0, 0.0],
78 pGun.param(param_pGun)
81 g4sim = b2.register_module(
'FullSim')
83 g4sim.param(
'StoreAllSecondaries',
True)
85 g4sim.param(
'UICommandsAtIdle', [
'/control/execute interactions.mac'])
87 g4sim.param(
'ProductionCut', 1000000.)
90 cdcDigitizer = b2.register_module(
'CDCDigitizer')
95 mctrackfinder = b2.register_module(
'TrackFinderMCTruthRecoTracks')
98 param_mctrackfinder = {
103 'WhichParticles': [
'primary'],
106 mctrackfinder.param(param_mctrackfinder)
109 setupgf = b2.register_module(
'SetupGenfitExtrapolation')
114 cdcfitting = b2.register_module(
'DAFRecoFitter')
119 buildtrack = b2.register_module(
"TrackCreator")
122 output = b2.register_module(
'RootOutput')
123 output.param(
'outputFileName',
'SimpleMCTrackingOutput.root')
126 main = b2.create_path()
129 main.add_module(eventinfosetter)
130 main.add_module(eventinfoprinter)
131 main.add_module(gearbox)
132 main.add_module(geometry)
134 main.add_module(pGun)
135 main.add_module(g4sim)
136 main.add_module(cdcDigitizer)
138 main.add_module(mctrackfinder)
139 main.add_module(setupgf)
140 main.add_module(cdcfitting)
141 main.add_module(buildtrack)
143 main.add_module(output)