13 Beam Spot Calibration Check Script
14 one file for all BeamSpot payload in the local database
16 > basf2 beamSpotMonitor.py current_localDB
21 from basf2
import conditions
as b2conditions
23 if __name__ ==
'__main__':
25 current_localDB = sys.argv[1]
30 with open(current_localDB +
'/database.txt')
as fp:
33 exp = run[0].split(
' ')
34 expList.append(int(exp[2]))
35 runList.append(int(run[1]))
36 evtList.append(int(1))
38 b2conditions.testing_payloads = [str(current_localDB) +
"/database.txt"]
40 main = basf2.create_path()
42 eventinfosetter = basf2.register_module(
'EventInfoSetter')
43 eventinfosetter.param({
'evtNumList': evtList,
'expList': expList,
'runList': runList})
44 main.add_module(eventinfosetter)
46 main.add_module(
'BeamSpotMonitor')
48 basf2.print_path(main)