38b2.set_log_level(b2.LogLevel.INFO)
40b2.set_random_seed(1028307)
43eventinfosetter = b2.register_module(
'EventInfoSetter')
46eventinfosetter.param(
'expList', [0])
47eventinfosetter.param(
'runList', [1])
48eventinfosetter.param(
'evtNumList', [1])
49eventinfoprinter = b2.register_module(
'EventInfoPrinter')
52gearbox = b2.register_module(
'Gearbox')
53geometry = b2.register_module(
'Geometry')
56geometry.param(
'components', [
'MagneticFieldConstant4LimitedRCDC',
'CDC'])
59pGun = b2.register_module(
'ParticleGun')
66 'momentumGeneration':
'uniform',
67 'momentumParams': [1.0, 1.0],
68 'thetaGeneration':
'uniform',
70 'thetaParams': [90., 90.],
71 'phiGeneration':
'uniform',
72 'phiParams': [0., 360.],
73 'xVertexParams': [0.0, 0.0],
74 'yVertexParams': [0.0, 0.0],
75 'zVertexParams': [0.0, 0.0],
80g4sim = b2.register_module(
'FullSim')
82g4sim.param(
'StoreAllSecondaries',
True)
84g4sim.param(
'UICommandsAtIdle', [
'/control/execute interactions.mac'])
86g4sim.param(
'ProductionCut', 1000000.)
89cdcDigitizer = b2.register_module(
'CDCDigitizer')
94mctrackfinder = b2.register_module(
'TrackFinderMCTruthRecoTracks')
97param_mctrackfinder = {
102 'WhichParticles': [
'primary'],
105mctrackfinder.param(param_mctrackfinder)
108setupgf = b2.register_module(
'SetupGenfitExtrapolation')
113cdcfitting = b2.register_module(
'DAFRecoFitter')
118buildtrack = b2.register_module(
"TrackCreator")
121output = b2.register_module(
'RootOutput')
122output.param(
'outputFileName',
'SimpleMCTrackingOutput.root')
125main = b2.create_path()
128main.add_module(eventinfosetter)
129main.add_module(eventinfoprinter)
130main.add_module(gearbox)
131main.add_module(geometry)
134main.add_module(g4sim)
135main.add_module(cdcDigitizer)
137main.add_module(mctrackfinder)
138main.add_module(setupgf)
139main.add_module(cdcfitting)
140main.add_module(buildtrack)
142main.add_module(output)