Belle II Software development
printBGInfo Class Reference
Inheritance diagram for printBGInfo:

Public Member Functions

def event (self)
 

Detailed Description

Print BackgroundInfo stored in the root file

Definition at line 20 of file backgroundInfo.py.

Member Function Documentation

◆ event()

def event (   self)
 event function 

Definition at line 26 of file backgroundInfo.py.

26 def event(self):
27 ''' event function '''
28
29 bgInfo = Belle2.PyStoreObj('BackgroundInfo', 1) # new version
30 bgInfos = Belle2.PyStoreArray('BackgroundInfos', 1) # old version
31 if bgInfo.isValid():
32 bgInfo.print()
33 elif bgInfos.isValid():
34 if bgInfos.getEntries() == 0:
35 print("Background info is empty")
36 i = 0
37 for bgInfo in bgInfos:
38 print("===========================")
39 print("* Backgroud info: entry", str(i))
40 print("===========================")
41 bgInfo.print()
42 i += 1
43 else:
44 print("No background info available")
45
46 evtMetaData = Belle2.PyStoreObj('EventMetaData')
47 evtMetaData.obj().setEndOfData()
48
49
A (simplified) python wrapper for StoreArray.
Definition: PyStoreArray.h:72
a (simplified) python wrapper for StoreObjPtr.
Definition: PyStoreObj.h:67

The documentation for this class was generated from the following file: