12Beam Spot Calibration Check Script
13one file for all BeamSpot payload in the local database
15> basf2 beamSpotMonitor.py current_localDB
20from basf2
import conditions
as b2conditions
22if __name__ ==
'__main__':
24 current_localDB = sys.argv[1]
29 with open(current_localDB +
'/database.txt')
as fp:
32 exp = run[0].split(
' ')
33 expList.append(int(exp[2]))
34 runList.append(int(run[1]))
35 evtList.append(int(1))
37 b2conditions.testing_payloads = [str(current_localDB) +
"/database.txt"]
39 main = basf2.create_path()
41 eventinfosetter = basf2.register_module(
'EventInfoSetter')
42 eventinfosetter.param({
'evtNumList': evtList,
'expList': expList,
'runList': runList})
43 main.add_module(eventinfosetter)
45 main.add_module(
'BeamSpotMonitor')
47 basf2.print_path(main)