12b2.logging.log_level = b2.LogLevel.WARNING
15main = b2.create_path()
17main.add_module(
'EventInfoSetter', evtNumList=[1])
19main.add_module(
'Gearbox')
21main.add_module(
'Geometry', logLevel=b2.LogLevel.INFO)
22particlegun = main.add_module(
'ParticleGun')
23simulation = main.add_module(
'FullSim')
25simulation.param(
'EnableVisualization',
True)
26simulation.param(
'UICommandsAtIdle', [
32 '/vis/scene/add/axes 0 0 0 100 mm',
34 '/vis/scene/add/trajectories smooth',
35 '/vis/modeling/trajectories/create/drawByCharge'
43particlegun.param(
'nTracks', 1)
44particlegun.param(
'pdgCodes', [211])
45particlegun.param(
'momentumParams', [2.0, 5.0])
46particlegun.param(
'thetaParams', [85.0, 95.0])
47particlegun.param(
'phiParams', [-5.0, 5.0])