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

Public Member Functions

def event (self)
 

Detailed Description

test module to compare the output of TRGCDC and CDCTriggerETF

Definition at line 102 of file ETF_OldVsNew.py.

Member Function Documentation

◆ event()

def event (   self)
give info for both modules and warnings in the case of mismatches

Definition at line 107 of file ETF_OldVsNew.py.

107  def event(self):
108  """
109  give info for both modules and warnings in the case of mismatches
110  """
111  oldT0 = Belle2.PyStoreObj("CDCTriggerEventTime").obj().getTiming()
112  if Belle2.PyStoreObj("BinnedEventT0").hasBinnedEventT0(Belle2.Const.CDC):
113  newT0 = Belle2.PyStoreObj("BinnedEventT0").obj().getBinnedEventT0(Belle2.Const.CDC)
114  else:
115  newT0 = 9999
116  if oldT0 == newT0:
117  basf2.B2INFO("T0 %d" % oldT0)
118  else:
119  basf2.B2WARNING("old T0 %d, new T0 %d" % (oldT0, newT0))
120 
121 
122 main.add_module(TestModule(), logLevel=basf2.LogLevel.INFO)
123 
124 # Process events
125 basf2.process(main)
126 
127 # Print call statistics
128 print(basf2.statistics)

The documentation for this class was generated from the following file:
Belle2::PyStoreObj
a (simplified) python wrapper for StoreObjPtr.
Definition: PyStoreObj.h:69
basf2.process
def process(path, max_event=0)
Definition: __init__.py:25
ClusterEfficiency.ClusterEfficiency.event
def event(self)
Definition: ClusterEfficiency.py:146