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

Public Member Functions

def initialize (self)
 
def event (self)
 

Public Attributes

 mc
 MCParticles StoreArray.
 

Detailed Description

Reject tracks with bad combination of z0 and theta

Definition at line 93 of file firm2d.py.

Member Function Documentation

◆ event()

def event (   self)
Reject tracks with bad combination of z0 and theta

Definition at line 105 of file firm2d.py.

105 def event(self):
106 """
107 Reject tracks with bad combination of z0 and theta
108 """
109 self.return_value(0)
110 z0 = self.mc[0].getVertex().Z()
111 vec = self.mc[0].getMomentum()
112 # skip the event if the track didn't reach SL0
113 if z_SL0[0] < z0 + r_SL0 / vec.Pt() * vec.Z() < z_SL0[1]:
114 self.return_value(1)
115
116

◆ initialize()

def initialize (   self)
Initialize self.mc with MCParticles StoreArray

Definition at line 98 of file firm2d.py.

98 def initialize(self):
99 """
100 Initialize self.mc with MCParticles StoreArray
101 """
102
103 self.mc = Belle2.PyStoreArray('MCParticles')
104
A (simplified) python wrapper for StoreArray.
Definition: PyStoreArray.h:72

Member Data Documentation

◆ mc

mc

MCParticles StoreArray.

Definition at line 103 of file firm2d.py.


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