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

Public Member Functions

 initialize (self)
 
 event (self)
 
 hastrginfo (self)
 
 neurotrack_allgoodquality (self)
 

Public Attributes

 tracksegmentsname = hwneuroinputsegmenthits,
 
 twodtracksname = hwneuroinput2dfindertracks,
 
 neurotracksname = hwneurotracks,
 
str recotracksname = "RecoTracks"
 
 nullpath = basf2.create_path()
 

Detailed Description

Definition at line 64 of file neurotrigger.py.

Member Function Documentation

◆ event()

event ( self)

Definition at line 72 of file neurotrigger.py.

72 def event(self):
73 self.return_value(bool(self.neurotrack_allgoodquality()))
74 self.if_false(self.nullpath)
75

◆ hastrginfo()

hastrginfo ( self)

Definition at line 76 of file neurotrigger.py.

76 def hastrginfo(self):
77 from ROOT import Belle2 # noqa
78 return bool(Belle2.PyStoreArray(self.twodtracksname).getEntries() > 0)
79
A (simplified) python wrapper for StoreArray.

◆ initialize()

initialize ( self)

Definition at line 65 of file neurotrigger.py.

65 def initialize(self):
66 self.tracksegmentsname = hwneuroinputsegmenthits,
67 self.twodtracksname = hwneuroinput2dfindertracks,
68 self.neurotracksname = hwneurotracks,
69 self.recotracksname = "RecoTracks"
70 self.nullpath = basf2.create_path()
71

◆ neurotrack_allgoodquality()

neurotrack_allgoodquality ( self)

Definition at line 80 of file neurotrigger.py.

80 def neurotrack_allgoodquality(self):
81 from ROOT import Belle2 # noqa
82 isgoodquality = True
83 for tr in Belle2.PyStoreArray("CDCTriggerNeuroTracks"):
84 if tr.getQualityVector() > 0:
85 isgoodquality = False
86 break
87 return isgoodquality
88
89

Member Data Documentation

◆ neurotracksname

neurotracksname = hwneurotracks,

Definition at line 68 of file neurotrigger.py.

◆ nullpath

nullpath = basf2.create_path()

Definition at line 70 of file neurotrigger.py.

◆ recotracksname

str recotracksname = "RecoTracks"

Definition at line 69 of file neurotrigger.py.

◆ tracksegmentsname

tracksegmentsname = hwneuroinputsegmenthits,

Definition at line 66 of file neurotrigger.py.

◆ twodtracksname

twodtracksname = hwneuroinput2dfindertracks,

Definition at line 67 of file neurotrigger.py.


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