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

Public Member Functions

def __init__ (self, objects_to_print, print_untested=False)
 
def initialize (self)
 
def event (self)
 

Public Attributes

 objects_to_print
 list of object to print
 
 print_untested
 print untested members?
 

Detailed Description

Call all DataStorePrinter objects in for each event

Definition at line 293 of file datastoreprinter.py.

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
  objects_to_print,
  print_untested = False 
)
Initialize

Args:
    objects_to_print (list): list of object to print

Definition at line 297 of file datastoreprinter.py.

297 def __init__(self, objects_to_print, print_untested=False):
298 """
299 Initialize
300
301 Args:
302 objects_to_print (list): list of object to print
303 """
304
305 self.objects_to_print = objects_to_print
306
307 self.print_untested = print_untested
308 super().__init__()
309

Member Function Documentation

◆ event()

def event (   self)
print the contents of the mdst mdst_dataobjects

Definition at line 318 of file datastoreprinter.py.

318 def event(self):
319 """print the contents of the mdst mdst_dataobjects"""
320 try:
321 for printer in self.objects_to_print:
322 printer.print()
323 except Exception as e:
324 B2FATAL("Error in datastore printer: ", e)

◆ initialize()

def initialize (   self)
Print all untested members if requested

Definition at line 310 of file datastoreprinter.py.

310 def initialize(self):
311 """Print all untested members if requested"""
312 if not self.print_untested:
313 return
314
315 for printer in self.objects_to_print:
316 printer.print_untested()
317

Member Data Documentation

◆ objects_to_print

objects_to_print

list of object to print

Definition at line 305 of file datastoreprinter.py.

◆ print_untested

print_untested

print untested members?

Definition at line 307 of file datastoreprinter.py.


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