25 from ROOT
import Belle2
31 returns True if the event is NOT a random triggered event
41 check RawFTSW to get the event type
46 if not rawFTSW.isValid():
47 b2.B2WARNING(
'No RawFTSW available - event ignored')
54 if rawFTSW[0].GetTRGType(unknownInt) != Belle2.TRGSummary.TTYP_RAND:
62 returns True if the event is a Burst event (number of strips > max number of strips)
63 use :code:`set_nMaxStrips(nMaxStrips)` to set the max number of strips of a non-burst event, default is :code:`nMaxStrips=5000`
75 """set the max strips, otherwise 5000"""
84 if not strips.isValid():
85 b2.B2WARNING(
'No SVDShaperDigits - event ignored')
90 if strips.getEntries() > self.
nMaxStripsnMaxStrips:
98 returns True if the event is acquired with 6 samples
112 if not eventInfo.isValid():
113 eventInfo = Belle2.PyStoreObjPtr(
'SVDEventInfoSim')
115 if not eventInfo.isValid():
116 b2.B2WARNING(
'No SVDEventInfo/SVDEventInfoSim - event ignored')
122 if eventInfo.getNSamples() == 6:
130 returns True if TriggerBin of the event is the selected one,
131 use :code:`set_tb(tb)` to set the value of the selected TriggerBin (0,1,2,3)
143 '''set the trigger bin, otherwise 99, i.e. no selection'''
150 if int(self.
tbtb) == 99:
155 if not eventInfo.isValid():
156 b2.B2ERROR(
'No SVDEventInfo - event ignored')
161 if ord(eventInfo.getModeByte().getTriggerBin()) == int(self.
tbtb):
169 returns True if the event has a fine trigger from TRGSummary
182 if not trgQuality.isValid():
183 b2.B2WARNING(
'No TRGSummary - event ignored')
189 if trgQuality.getTimQuality() == 2:
197 returns True if (:code:`abs(EventT0)` is smaller than a selected value
198 that can be set with :code:`set_maxAbsEventT0(evtT0max)`) AND (:code:`abs(EventT0)` is larger than a selected value
199 that can be set with :code:`set_minAbsEventT0(evtT0min)`)
214 '''set the maximum abs(EventT0), otherwise 10 ns'''
216 self.
maxEvtT0maxEvtT0 = user_maxEvtT0
219 '''set the minimum EventT0, otherwise 0 ns'''
221 self.
minEvtT0minEvtT0 = user_minEvtT0
228 if not eventT0.isValid():
229 b2.B2ERROR(
'No valid EventT0 - event ignored')
234 if not eventT0.hasEventT0():
235 b2.B2ERROR(
'No EventT0 - event ignored')
240 if (abs(eventT0.getEventT0()) < self.
maxEvtT0maxEvtT0)
and (abs(eventT0.getEventT0()) > self.
minEvtT0minEvtT0):
A (simplified) python wrapper for StoreArray.
a (simplified) python wrapper for StoreObjPtr.
def set_maxAbsEventT0(self, user_maxEvtT0)
minEvtT0
minimum value of abs(EventT0) allowed
def set_minAbsEventT0(self, user_minEvtT0)
maxEvtT0
maximum value of abs(EventT0) allowed
nMaxStrips
max number of strips for NON-BURST events
def set_nMaxStrips(self, user_nMaxStrips)
def set_tb(self, user_tb)