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 BEAST hit, 0 otherwise

Definition at line 17 of file RunSADBgMC_phase1.py.

Member Function Documentation

◆ event()

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

Definition at line 24 of file RunSADBgMC_phase1.py.

24  def event(self):
25  """reimplementation of Module::event()."""
26 
27  self.return_value(0)
28  mcparticles = Belle2.PyStoreArray('MCParticles')
29  for p in mcparticles:
30  print()
31  if len(p.getRelationsTo('MicrotpcSimHits')) > 0 \
32  or len(p.getRelationsTo('He3tubeSimHits')) > 0 \
33  or len(p.getRelationsTo('PindiodeSimHits')) > 0 \
34  or len(p.getRelationsTo('BgoSimHits')) > 0 \
35  or len(p.getRelationsTo('CsiSimHits')) > 0:
36  # B2INFO('found a Beast!')
37  self.return_value(1)
38 
39  break
40 
41 
A (simplified) python wrapper for StoreArray.
Definition: PyStoreArray.h:72

◆ initialize()

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

Definition at line 21 of file RunSADBgMC_phase1.py.


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