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

Public Member Functions

def __init__ (self)
 
def set_tb (self, user_tb)
 
def event (self)
 

Public Attributes

 tb
 trigger bin
 

Detailed Description

returns True if TriggerBin of the event is the selected one,
use :code:`set_tb(tb)` to set the value of the selected TriggerBin (0,1,2,3)

Definition at line 127 of file skim_utils.py.

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self)
constructor

Definition at line 133 of file skim_utils.py.

133 def __init__(self):
134 """constructor"""
135
136 super().__init__()
137
138
139 self.tb = 99 # no selection of TB
140

Member Function Documentation

◆ event()

def event (   self)
event

Definition at line 146 of file skim_utils.py.

146 def event(self):
147 '''event'''
148
149 if int(self.tb) == 99:
150 self.return_value(1)
151
152 eventInfo = Belle2.PyStoreObj('SVDEventInfo')
153
154 if not eventInfo.isValid():
155 b2.B2ERROR('No SVDEventInfo - event ignored')
156 self.return_value(0)
157
158 return
159
160 if ord(eventInfo.getModeByte().getTriggerBin()) == int(self.tb):
161 self.return_value(1)
162 else:
163 self.return_value(0)
164
165
a (simplified) python wrapper for StoreObjPtr.
Definition: PyStoreObj.h:67

◆ set_tb()

def set_tb (   self,
  user_tb 
)
set the trigger bin, otherwise 99, i.e. no selection

Definition at line 141 of file skim_utils.py.

141 def set_tb(self, user_tb):
142 '''set the trigger bin, otherwise 99, i.e. no selection'''
143
144 self.tb = user_tb
145

Member Data Documentation

◆ tb

tb

trigger bin

Definition at line 139 of file skim_utils.py.


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