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

Public Member Functions

def initialize (self)
 
def event (self)
 
def terminate (self)
 

Public Attributes

 event_info
 EventMetaData.
 
 mc
 MCParticles.
 
 finder_trk2d
 TRGCDC2DFinderTracks.
 
 fast_finder_trk2d
 TRGCDC2DFinderFastTracks.
 
 trk2d
 TRGCDC2DFitterTracks.
 
 fast_trk2d
 TRGCDC2DFitterFastTracks.
 
 trk3d
 TRGCDC3DFitterTracks.
 
 fast_trk3d
 TRGCDC3DFitterFastTracks.
 
 trknt
 TRGCDCNeuroTracks.
 
 fast_trknt
 TRGCDCNeuroFastTracks.
 
 n2d_finder
 number of TRGCDC2DFinderTracks
 
 n2d_fast_finder
 number of TRGCDC2DFinderFastTracks
 
 n2d_fitter
 number of TRGCDC2DFitterTracks
 
 n2d_fast_fitter
 number of TRGCDC2DFitterFastTracks
 
 n3d_fitter
 number of TRGCDC3DFitterTracks
 
 n3d_fast_fitter
 number of TRGCDC3DFitterFastTracks
 
 n3d_neuro
 number of TRGCDCNeuroTracks
 
 n3d_fast_neuro
 number of TRGCDCNeuroFastTracks
 

Static Public Attributes

 outputFileName
 

Detailed Description

analyze the difference between 2D with and without clone suppression

Definition at line 145 of file z0_with_clone_suppression.py.

Member Function Documentation

◆ event()

def event (   self)
event function of Ana

Definition at line 188 of file z0_with_clone_suppression.py.

188 def event(self):
189 """event function of Ana"""
190 self.n2d_finder += any(self.finder_trk2d)
191 self.n2d_fitter += any(self.trk2d)
192 self.n3d_fitter += any(self.trk3d)
193 self.n3d_neuro += any(self.trknt)
194 self.n2d_fast_finder += any(self.fast_finder_trk2d)
195 self.n2d_fast_fitter += any(self.fast_trk2d)
196 self.n3d_fast_fitter += any(self.fast_trk3d)
197 self.n3d_fast_neuro += any(self.fast_trknt)
198
199 if len(self.trk2d) == 0 or len(self.fast_trk2d) == 0:
200 return
201 ts_hits = self.trk2d[0].getRelationsTo('CDCTriggerSegmentHits')
202 b2.B2DEBUG(10, f'TS size: {ts_hits.size()}')
203 fast_ts_hits = self.fast_trk2d[0].getRelationsTo('CDCTriggerSegmentHits')
204 b2.B2DEBUG(10, f'fast TS size: {fast_ts_hits.size()}')
205

◆ initialize()

def initialize (   self)
Initilization of Ana

Definition at line 148 of file z0_with_clone_suppression.py.

148 def initialize(self):
149 """Initilization of Ana"""
150
151 self.event_info = Belle2.PyStoreObj('EventMetaData')
152
153 self.mc = Belle2.PyStoreArray('MCParticles')
154
155 self.finder_trk2d = Belle2.PyStoreArray('TRGCDC2DFinderTracks')
156
157 self.fast_finder_trk2d = Belle2.PyStoreArray('TRGCDC2DFinderFastTracks')
158
159 self.trk2d = Belle2.PyStoreArray('TRGCDC2DFitterTracks')
160
161 self.fast_trk2d = Belle2.PyStoreArray('TRGCDC2DFitterFastTracks')
162
163 self.trk3d = Belle2.PyStoreArray('TRGCDC3DFitterTracks')
164
165 self.fast_trk3d = Belle2.PyStoreArray('TRGCDC3DFitterFastTracks')
166
167 self.trknt = Belle2.PyStoreArray('TRGCDCNeuroTracks')
168
169 self.fast_trknt = Belle2.PyStoreArray('TRGCDCNeuroFastTracks')
170
171
172 self.n2d_finder = 0
173
174 self.n2d_fast_finder = 0
175
176 self.n2d_fitter = 0
177
178 self.n2d_fast_fitter = 0
179
180 self.n3d_fitter = 0
181
182 self.n3d_fast_fitter = 0
183
184 self.n3d_neuro = 0
185
186 self.n3d_fast_neuro = 0
187
A (simplified) python wrapper for StoreArray.
Definition: PyStoreArray.h:72
a (simplified) python wrapper for StoreObjPtr.
Definition: PyStoreObj.h:67

