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

Public Member Functions

def event (self)
 

Detailed Description

check the 2D skim with Tracks StoreArray

Definition at line 23 of file trgcdct3dUnpackerConverter.py.

Member Function Documentation

◆ event()

def event (   self)
event function of the is2DSkim class

Definition at line 26 of file trgcdct3dUnpackerConverter.py.

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

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