16 def addSource(x, angle, slotID, path):
18 Adds a laser source to the path
19 @param x local x coordinate of teh source in the bar frame
20 @param angle vertical tilt of the source
21 @param slotID 1-16, slot number. If it's 0, then all the coorinates are in the BelleII frame
23 path.add_module(
'OpticalGun',
38 angularDistribution=
'uniform'
44 main = b2.create_path()
48 main.add_module(
'EventInfoSetter',
53 main.add_module(
'Gearbox')
56 main.add_module(
'Geometry')
60 main.add_module(
'TOPCalPulseGenerator',
65 for 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)
72 main.add_module(
'FullSim')
75 main.add_module(
'TOPDigitizer')
78 main.add_module(
'RootOutput',
79 outputFileName=
'opticalGunWithCalPulse.root')
82 main.add_module(
'Progress')