◆ terminate()

def terminate (   self)
Terminate Ana

Definition at line 206 of file z0_with_clone_suppression.py.

206 def terminate(self):
207 """Terminate Ana"""
208 total = self.n2d_finder
209 fast_total = self.n2d_fast_finder
210 all_numbers = ','.join(['{}'] * 8)
211
212 b2.B2INFO(all_numbers.format(self.n2d_finder, self.n2d_fitter, self.n3d_fitter, self.n3d_neuro,
213 self.n2d_fast_finder, self.n2d_fast_fitter, self.n3d_fast_fitter, self.n3d_fast_neuro))
214
215 b2.B2INFO(f'2D fitter retention rate: {self.n2d_fitter / total:.2%} ' +
216 f'(original)/ {self.n2d_fast_fitter / fast_total:.2%} (fast)')
217 b2.B2INFO(f'3D fitter retention rate: {self.n3d_fitter / self.n2d_fitter:.2%} ' +
218 f'(original)/ {self.n3d_fast_fitter / self.n2d_fast_fitter:.2%} (fast)')
219 b2.B2INFO(f'3D neuro retention rate: {self.n3d_neuro / total:.2%} ' +
220 f'(original)/ {self.n3d_fast_neuro / fast_total:.2%} (fast)')
221
222

Member Data Documentation

◆ event_info

event_info

EventMetaData.

Definition at line 151 of file z0_with_clone_suppression.py.

◆ fast_finder_trk2d

fast_finder_trk2d

TRGCDC2DFinderFastTracks.

Definition at line 157 of file z0_with_clone_suppression.py.

◆ fast_trk2d

fast_trk2d

TRGCDC2DFitterFastTracks.

Definition at line 161 of file z0_with_clone_suppression.py.

◆ fast_trk3d

fast_trk3d

TRGCDC3DFitterFastTracks.

Definition at line 165 of file z0_with_clone_suppression.py.

◆ fast_trknt

fast_trknt

TRGCDCNeuroFastTracks.

Definition at line 169 of file z0_with_clone_suppression.py.

◆ finder_trk2d

finder_trk2d

TRGCDC2DFinderTracks.

Definition at line 155 of file z0_with_clone_suppression.py.

◆ mc

mc

MCParticles.

Definition at line 153 of file z0_with_clone_suppression.py.

◆ n2d_fast_finder

n2d_fast_finder

number of TRGCDC2DFinderFastTracks

Definition at line 174 of file z0_with_clone_suppression.py.

◆ n2d_fast_fitter

n2d_fast_fitter

number of TRGCDC2DFitterFastTracks

Definition at line 178 of file z0_with_clone_suppression.py.

◆ n2d_finder

n2d_finder

number of TRGCDC2DFinderTracks

Definition at line 172 of file z0_with_clone_suppression.py.

◆ n2d_fitter

n2d_fitter

number of TRGCDC2DFitterTracks

Definition at line 176 of file z0_with_clone_suppression.py.

◆ n3d_fast_fitter

n3d_fast_fitter

number of TRGCDC3DFitterFastTracks

Definition at line 182 of file z0_with_clone_suppression.py.

◆ n3d_fast_neuro

n3d_fast_neuro

number of TRGCDCNeuroFastTracks

Definition at line 186 of file z0_with_clone_suppression.py.

◆ n3d_fitter

n3d_fitter

number of TRGCDC3DFitterTracks

Definition at line 180 of file z0_with_clone_suppression.py.

◆ n3d_neuro

n3d_neuro

number of TRGCDCNeuroTracks

Definition at line 184 of file z0_with_clone_suppression.py.

◆ outputFileName

outputFileName
static

Definition at line 224 of file z0_with_clone_suppression.py.

◆ trk2d

trk2d

TRGCDC2DFitterTracks.

Definition at line 159 of file z0_with_clone_suppression.py.

◆ trk3d

trk3d

TRGCDC3DFitterTracks.

Definition at line 163 of file z0_with_clone_suppression.py.

◆ trknt

trknt

TRGCDCNeuroTracks.

Definition at line 167 of file z0_with_clone_suppression.py.


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