Belle II Software  release-06-01-15
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 21 of file backgroundInfo.py.

Member Function Documentation

◆ event()

def event (   self)
 event function 

Definition at line 27 of file backgroundInfo.py.

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

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