13b2.logging.log_level = b2.LogLevel.WARNING
17os.environ[
'G4VRMLFILE_VIEWER'] =
'freewrl'
19eventinfosetter = b2.register_module(
'EventInfoSetter')
21paramloader = b2.register_module(
'Gearbox')
23paramloader.param(
'fileName',
'/geometry/Beast2_phase1.xml')
27geobuilder = b2.register_module(
'Geometry')
28geobuilder.log_level = b2.LogLevel.INFO
29pguninput = b2.register_module(
'ParticleGun')
30g4sim = b2.register_module(
'FullSim')
32eventinfosetter.param(
'evtNumList', [1])
34g4sim.param(
'EnableVisualization',
True)
35g4sim.param(
'UICommandsAtIdle', [
'/vis/open VRML2FILE',
'/vis/drawVolume',
36 '/vis/scene/add/axes 0 0 0 31 mm',
37 '/vis/scene/add/trajectories smooth',
38 '/vis/modeling/trajectories/create/drawByCharge'])
48pguninput.param(
'nTracks', 1)
49pguninput.param(
'pdgCodes', [211])
50pguninput.param(
'momentumParams', [2.0, 5.0])
51pguninput.param(
'thetaParams', [85.0, 95.0])
52pguninput.param(
'phiParams', [-5.0, 5.0])
54main = b2.create_path()
56main.add_module(eventinfosetter)
57main.add_module(paramloader)
58main.add_module(geobuilder)
60main.add_module(pguninput)