6 from ROOT
import Belle2
16 print(
"usage: basf2", argvs[0],
"expNo runFirst runLast globalTag/localDB")
20 runFirst = int(argvs[2])
21 runLast = int(argvs[3])
26 ''' print content of TOPCalModuleT0 '''
37 print(
'Module T0 calibration status of GT =', tag)
38 print(
'Experiment =', expNo,
'Runs =', runFirst,
'to', runLast)
42 ''' event processing '''
45 runNo =
'r' +
'{:0=5d}'.format(evtMetaData.getRun())
48 B2ERROR(runNo +
': payload not found')
50 if not self.
db.hasChanged():
58 for slot
in range(1, 17):
59 if self.
db.isCalibrated(slot):
61 elif self.
db.isUnusable(slot):
65 print(
' slot' +
'{:0=2d}'.format(slot) +
': T0 =',
66 round(self.
db.getT0(slot), 4),
'+/-', round(self.
db.getT0Error(slot), 4),
79 use_local_database(tag)
81 use_central_database(tag)
87 evtList = [1
for run
in range(runFirst, runLast + 1)]
88 runList = [run
for run
in range(runFirst, runLast + 1)]
89 expList = [expNo
for run
in range(runFirst, runLast + 1)]
92 eventinfosetter = register_module(
'EventInfoSetter')
93 eventinfosetter.param({
'evtNumList': evtList,
'runList': runList,
'expList': expList})
94 main.add_module(eventinfosetter)