12from ROOT
import Belle2
23 Print BackgroundInfo stored in the root file
27 ''' event function '''
33 elif bgInfos.isValid():
34 if bgInfos.getEntries() == 0:
35 print(
"Background info is empty")
37 for bgInfo
in bgInfos:
38 print(
"===========================")
39 print(
"* Backgroud info: entry", str(i))
40 print(
"===========================")
44 print(
"No background info available")
47 evtMetaData.obj().setEndOfData()
50b2.set_log_level(b2.LogLevel.ERROR)
53main = b2.create_path()
56roinput = b2.register_module(
'RootInput')
57main.add_module(roinput)
A (simplified) python wrapper for StoreArray.
a (simplified) python wrapper for StoreObjPtr.