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