18def addSource(x, angle, slotID, path):
20 Adds a laser source to the path
21 @param x local x coordinate of teh source in the bar frame
22 @param angle vertical tilt of the source
23 @param slotID 1-16, slot number. If it's 0, then all the coorinates are in the BelleII frame
25 path.add_module(
'OpticalGun',
40 angularDistribution=
'uniform'
46main = b2.create_path()
49main.add_module(
'EventInfoSetter',
54main.add_module(
'Gearbox')
57main.add_module(
'Geometry')
60main.add_module(
'TOPCalPulseGenerator',
65for slotId
in range(1, 17):
66 for pos
in [0.9, 5.7, 11.3, 16.9, 22.5, 28.1, 33.7, 39.3, 44.1]:
69 addSource(x, angle, slotId, main)
72main.add_module(
'FullSim')
75main.add_module(
'TOPDigitizer')
78main.add_module(
'RootOutput',
79 outputFileName=
'opticalGunWithCalPulse.root')
82main.add_module(
'Progress')
85b2.process(main, calculateStatistics=
True)