Belle II Software  release-08-01-10
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 108 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 113 of file ETF_OldVsNew.py.

113  def event(self):
114  """
115  give info for both modules and warnings in the case of mismatches
116  """
117  oldT0 = Belle2.PyStoreObj("CDCTriggerEventTime").obj().getTiming()
118  if Belle2.PyStoreObj("BinnedEventT0").hasBinnedEventT0(Belle2.Const.CDC):
119  newT0 = Belle2.PyStoreObj("BinnedEventT0").obj().getBinnedEventT0(Belle2.Const.CDC)
120  else:
121  newT0 = 9999
122  if oldT0 == newT0:
123  basf2.B2INFO("T0 %d" % oldT0)
124  else:
125  basf2.B2WARNING("old T0 %d, new T0 %d" % (oldT0, newT0))
126 
127 
128 main.add_module(TestModule(), logLevel=basf2.LogLevel.INFO)
129 
130 # Process events
131 basf2.process(main)
132 
133 # Print call statistics
134 print(basf2.statistics)
a (simplified) python wrapper for StoreObjPtr.
Definition: PyStoreObj.h:67

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