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

Public Member Functions

def __init__ (self, output_file_name)
 
def peel (self, mc_track)
 

Public Attributes

 mc_track_matcher_cdc
 matcher used for the MCTracks from the CDC
 
 mc_track_matcher_vxd
 matcher used for the MCTracks from the VXD
 
 mc_track_matcher
 matcher used for the MCTracks from both
 
 fitted_mc_track_matcher
 matcher used for the MCTracks from fitted tracks
 

Static Public Attributes

refiners save_tree = refiners.SaveTreeRefiner()
 Refiners to be executed at the end of the harvesting / termination of the module Store as a table in a ROOT file.
 

Detailed Description

Harvester module to extract the information, if a MCTrack was found by the CDC
and/or the VXD tracking reconstruction.

Definition at line 31 of file fullTrackingTableValidationCreateData.py.

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
  output_file_name 
)
Init harvester

Reimplemented from HarvestingModule.

Definition at line 37 of file fullTrackingTableValidationCreateData.py.

37 def __init__(self, output_file_name):
38 """
39 Init harvester
40 """
41 HarvestingModule.__init__(self, foreach="MCRecoTracks", output_file_name=output_file_name)
42
43
44 self.mc_track_matcher_cdc = Belle2.TrackMatchLookUp("MCRecoTracks", "CDCRecoTracks")
45
46 self.mc_track_matcher_vxd = Belle2.TrackMatchLookUp("MCRecoTracks", "SVDRecoTracks")
47
48 self.mc_track_matcher = Belle2.TrackMatchLookUp("MCRecoTracks", "RecoTracks")
49
50 self.fitted_mc_track_matcher = Belle2.TrackMatchLookUp("MCRecoTracks", "FittedRecoTracks")
51
Class to provide convenient methods to look up matching information between pattern recognition and M...

Member Function Documentation

◆ peel()

def peel (   self,
  mc_track 
)
Extract the information.

Reimplemented from HarvestingModule.

Definition at line 52 of file fullTrackingTableValidationCreateData.py.

52 def peel(self, mc_track):
53 """
54 Extract the information.
55 """
56 this_best_track_cdc = self.mc_track_matcher_cdc.getAnyChargeMatchedPRRecoTrack(mc_track)
57 this_best_track_vxd = self.mc_track_matcher_vxd.getAnyChargeMatchedPRRecoTrack(mc_track)
58 # reco_track = self.mc_track_matcher.getAnyChargeMatchedPRRecoTrack(mc_track)
59
60 mc_particle = mc_track.getRelated("MCParticles")
61
62 return_dict = {
63 "vxd_was_found": bool(this_best_track_vxd),
64 "cdc_was_found": bool(this_best_track_cdc),
65 "cdc_has_related": False,
66 "vxd_has_related": False,
67 "both_related": False,
68 }
69
70 if this_best_track_vxd and this_best_track_cdc:
71 return_dict["both_related"] = this_best_track_cdc.getRelated("VXDRecoTracks") == this_best_track_vxd
72
73 if this_best_track_vxd:
74 return_dict["vxd_has_related"] = bool(this_best_track_vxd.getRelated("CDCRecoTracks"))
75 if this_best_track_cdc:
76 return_dict["cdc_has_related"] = bool(this_best_track_cdc.getRelated("VXDRecoTracks"))
77
78 return_dict.update(peel_reco_track_hit_content(mc_track))
79 return_dict.update(peel_mc_particle(mc_particle))
80
81 return_dict.update(dict(
82 is_matched=self.mc_track_matcher.isAnyChargeMatchedMCRecoTrack(mc_track),
83 is_merged=self.mc_track_matcher.isAnyChargeMergedMCRecoTrack(mc_track),
84 is_missing=self.mc_track_matcher.isMissingMCRecoTrack(mc_track),
85 hit_efficiency=self.mc_track_matcher.getRelatedEfficiency(mc_track),
86 ))
87
88 return_dict.update(dict(
89 fitted_is_matched=self.fitted_mc_track_matcher.isAnyChargeMatchedMCRecoTrack(mc_track),
90 fitted_is_merged=self.fitted_mc_track_matcher.isAnyChargeMergedMCRecoTrack(mc_track),
91 fitted_is_missing=self.fitted_mc_track_matcher.isMissingMCRecoTrack(mc_track),
92 fitted_hit_efficiency=self.fitted_mc_track_matcher.getRelatedEfficiency(mc_track),
93 ))
94
95 return return_dict
96

Member Data Documentation

◆ fitted_mc_track_matcher

fitted_mc_track_matcher

matcher used for the MCTracks from fitted tracks

Definition at line 50 of file fullTrackingTableValidationCreateData.py.

◆ mc_track_matcher

mc_track_matcher

matcher used for the MCTracks from both

Definition at line 48 of file fullTrackingTableValidationCreateData.py.

◆ mc_track_matcher_cdc

mc_track_matcher_cdc

matcher used for the MCTracks from the CDC

Definition at line 44 of file fullTrackingTableValidationCreateData.py.

◆ mc_track_matcher_vxd

mc_track_matcher_vxd

matcher used for the MCTracks from the VXD

Definition at line 46 of file fullTrackingTableValidationCreateData.py.

◆ save_tree

refiners save_tree = refiners.SaveTreeRefiner()
static

Refiners to be executed at the end of the harvesting / termination of the module Store as a table in a ROOT file.

Definition at line 99 of file fullTrackingTableValidationCreateData.py.


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