19 def addSource(x, angle, slotID, path):
21 Adds a laser source to the path
22 @param x local x coordinate of teh source in the bar frame
23 @param angle vertical tilt of the source
24 @param slotID 1-16, slot number. If it's 0, then all the coorinates are in the BelleII frame
26 path.add_module(
'OpticalGun',
41 angularDistribution=
'uniform'
47 main = b2.create_path()
50 main.add_module(
'EventInfoSetter',
55 main.add_module(
'Gearbox')
58 main.add_module(
'Geometry')
61 main.add_module(
'TOPCalPulseGenerator',
66 for slotId
in range(1, 17):
67 for pos
in [0.9, 5.7, 11.3, 16.9, 22.5, 28.1, 33.7, 39.3, 44.1]:
70 addSource(x, angle, slotId, main)
73 main.add_module(
'FullSim')
76 main.add_module(
'TOPDigitizer')
79 main.add_module(
'RootOutput',
80 outputFileName=
'opticalGunWithCalPulse.root')
83 main.add_module(
'Progress')