14 b2.set_log_level(b2.LogLevel.ERROR)
19 eventinfosetter = b2.register_module(
'EventInfoSetter')
21 particlegun = b2.register_module(
'ParticleGun')
23 gearbox = b2.register_module(
'Gearbox')
25 geometry = b2.register_module(
'Geometry')
27 simulation = b2.register_module(
'FullSim')
36 analysis = b2.register_module(
'CLAWS')
38 output = b2.register_module(
'RootOutput')
40 progress = b2.register_module(
'Progress')
45 eventinfosetter.param({
'evtNumList': [500],
'runList': [1]})
60 'pdgCodes': [11, 22, -11],
63 'momentumGeneration':
'fixed',
64 'momentumParams': [0.00004],
65 'thetaGeneration':
'normal',
66 'thetaParams': [0.0, 1.0],
67 'phiGeneration':
'uniform',
68 'phiParams': [0, 360.0],
69 'vertexGeneration':
'fixed',
70 'xVertexParams': [0.0],
71 'yVertexParams': [0.0],
72 'zVertexParams': [0.0],
73 'independentVertices':
False,
79 gearbox.param(
'fileName',
'beast/claws/detector.xml')
87 geometry.set_log_level(b2.LogLevel.INFO)
90 analysis.set_log_level(b2.LogLevel.INFO)
95 output.param(
'outputFileName',
'claws-simulation.root')
102 output.param(
'updateFileCatalog',
False)
105 main = b2.create_path()
106 main.add_module(eventinfosetter)
107 main.add_module(gearbox)
108 main.add_module(geometry)
109 main.add_module(particlegun)
110 main.add_module(simulation)
111 main.add_module(analysis)
112 main.add_module(output)
113 main.add_module(progress)