Belle II Software  release-05-02-19
AccessingDataStoreModule Class Reference
Inheritance diagram for AccessingDataStoreModule:
Collaboration diagram for AccessingDataStoreModule:

Public Member Functions

def initialize (self)
 
def event (self)
 

Public Attributes

 eventinfo
 
 particles
 

Detailed Description

Definition at line 8 of file 087_module.py.

Member Function Documentation

◆ event()

def event (   self)
Print the number of charged particles and the total charge

Definition at line 16 of file 087_module.py.

16  def event(self):
17  """Print the number of charged particles and the total charge"""
18  n_charged = 0
19  total_charge = 0
20  for particle in self.particles:
21  charge = particle.getCharge()
22  if charge:
23  n_charged += 1
24  total_charge += charge
25 
26  b2.B2INFO(
27  f"Number of charged particles = {n_charged}, "
28  f"total charge of event = {total_charge}"
29  )
30 
31 
32 # create a path

◆ initialize()

def initialize (   self)
Create a member to access event info and the MCParticles
StoreArray

Definition at line 9 of file 087_module.py.


The documentation for this class was generated from the following file:
ClusterEfficiency.ClusterEfficiency.event
def event(self)
Definition: ClusterEfficiency.py:146