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

Public Member Functions

def __init__ (self)
 
def set_nMaxStrips (self, user_nMaxStrips)
 
def event (self)
 

Public Attributes

 nMaxStrips
 max number of strips for NON-BURST events
 

Detailed Description

returns True if the event is a Burst event (number of strips > max number of strips)
use :code:`set_nMaxStrips(nMaxStrips)` to set the max number of strips of a non-burst event, default is :code:`nMaxStrips=5000`

Definition at line 59 of file skim_utils.py.

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self)
constructor

Definition at line 65 of file skim_utils.py.

65 def __init__(self):
66 """constructor"""
67
68 super().__init__()
69
70
71 self.nMaxStrips = 5000
72

Member Function Documentation

◆ event()

def event (   self)
event

Definition at line 78 of file skim_utils.py.

78 def event(self):
79 '''event'''
80
81 strips = Belle2.PyStoreArray('SVDShaperDigits')
82
83 if not strips.isValid():
84 b2.B2WARNING('No SVDShaperDigits - event ignored')
85 self.return_value(0)
86
87 return
88
89 if strips.getEntries() > self.nMaxStrips:
90 self.return_value(1)
91 else:
92 self.return_value(0)
93
94
A (simplified) python wrapper for StoreArray.
Definition: PyStoreArray.h:72

◆ set_nMaxStrips()

def set_nMaxStrips (   self,
  user_nMaxStrips 
)
set the max strips, otherwise 5000

Definition at line 73 of file skim_utils.py.

73 def set_nMaxStrips(self, user_nMaxStrips):
74 """set the max strips, otherwise 5000"""
75
76 self.nMaxStrips = user_nMaxStrips
77

Member Data Documentation

◆ nMaxStrips

nMaxStrips

max number of strips for NON-BURST events

Definition at line 71 of file skim_utils.py.


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