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

Public Member Functions

def initialize (self)
 
def event (self)
 

Detailed Description

Returns 1 if current event contains at least one K_L^0, 0 otherwise

Definition at line 28 of file triggerKLs.py.

Member Function Documentation

◆ event()

def event (   self)
reimplementation of Module::event().

Definition at line 37 of file triggerKLs.py.

37  def event(self):
38  """reimplementation of Module::event()."""
39 
40  self.return_value(0)
41  mcparticles = Belle2.PyStoreArray('MCParticles')
42  for p in mcparticles:
43  if abs(p.getPDG()) == 130:
44  b2.B2INFO('found a K_L!')
45  self.return_value(1)
46 
47  # also select the object in the display
48  displayData = Belle2.PyStoreObj("DisplayData")
49  displayData.create()
50  displayData.obj().select(p)
51  break
52 
53 
A (simplified) python wrapper for StoreArray.
Definition: PyStoreArray.h:72
a (simplified) python wrapper for StoreObjPtr.
Definition: PyStoreObj.h:67

◆ initialize()

def initialize (   self)
reimplementation of Module::initialize().

Definition at line 32 of file triggerKLs.py.


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