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 TOPCalModuleT0 '''
44 print(
'Module T0 calibration status of GT =', tag)
45 print(
'Experiment =', expNo,
'Runs =', runFirst,
'to', runLast)
49 ''' event processing '''
52 runNo =
'r' + f
'{evtMetaData.getRun():05d}'
55 b2.B2ERROR(runNo +
': payload not found')
57 if not self.
db.hasChanged():
65 for slot
in range(1, 17):
66 if self.
db.isCalibrated(slot):
68 elif self.
db.isUnusable(slot):
72 print(
' slot' + f
'{slot:02d}' +
': T0 =',
73 round(self.
db.getT0(slot), 4),
'+/-', round(self.
db.getT0Error(slot), 4),
86 b2.conditions.append_testing_payloads(tag)
88 b2.conditions.append_globaltag(tag)
91main = b2.create_path()
94evtList = [1
for run
in range(runFirst, runLast + 1)]
95runList = [run
for run
in range(runFirst, runLast + 1)]
96expList = [expNo
for run
in range(runFirst, runLast + 1)]
99eventinfosetter = b2.register_module(
'EventInfoSetter')
100eventinfosetter.param({
'evtNumList': evtList,
'runList': runList,
'expList': expList})
101main.add_module(eventinfosetter)
Class to access a DBObjPtr from Python.
a (simplified) python wrapper for StoreObjPtr.