Belle II Software  release-05-01-25
printBGInfo Class Reference
Inheritance diagram for printBGInfo:
Collaboration diagram for printBGInfo:

Public Member Functions

def event (self)
 

Detailed Description

Print BackgroundInfo stored in the root file

Definition at line 13 of file backgroundInfo.py.

Member Function Documentation

◆ event()

def event (   self)
event function 

Definition at line 19 of file backgroundInfo.py.

19  def event(self):
20  ''' event function '''
21 
22  bgInfo = Belle2.PyStoreObj('BackgroundInfo', 1) # new version
23  bgInfos = Belle2.PyStoreArray('BackgroundInfos', 1) # old version
24  if bgInfo.isValid():
25  bgInfo.print()
26  elif bgInfos.isValid():
27  if bgInfos.getEntries() == 0:
28  print("Background info is empty")
29  i = 0
30  for bgInfo in bgInfos:
31  print("===========================")
32  print("* Backgroud info: entry", str(i))
33  print("===========================")
34  bgInfo.print()
35  i += 1
36  else:
37  print("No background info available")
38 
39  evtMetaData = Belle2.PyStoreObj('EventMetaData')
40  evtMetaData.obj().setEndOfData()
41 
42 
43 set_log_level(LogLevel.ERROR)
44 
45 # Create path

The documentation for this class was generated from the following file:
Belle2::PyStoreObj
a (simplified) python wrapper for StoreObjPtr.
Definition: PyStoreObj.h:69
ClusterEfficiency.ClusterEfficiency.event
def event(self)
Definition: ClusterEfficiency.py:146
Belle2::PyStoreArray
a (simplified) python wrapper for StoreArray.
Definition: PyStoreArray.h:58