Belle II Software  release-05-01-25
tracking.harvest.peelers Namespace Reference

Functions

def format_crop_keys (peel_func)
 create a formatted-key dictionary from specified peeler
 
def peel_mc_particle (mc_particle, key="{part_name}")
 create a dictionary from MCParticle information
 
def peel_reco_track_hit_content (reco_track, key="{part_name}")
 create a dictionary from RecoTrack's hit content
 
def peel_reco_track_seed (reco_track, key="{part_name}")
 create a dictionary from RecoTrack's seed
 
def peel_event_info (event_meta_data, key="{part_name}")
 create a dictionary from EventMetaData
 
def peel_store_array_info (item, key="{part_name}")
 create a dictionary from a StoreArray
 
def peel_store_array_size (array_name, key="{part_name}")
 create a dictionary from the size of a StoreArray
 
def peel_event_level_tracking_info (event_level_tracking_info, key="{part_name}")
 create a dictionary from the event-level Track info
 
def peel_quality_indicators (reco_track, key="{part_name}")
 create a dictionary from RecoTrack's and its related SPTrackCand's quality indicator
 
def peel_trackfinder (reco_track, key="{part_name}")
 create a dictionary that shows used trackfinders
 
def peel_fit_status (reco_track, key="{part_name}")
 create a dictionary from RecoTrack fit status
 
def peel_track_fit_result (track_fit_result, key="{part_name}")
 create a dictionary from the TrackFit information
 
def get_reco_hit_information (reco_track, hit)
 create a dictionary from RecoTrack's hit information More...
 
def peel_subdetector_hit_efficiency (mc_reco_track, reco_track, key="{part_name}")
 Custom peel function to get the sub detector hit efficiencies.
 
def peel_subdetector_hit_purity (reco_track, mc_reco_track, key="{part_name}")
 Custom peel function to get the sub detector hit purity.
 
def peel_hit_information (hit_info, reco_track, key="{part_name}")
 Get hit level information information.
 
def peel_module_statistics (modules=[], key="{part_name}")
 Peeler for module statistics.
 
def get_helix_from_mc_particle (mc_particle)
 create a dictionary for MCParticle information
 
def get_seed_track_fit_result (reco_track)
 create a dictionary for RecoTrack's seed values
 
def is_correct_rl_information (cdc_hit, reco_track, hit_lookup)
 create a dictionary for RecoTrack CDCHit's right-left information
 

Variables

 formatter = TolerateMissingKeyFormatter()
 string formatter that handles missing keys gracefully
 

Detailed Description

A set of common purose translators from complex framework objects to flat dictionaries

Function Documentation

◆ get_reco_hit_information()

def tracking.harvest.peelers.get_reco_hit_information (   reco_track,
  hit 
)

create a dictionary from RecoTrack's hit information

Helper function for getting the correct reco hit info

Definition at line 489 of file peelers.py.

489 def get_reco_hit_information(reco_track, hit):
490  """Helper function for getting the correct reco hit info"""
491  for info in hit.getRelationsFrom("RecoHitInformations"):
492  if info.getRelatedFrom(reco_track.getArrayName()) == reco_track:
493  return info
494 
495