13b2.logging.log_level = b2.LogLevel.WARNING
17os.environ[
'G4VRMLFILE_VIEWER'] =
'freewrl'
20main = b2.create_path()
22main.add_module(
'EventInfoSetter', evtNumList=[1])
24main.add_module(
'Gearbox')
26main.add_module(
'Geometry', logLevel=b2.LogLevel.INFO)
27particlegun = main.add_module(
'ParticleGun')
28simulation = main.add_module(
'FullSim')
30simulation.param(
'EnableVisualization',
True)
31simulation.param(
'UICommandsAtIdle', [
33 '/vis/open VRML2FILE',
37 '/vis/scene/add/axes 0 0 0 100 mm',
39 '/vis/scene/add/trajectories smooth',
40 '/vis/modeling/trajectories/create/drawByCharge'
48particlegun.param(
'nTracks', 1)
49particlegun.param(
'pdgCodes', [211])
50particlegun.param(
'momentumParams', [2.0, 5.0])
51particlegun.param(
'thetaParams', [85.0, 95.0])
52particlegun.param(
'phiParams', [-5.0, 5.0])