Belle II Software development
VxdCdcMergerHarvesterPRSide Class Reference
Inheritance diagram for VxdCdcMergerHarvesterPRSide:
HarvestingModule

Public Member Functions

def __init__ (self, foreach, others, output_file_name)
 
def peel (self, pr_track)
 

Public Attributes

 others
 cached copy of the 'others' argument
 
 mc_track_matcher
 function to find the MCRecoTrack related to a reconstructed track
 
 mc_track_matcher_other
 function to find the MCRecoTrack related to an other-tracks entry
 

Static Public Attributes

refiners save_tree = refiners.SaveTreeRefiner()
 Save the results dictionary to the output ROOT file.
 

Detailed Description

Gather the reconstructed VXD-CDC-merger results into ROOT file

Definition at line 191 of file validation.py.

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
  foreach,
  others,
  output_file_name 
)
Init harvester
Arguments:
    others (str): name of other-tracks collection related to the reconstructed tracks
    output_file_name (str): name of the output ROOT file

Reimplemented from HarvestingModule.

Definition at line 194 of file validation.py.

194 def __init__(self, foreach, others, output_file_name):
195 """
196 Init harvester
197 Arguments:
198 others (str): name of other-tracks collection related to the reconstructed tracks
199 output_file_name (str): name of the output ROOT file
200 """
201 super().__init__(foreach, output_file_name)
202
203
204 self.others = others
205
206
207 self.mc_track_matcher = Belle2.TrackMatchLookUp("MCRecoTracks", foreach)
208
209 self.mc_track_matcher_other = Belle2.TrackMatchLookUp("MCRecoTracks", others)
210
Class to provide convenient methods to look up matching information between pattern recognition and M...

Member Function Documentation

◆ peel()

def peel (   self,
  pr_track 
)
Collect information related to the reconstructed track into a dictionary

Reimplemented from HarvestingModule.

Definition at line 211 of file validation.py.

211 def peel(self, pr_track):
212 """Collect information related to the reconstructed track into a dictionary"""
213 event_info = Belle2.PyStoreObj("EventMetaData")
214
215 result = peelers.peel_reco_track_hit_content(pr_track)
216 result.update(peelers.peel_reco_track_seed(pr_track))
217 result.update(peelers.peel_event_info(event_info))
218
219 result["store_array_number"] = pr_track.getArrayIndex()
220
221 mc_track = self.mc_track_matcher.getAnyChargeMatchedMCRecoTrack(pr_track)
222
223 if mc_track:
224 result["mc_store_array_number"] = mc_track.getArrayIndex()
225 else:
226 result["mc_store_array_number"] = -1
227
228 result.update(peel_matching_information((pr_track, self.mc_track_matcher)))
229
230 matched_track = pr_track.getRelated(self.others)
231
232 result.update(peel_matching_information((matched_track, self.mc_track_matcher_other), key="other_{part_name}"))
233
234 if matched_track:
235 result["matched_store_array_number"] = matched_track.getArrayIndex()
236 else:
237 result["matched_store_array_number"] = -1
238
239 result["number_of_matches"] = pr_track.getRelationsWith(self.others).size()
240
241 return result
242
a (simplified) python wrapper for StoreObjPtr.
Definition: PyStoreObj.h:67

Member Data Documentation

◆ mc_track_matcher

mc_track_matcher

function to find the MCRecoTrack related to a reconstructed track

Definition at line 207 of file validation.py.

◆ mc_track_matcher_other

mc_track_matcher_other

function to find the MCRecoTrack related to an other-tracks entry

Definition at line 209 of file validation.py.

◆ others

others

cached copy of the 'others' argument

Definition at line 204 of file validation.py.

◆ save_tree

refiners save_tree = refiners.SaveTreeRefiner()
static

Save the results dictionary to the output ROOT file.

Definition at line 244 of file validation.py.


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