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

Public Member Functions

def initialize (self)
 
def event (self)
 

Public Attributes

 num_events
 Stores the total number of events passing this module.
 
 events
 Stores the list of events passing this module.
 

Detailed Description

Count the number of events passing this module

Definition at line 15 of file partialselect.py.

Member Function Documentation

◆ event()

def event (   self)
Increment number of events each event

Definition at line 25 of file partialselect.py.

25 def event(self):
26 """Increment number of events each event"""
27 evtmetadata = Belle2.PyStoreObj('EventMetaData')
28 self.events.append(evtmetadata.obj().getEvent())
29 self.num_events += 1
30
31
a (simplified) python wrapper for StoreObjPtr.
Definition: PyStoreObj.h:67

◆ initialize()

def initialize (   self)
Start number of events at zero

Definition at line 18 of file partialselect.py.

18 def initialize(self):
19 """Start number of events at zero"""
20
21 self.num_events = 0
22
23 self.events = []
24

Member Data Documentation

◆ events

events

Stores the list of events passing this module.

Definition at line 23 of file partialselect.py.

◆ num_events

num_events

Stores the total number of events passing this module.

Definition at line 21 of file partialselect.py.


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