Belle II Software  release-08-01-10
SelectTRGTypes Class Reference
Inheritance diagram for SelectTRGTypes:
Collaboration diagram for SelectTRGTypes:

Public Member Functions

def event (self)
 

Detailed Description

 select events according to given trigger types 

Definition at line 47 of file beamBkgHitRates.py.

Member Function Documentation

◆ event()

def event (   self)
 event processing 

Definition at line 50 of file beamBkgHitRates.py.

50  def event(self):
51  ''' event processing '''
52 
53  self.return_value(0)
54  trg_summary = Belle2.PyStoreObj('TRGSummary')
55  if not trg_summary.isValid():
56  basf2.B2ERROR('No TRGSummary available - event ignored')
57  return
58 
59  for trgType in trigTypes:
60  if trg_summary.getTimType() == trgType:
61  self.return_value(1)
62  return
63 
64 
65 # Define global tag
66 basf2.conditions.prepend_globaltag(global_tag)
67 
68 # Create paths
a (simplified) python wrapper for StoreObjPtr.
Definition: PyStoreObj.h:67

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