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

Public Member Functions

def __init__ (self)
 
def set_maxAbsEventT0 (self, user_maxEvtT0)
 
def set_minAbsEventT0 (self, user_minEvtT0)
 
def event (self)
 

Public Attributes

 maxEvtT0
 maximum value of abs(EventT0) allowed
 
 minEvtT0
 minimum value of abs(EventT0) allowed
 

Detailed Description

returns True if (:code:`abs(EventT0)` is smaller than a selected value
that can be set with :code:`set_maxAbsEventT0(evtT0max)`)  AND (:code:`abs(EventT0)` is larger than a selected value
that can be set with :code:`set_minAbsEventT0(evtT0min)`)

Definition at line 194 of file skim_utils.py.

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self)
constructor

Definition at line 201 of file skim_utils.py.

201 def __init__(self):
202 """constructor"""
203
204 super().__init__()
205
206
207 self.maxEvtT0 = 10 # ns
208
209
210 self.minEvtT0 = 0 # ns
211

Member Function Documentation

◆ event()

def event (   self)
event

Definition at line 222 of file skim_utils.py.

222 def event(self):
223 '''event'''
224
225 eventT0 = Belle2.PyStoreObj('EventT0')
226
227 if not eventT0.isValid():
228 b2.B2ERROR('No valid EventT0 - event ignored')
229 self.return_value(0)
230
231 return
232
233 if not eventT0.hasEventT0():
234 b2.B2ERROR('No EventT0 - event ignored')
235 self.return_value(0)
236
237 return
238
239 if (abs(eventT0.getEventT0()) < self.maxEvtT0) and (abs(eventT0.getEventT0()) > self.minEvtT0):
240 self.return_value(1)
241 else:
242 self.return_value(0)
a (simplified) python wrapper for StoreObjPtr.
Definition: PyStoreObj.h:67

◆ set_maxAbsEventT0()

def set_maxAbsEventT0 (   self,
  user_maxEvtT0 
)
set the maximum abs(EventT0), otherwise 10 ns

Definition at line 212 of file skim_utils.py.

212 def set_maxAbsEventT0(self, user_maxEvtT0):
213 '''set the maximum abs(EventT0), otherwise 10 ns'''
214
215 self.maxEvtT0 = user_maxEvtT0
216

◆ set_minAbsEventT0()

def set_minAbsEventT0 (   self,
  user_minEvtT0 
)
set the minimum EventT0, otherwise 0 ns

Definition at line 217 of file skim_utils.py.

217 def set_minAbsEventT0(self, user_minEvtT0):
218 '''set the minimum EventT0, otherwise 0 ns'''
219
220 self.minEvtT0 = user_minEvtT0
221

Member Data Documentation

◆ maxEvtT0

maxEvtT0

maximum value of abs(EventT0) allowed

Definition at line 207 of file skim_utils.py.

◆ minEvtT0

minEvtT0

minimum value of abs(EventT0) allowed

Definition at line 210 of file skim_utils.py.


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