Belle II Software  release-05-01-25
is2DSkim Class Reference
Inheritance diagram for is2DSkim:
Collaboration diagram for is2DSkim:

Public Member Functions

def event (self)
 

Detailed Description

check the 2D skim with Tracks StoreArray

Definition at line 15 of file trgcdct3dUnpackerConverter.py.

Member Function Documentation

◆ event()

def event (   self)
event function of the is2DSkim class

Definition at line 18 of file trgcdct3dUnpackerConverter.py.

18  def event(self):
19  """event function of the is2DSkim class"""
20  Tracks = ROOT.Belle2.PyStoreArray("Tracks")
21  TRGGRLT3DUnpackerStores = ROOT.Belle2.PyStoreArray("TRGCDCT3DUnpackerStores")
22 
23  isTwoTrack = False
24  if len(Tracks) == 2:
25  isTwoTrack = True
26 
27  areTracksClean = True
28  for track in Tracks:
29  trackResult = track.getTrackFitResultWithClosestMass(ROOT.Belle2.Const.pion)
30  if trackResult.getPValue() > 0.1:
31  areTracksClean = False
32 
33  enoughHits = True
34  for track in Tracks:
35  trackResult = track.getTrackFitResultWithClosestMass(ROOT.Belle2.Const.pion)
36  nHitStSl = 0
37  nHitAxSl = 0
38  for iAx in range(5):
39  if (trackResult.getHitPatternCDC().getSLayerNHits(2 * iAx) > 3):
40  nHitAxSl += 1
41  for iSt in range(4):
42  if (trackResult.getHitPatternCDC().getSLayerNHits(2 * iSt + 1) > 3):
43  nHitStSl += 1
44  if nHitStSl < 3:
45  enoughHits = False
46  if nHitAxSl < 4:
47  enoughHits = False
48 
49  is2D = False
50  for iClk, data in enumerate(TRGGRLT3DUnpackerStores):
51  if (data.m_t2d_fnf != 0):
52  is2D = True
53 
54  self.return_value(isTwoTrack and is2D and areTracksClean and enoughHits)
55 
56 

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