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

Public Member Functions

def __init__ (self)
 
def event (self)
 

Detailed Description

returns True if the event is acquired with 6 samples

Definition at line 95 of file skim_utils.py.

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self)
constructor

Definition at line 100 of file skim_utils.py.

100 def __init__(self):
101 """constructor"""
102
103 super().__init__()
104

Member Function Documentation

◆ event()

def event (   self)
event

Definition at line 105 of file skim_utils.py.

105 def event(self):
106 '''event'''
107
108 # take SVDEventInfo or SVDvVentInfoSim
109 eventInfo = Belle2.PyStoreObj('SVDEventInfo')
110
111 if not eventInfo.isValid():
112 eventInfo = Belle2.PyStoreObjPtr('SVDEventInfoSim')
113
114 if not eventInfo.isValid():
115 b2.B2WARNING('No SVDEventInfo/SVDEventInfoSim - event ignored')
116 self.return_value(0)
117
118 return
119
120 # check if we acquired 6-sample strips in this event
121 if eventInfo.getNSamples() == 6:
122 self.return_value(1)
123 else:
124 self.return_value(0)
125
126
a (simplified) python wrapper for StoreObjPtr.
Definition: PyStoreObj.h:67

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