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

Public Member Functions

def event (self)
 

Static Public Attributes

 logLevel
 

Detailed Description

test module to compare the output of TRGCDC and CDCTriggerETF

Definition at line 107 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 112 of file ETF_OldVsNew.py.

112 def event(self):
113 """
114 give info for both modules and warnings in the case of mismatches
115 """
116 oldT0 = Belle2.PyStoreObj("CDCTriggerEventTime").obj().getTiming()
117 if Belle2.PyStoreObj("BinnedEventT0").hasBinnedEventT0(Belle2.Const.CDC):
118 newT0 = Belle2.PyStoreObj("BinnedEventT0").obj().getBinnedEventT0(Belle2.Const.CDC)
119 else:
120 newT0 = 9999
121 if oldT0 == newT0:
122 basf2.B2INFO(f"T0 {int(oldT0)}")
123 else:
124 basf2.B2WARNING(f"old T0 {int(oldT0)}, new T0 {int(newT0)}")
125
126
a (simplified) python wrapper for StoreObjPtr.
Definition: PyStoreObj.h:67

Member Data Documentation

◆ logLevel

logLevel
static

Definition at line 127 of file ETF_OldVsNew.py.


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