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

Public Member Functions

def __init__ (self)
 
def event (self)
 

Detailed Description

returns True if the event is NOT a random triggered event

Definition at line 28 of file skim_utils.py.

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self)
constructor

Definition at line 33 of file skim_utils.py.

33 def __init__(self):
34 """constructor"""
35
36 super().__init__()
37

Member Function Documentation

◆ event()

def event (   self)
check RawFTSW to get the event type

Definition at line 38 of file skim_utils.py.

38 def event(self):
39 """
40 check RawFTSW to get the event type
41 """
42
43 rawFTSW = Belle2.PyStoreArray('RawFTSWs')
44
45 if not rawFTSW.isValid():
46 b2.B2WARNING('No RawFTSW available - event ignored')
47 self.return_value(0)
48
49 return
50
51 # unknown meaning of this number
52 unknownInt = 0
53 if rawFTSW[0].GetTRGType(unknownInt) != Belle2.TRGSummary.TTYP_RAND:
54 self.return_value(1)
55 else:
56 self.return_value(0)
57
58
A (simplified) python wrapper for StoreArray.
Definition: PyStoreArray.h:72

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