13from ROOT
import Belle2
23 print(
"usage: basf2", argvs[0],
"expNo runFirst runLast globalTag/localDB")
27runFirst = int(argvs[2])
28runLast = int(argvs[3])
33 ''' print content of TOPCalCommonT0 '''
46 print(
'Common T0 calibration status of GT =', tag)
47 print(
'Experiment =', expNo,
'Runs =', runFirst,
'to', runLast)
51 ''' event processing '''
54 runNo =
'r' + f
'{evtMetaData.getRun():05d}'
57 b2.B2ERROR(runNo +
': payload not found')
59 if not self.
db.hasChanged():
66 if self.
db.isCalibrated():
68 elif self.
db.isUnusable():
70 elif self.
db.isRoughlyCalibrated():
71 status =
'roughly calibrated'
76 print(runNo +
': T0 =',
77 round(self.
db.getT0(), 4),
'+/-', round(self.
db.getT0Error(), 4),
80 print(runNo +
': T0 =',
81 round(self.
db.getT0(), 4),
'+/-', round(self.
db.getT0Error(), 4),
82 status,
'-- out of range')
94 b2.conditions.append_testing_payloads(tag)
96 b2.conditions.append_globaltag(tag)
99main = b2.create_path()
102evtList = [1
for run
in range(runFirst, runLast + 1)]
103runList = [run
for run
in range(runFirst, runLast + 1)]
104expList = [expNo
for run
in range(runFirst, runLast + 1)]
107eventinfosetter = b2.register_module(
'EventInfoSetter')
108eventinfosetter.param({
'evtNumList': evtList,
'runList': runList,
'expList': expList})
109main.add_module(eventinfosetter)
Class to access a DBObjPtr from Python.
a (simplified) python wrapper for StoreObjPtr.
bunchTimeSep
bunch time separation