24from ROOT
import Belle2
30 returns True if the event
is NOT a random triggered event
40 check RawFTSW to get the event type
45 if not rawFTSW.isValid():
46 b2.B2WARNING(
'No RawFTSW available - event ignored')
53 if rawFTSW[0].GetTRGType(unknownInt) != Belle2.TRGSummary.TTYP_RAND:
61 returns True if the event
is a Burst event (number of strips > max number of strips)
62 use :code:`
set_nMaxStrips(nMaxStrips)` to set the max number of strips of a non-burst event, default
is :code:`nMaxStrips=5000`
74 """set the max strips, otherwise 5000"""
83 if not strips.isValid():
84 b2.B2WARNING(
'No SVDShaperDigits - event ignored')
97 returns True if the event
is acquired
with 6 samples
111 if not eventInfo.isValid():
112 eventInfo = Belle2.PyStoreObjPtr(
'SVDEventInfoSim')
114 if not eventInfo.isValid():
115 b2.B2WARNING(
'No SVDEventInfo/SVDEventInfoSim - event ignored')
121 if eventInfo.getNSamples() == 6:
129 returns True if TriggerBin of the event
is the selected one,
130 use :code:`
set_tb(tb)` to set the value of the selected TriggerBin (0,1,2,3)
142 '''set the trigger bin, otherwise 99, i.e. no selection'''
149 if int(self.
tb) == 99:
154 if not eventInfo.isValid():
155 b2.B2ERROR(
'No SVDEventInfo - event ignored')
160 if ord(eventInfo.getModeByte().getTriggerBin()) == int(self.
tb):
168 returns True if the event has a fine trigger
from TRGSummary
181 if not trgQuality.isValid():
182 b2.B2WARNING(
'No TRGSummary - event ignored')
188 if trgQuality.getTimQuality() == 2:
196 returns True if (:code:`abs(EventT0)`
is smaller than a selected value
197 that can be set
with :code:`
set_maxAbsEventT0(evtT0max)`) AND (:code:`abs(EventT0)`
is larger than a selected value
213 '''set the maximum abs(EventT0), otherwise 10 ns'''
218 '''set the minimum EventT0, otherwise 0 ns'''
227 if not eventT0.isValid():
228 b2.B2ERROR(
'No valid EventT0 - event ignored')
233 if not eventT0.hasEventT0():
234 b2.B2ERROR(
'No EventT0 - event ignored')
239 if (abs(eventT0.getEventT0()) < self.
maxEvtT0)
and (abs(eventT0.getEventT0()) > self.
minEvtT0):
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)