21 main = b2.create_path()
24 eventinfosetter = b2.register_module(
'EventInfoSetter')
26 eventinfosetter.param(
'evtNumList', [200])
27 main.add_module(eventinfosetter)
38 gearbox = b2.register_module(
'Gearbox')
39 gearbox.param(
'fileName',
'geometry/Beast2_phase2.xml')
40 main.add_module(gearbox)
43 geometry = b2.register_module(
'Geometry')
45 geometry.param(
'components', [
"STR",
"BeamPipe",
"Cryostat",
46 "HeavyMetalShield",
"PXD",
"SVD",
"MICROTPC",
"PINDIODE",
47 "BEAMABORT",
"HE3TUBE",
"CLAWS",
"FANGS",
"PLUME",
"QCSMONITOR",
48 "MagneticField3dQuadBeamline"])
49 main.add_module(geometry)
59 particlegun = b2.register_module(
'ParticleGun')
60 particlegun.param(
'pdgCodes', [11])
61 particlegun.param(
'nTracks', 1)
62 particlegun.param(
'momentumGeneration',
'uniform')
63 particlegun.param(
'momentumParams', [1, 1.01])
64 particlegun.param(
'thetaGeneration',
'uniformCos')
65 particlegun.param(
'thetaParams', [0, 360])
66 particlegun.param(
'phiGeneration',
'uniform')
67 particlegun.param(
'phiParams', [0, 360])
68 particlegun.param(
'vertexGeneration',
'fixed')
69 particlegun.param(
'xVertexParams', [0])
70 particlegun.param(
'yVertexParams', [0])
71 particlegun.param(
'zVertexParams', [0])
72 particlegun.param(
'independentVertices',
False)
73 main.add_module(particlegun)
76 fullsim = b2.register_module(
'FullSim')
77 fullsim.param(
'PhysicsList',
'FTFP_BERT_HP')
78 fullsim.param(
'UICommandsAtIdle', [
'/process/inactivate nKiller'])
79 fullsim.param(
'StoreAllSecondaries',
True)
80 fullsim.param(
'SecondariesEnergyCut', 0.000001)
81 main.add_module(fullsim)
97 progress = b2.register_module(
'Progress')
98 main.add_module(progress)
107 output = b2.register_module(
'RootOutput')
108 output.param(
'outputFileName',
"beast_test.root")
111 main.add_module(output)