97 def peel(self, cluster):
98 """Extract and store CDC hit and cluster information"""
100 mc_hit_lookup = self.mc_hit_lookup
102 self.cluster_varset.extract(cluster)
103 cluster_crops = self.cluster_varset.getNamedValues()
104 cluster_crops = dict(cluster_crops)
108 for wireHit in list(cluster.items()):
109 cdcHit = wireHit.getHit()
110 if mc_hit_lookup.isBackground(cdcHit):
114 n_background_truth=n_background,
115 background_fraction_truth=1.0 * n_background / cluster.size()
118 cluster_crops.update(truth_dict)