13 b2.logging.log_level = b2.LogLevel.WARNING
16 main = b2.create_path()
18 main.add_module(
'EventInfoSetter', evtNumList=[1])
20 main.add_module(
'Gearbox')
22 main.add_module(
'Geometry', logLevel=b2.LogLevel.INFO)
23 particlegun = main.add_module(
'ParticleGun')
24 simulation = main.add_module(
'FullSim')
26 simulation.param(
'EnableVisualization',
True)
27 simulation.param(
'UICommandsAtIdle', [
33 '/vis/scene/add/axes 0 0 0 100 mm',
35 '/vis/scene/add/trajectories smooth',
36 '/vis/modeling/trajectories/create/drawByCharge'
44 particlegun.param(
'nTracks', 1)
45 particlegun.param(
'pdgCodes', [211])
46 particlegun.param(
'momentumParams', [2.0, 5.0])
47 particlegun.param(
'thetaParams', [85.0, 95.0])
48 particlegun.param(
'phiParams', [-5.0, 5.0])