Belle II Software development
masterclass_output.py
1#!/usr/bin/env python
2
3
10
11import basf2 as b2
12from simulation import add_simulation
13from reconstruction import add_reconstruction
14
15
16main = b2.Path()
17
18b2.set_random_seed(12345)
19main.add_module('EventInfoSetter', evtNumList=[10])
20
21particlegun = b2.register_module('ParticleGun')
22particlegun.param('momentumGeneration', 'uniform')
23particlegun.param('momentumParams', [0.5, 4.0])
24particlegun.param('pdgCodes', [13, -13, 211, -211, 321, -321, 22])
25particlegun.param('nTracks', 10)
26particlegun.param('thetaGeneration', 'uniformCos')
27particlegun.param('thetaParams', [0.0, 180.0])
28main.add_module(particlegun)
29
30add_simulation(main)
31add_reconstruction(main)
32
33masterclass = main.add_module('MasterClass')
34masterclass.param('outputFileName', 'masterclass.root')
35
36b2.process(main)