14 b2.logging.log_level = b2.LogLevel.WARNING
18 os.environ[
'G4VRMLFILE_VIEWER'] =
'freewrl'
21 main = b2.create_path()
23 main.add_module(
'EventInfoSetter', evtNumList=[1])
25 main.add_module(
'Gearbox')
27 main.add_module(
'Geometry', logLevel=b2.LogLevel.INFO)
28 particlegun = main.add_module(
'ParticleGun')
29 simulation = main.add_module(
'FullSim')
31 simulation.param(
'EnableVisualization',
True)
32 simulation.param(
'UICommandsAtIdle', [
34 '/vis/open VRML2FILE',
38 '/vis/scene/add/axes 0 0 0 100 mm',
40 '/vis/scene/add/trajectories smooth',
41 '/vis/modeling/trajectories/create/drawByCharge'
49 particlegun.param(
'nTracks', 1)
50 particlegun.param(
'pdgCodes', [211])
51 particlegun.param(
'momentumParams', [2.0, 5.0])
52 particlegun.param(
'thetaParams', [85.0, 95.0])
53 particlegun.param(
'phiParams', [-5.0, 5.0])