Small module to mark all events except for the ones in the given list as
discarded by the HLT
Definition at line 139 of file root_input.py.
◆ __init__()
def __init__ |
( |
|
self, |
|
|
|
accepted |
|
) |
| |
Initialize this nice class with the list/set of accepted event
numbers to see. Order not important. All other events will be flagged
as discarded.
Definition at line 145 of file root_input.py.
145 def __init__(self, accepted):
146 """
147 Initialize this nice class with the list/set of accepted event
148 numbers to see. Order not important. All other events will be flagged
149 as discarded.
150 """
151 super().__init__()
152
154
155 self._accepted = accepted
156
a (simplified) python wrapper for StoreObjPtr.
◆ event()
Set error flag if required
Definition at line 157 of file root_input.py.
157 def event(self):
158 """Set error flag if required"""
159 if self.emd.getEvent() not in self._accepted:
160 error = Belle2.EventMetaData.c_HLTDiscard if self.emd.getEvent() % 2 == 0 else \
161 Belle2.EventMetaData.c_HLTCrash
162 self.emd.addErrorFlag(error)
163
164 main = basf2.Path()
◆ _accepted
◆ emd
The documentation for this class was generated from the following file: