![]() |
Belle II Software prerelease-10-00-00a
|
Public Member Functions | |
__init__ (self, name, contact, output_file_name=None, reco_tracks_name='RecoTracks', mc_reco_tracks_name='MCRecoTracks', expert_level=None) | |
initialize (self) | |
prepare (self) | |
pick (self, mc_reco_track) | |
peel (self, mc_reco_track) | |
peel_mc_to_pr_match_info (self, mc_reco_track) | |
peel_hit_efficiencies_in_all_pr_tracks (self, mc_reco_track) | |
id (self) | |
event (self) | |
terminate (self) | |
barn (self) | |
gather (self) | |
refine (self, crops) | |
Static Public Member Functions | |
create_crop_part_collection () | |
iter_store_obj (store_obj) | |
Public Attributes | |
reco_tracks_name = reco_tracks_name | |
Name of the StoreArray of the tracks from pattern recognition. | |
mc_reco_tracks_name = mc_reco_tracks_name | |
Name of the StoreArray of the ideal mc tracks. | |
track_match_look_up = None | |
Reference to the track match lookup object reading the relation information constructed by the MCMatcherTracksModule. | |
found_det_hit_ids = set() | |
Set of all detector and hits ids contained in any pr track. | |
matched_det_hit_ids = set() | |
Set of all detector and hits ids contained in matched pr tracks. | |
clone_det_hit_ids = set() | |
Set of all detector and hits ids contained in clone pr tracks. | |
fake_det_hit_ids = set() | |
Set of all detector and hits ids contained in background and ghost pr tracks. | |
foreach = foreach | |
Name of the StoreArray or iterable StoreObjPtr that contains the objects to be harvested. | |
output_file_name = output_file_name | |
Name of the ROOT output file to be generated. | |
title = title or self.name() | |
Name of this harvest. | |
contact = contact | |
Contact email address to be displayed on the validation page. | |
int | expert_level = self.default_expert_level if expert_level is None else expert_level |
Integer expert level that controls to detail of plots to be generated. | |
list | refiners = [] |
A list of additional refiner instances to be executed on top of the refiner methods that are members of this class. | |
show_results = show_results | |
Switch to show the result ROOT file in a TBrowser on terminate. | |
stash = self.barn() | |
stash of the harvested crops (start with those in the barn) | |
crops | |
the dictionaries from peel | |
raw_crops = raw_crops | |
the dictionaries from peel as a numpy.array of doubles | |
Static Public Attributes | |
save_tree | |
Save a tree of all collected variables in a sub folder. | |
save_tree_basic | |
Save a basic tree. | |
save_overview_figures_of_merit | |
Generate the average finding efficiencies and hit efficiencies. | |
save_hit_efficiency_histogram | |
Save a histogram of the hit efficiency. | |
dict | renaming_select_for_finding_efficiency_profiles |
Rename the efficiency-profile quantities so that they display nicely in ROOT TLatex. | |
save_finding_efficiency_profiles | |
Make profile of finding efficiency. | |
save_finding_efficiency_by_tan_lamba_profiles | |
Make profile of finding efficiency versus tan(lambda) | |
save_finding_efficiency_by_tan_lamba_in_pt_groups_profiles | |
Make profiles of finding efficiency versus tan(lambda) grouped by transverse momentum. | |
dict | renaming_select_for_hit_efficiency_profiles |
Rename the hit-profile quantities so that they display nicely in ROOT TLatex. | |
save_hit_efficiency_profiles | |
Make profile of hit efficiency. | |
save_hit_efficiency_by_tan_lambda_profiles | |
Make profile of finding efficiency versus tan(lambda) | |
save_finding_efficiency_by_pt_profiles_groupbyCharge | |
Charge dependent histograms Make profile of finding efficiency versus pt, tan(lambda) | |
save_finding_efficiency_by_tan_lambda_profiles_groupbyCharge | |
Charge dependent histograms Make profile of finding efficiency versus pt, tan(lambda) | |
save_hit_efficiency_by_pt_profiles_groupbyCharge | |
Charge dependent histograms Make profile of finding efficiency versus pt, tan(lambda) | |
save_hit_efficiency_by_tan_lambda_profiles_groupbyCharge | |
Charge dependent histograms Make profile of finding efficiency versus pt, tan(lambda) | |
save_hit_efficiency_in_all_found_hist | |
This creates a histogram for all MC track displaying the ratio of hits contained in any PR track Hence this is distinctly larger than the hit efficiency to the matched PR track Usefulness under discussion. | |
save_missing_mc_tracks_hit_efficiency_in_all_found_hist | |
This creates a histogram for each missing MC track displaying the ratio of hits contained in any PR tracks High values in this hit efficiencies means that the MC track is consumed by other PR tracks but no proper match could be established. | |
int | default_expert_level = 1 |
The default value of expert_level if not specified explicitly by the caller. | |
Module to collect matching information about the found particles and to generate validation plots and figures of merit on the performance of track finding.
Expert level behavior: expert_level = default_expert_level: all figures and plots from this module except tree entries expert_level > default_expert_level: everything including tree entries expert_level <= default_expert_level//2: only basic figures default_expert_level//2 < expert_level < default_expert_level: basic figures and basic tree entries
Definition at line 22 of file mc_side_module.py.
__init__ | ( | self, | |
name, | |||
contact, | |||
output_file_name = None, | |||
reco_tracks_name = 'RecoTracks', | |||
mc_reco_tracks_name = 'MCRecoTracks', | |||
expert_level = None ) |
Constructor
Definition at line 35 of file mc_side_module.py.
|
inherited |
Coroutine that receives the dictionaries of names and values from peel and store them.
Reimplemented in PickleHarvestingModule.
Definition at line 287 of file harvesting.py.
|
staticinherited |
Create the storing objects for the crop values Currently a numpy.array of doubles is used to store all values in memory.
Definition at line 279 of file harvesting.py.
|
inherited |
Event method of the module * Does invoke the prepare method before the iteration starts. * In each event fetch the StoreArray / iterable StoreObjPtr, * Iterate through all instances * Feed each instance to the pick method to decide it the instance is relevant * Forward it to the peel method that should generated a dictionary of values * Store each dictionary of values
Definition at line 239 of file harvesting.py.
|
inherited |
Iterator that yield the instances form the StoreArray / iterable StoreObj. Yields ------ Object instances from the StoreArray, iterable StoreObj or the StoreObj itself in case it is not iterable.
Definition at line 329 of file harvesting.py.
|
inherited |
Working around that name() is a method. Exposing the name as a property using a different name
Definition at line 224 of file harvesting.py.
initialize | ( | self | ) |
Initialization signal at the start of the event processing
Reimplemented from HarvestingModule.
Definition at line 75 of file mc_side_module.py.
|
staticinherited |
Obtain a iterator from a StoreObj Repeatedly calls iter(store_obj) or store_obj.__iter__() until the final iterator returns itself Returns ------- iterator of the StoreObj
Definition at line 443 of file harvesting.py.
peel | ( | self, | |
mc_reco_track ) |
Looks at the individual Monte Carlo tracks and store information about them
Reimplemented from HarvestingModule.
Definition at line 119 of file mc_side_module.py.
peel_hit_efficiencies_in_all_pr_tracks | ( | self, | |
mc_reco_track ) |
Extracts hit efficiencies
Definition at line 195 of file mc_side_module.py.
peel_mc_to_pr_match_info | ( | self, | |
mc_reco_track ) |
Extracts track-match information from the MCMatcherTracksModule results
Definition at line 181 of file mc_side_module.py.
pick | ( | self, | |
mc_reco_track ) |
Pick every MCRecoTrack
Reimplemented from HarvestingModule.
Definition at line 115 of file mc_side_module.py.
prepare | ( | self | ) |
Collect some statistics about the pattern recognition tracks used for comparison to the MC tracks Executed once at the start of each event.
Reimplemented from HarvestingModule.
Definition at line 80 of file mc_side_module.py.
|
inherited |
Receive the gathered crops and forward them to the refiners.
Reimplemented in PickleHarvestingModule.
Definition at line 398 of file harvesting.py.
|
inherited |
Termination method of the module. Finalize the collected crops. Start the refinement.
Reimplemented in ClusterFilterValidationModule.
Definition at line 263 of file harvesting.py.
clone_det_hit_ids = set() |
Set of all detector and hits ids contained in clone pr tracks.
Updated each event.
Definition at line 70 of file mc_side_module.py.
|
inherited |
Contact email address to be displayed on the validation page.
Definition at line 211 of file harvesting.py.
|
inherited |
the dictionaries from peel
Definition at line 274 of file harvesting.py.
|
staticinherited |
The default value of expert_level if not specified explicitly by the caller.
Definition at line 156 of file harvesting.py.
|
inherited |
Integer expert level that controls to detail of plots to be generated.
Definition at line 214 of file harvesting.py.
fake_det_hit_ids = set() |
Set of all detector and hits ids contained in background and ghost pr tracks.
Updated each event.
Definition at line 73 of file mc_side_module.py.
|
inherited |
Name of the StoreArray or iterable StoreObjPtr that contains the objects to be harvested.
Definition at line 196 of file harvesting.py.
found_det_hit_ids = set() |
Set of all detector and hits ids contained in any pr track.
Updated each event.
Definition at line 64 of file mc_side_module.py.
matched_det_hit_ids = set() |
Set of all detector and hits ids contained in matched pr tracks.
Updated each event.
Definition at line 67 of file mc_side_module.py.
mc_reco_tracks_name = mc_reco_tracks_name |
Name of the StoreArray of the ideal mc tracks.
Definition at line 57 of file mc_side_module.py.
|
inherited |
Name of the ROOT output file to be generated.
Definition at line 199 of file harvesting.py.
|
inherited |
the dictionaries from peel as a numpy.array of doubles
Definition at line 325 of file harvesting.py.
reco_tracks_name = reco_tracks_name |
Name of the StoreArray of the tracks from pattern recognition.
Definition at line 54 of file mc_side_module.py.
|
inherited |
A list of additional refiner instances to be executed on top of the refiner methods that are members of this class.
Definition at line 218 of file harvesting.py.
|
static |
Rename the efficiency-profile quantities so that they display nicely in ROOT TLatex.
Definition at line 272 of file mc_side_module.py.
|
static |
Rename the hit-profile quantities so that they display nicely in ROOT TLatex.
Definition at line 330 of file mc_side_module.py.
|
static |
Charge dependent histograms Make profile of finding efficiency versus pt, tan(lambda)
Definition at line 370 of file mc_side_module.py.
|
static |
Make profiles of finding efficiency versus tan(lambda) grouped by transverse momentum.
Definition at line 311 of file mc_side_module.py.
|
static |
Make profile of finding efficiency versus tan(lambda)
Definition at line 294 of file mc_side_module.py.
|
static |
Charge dependent histograms Make profile of finding efficiency versus pt, tan(lambda)
Definition at line 388 of file mc_side_module.py.
|
static |
Make profile of finding efficiency.
Definition at line 281 of file mc_side_module.py.
|
static |
Charge dependent histograms Make profile of finding efficiency versus pt, tan(lambda)
Definition at line 407 of file mc_side_module.py.
|
static |
Make profile of finding efficiency versus tan(lambda)
Definition at line 352 of file mc_side_module.py.
|
static |
Charge dependent histograms Make profile of finding efficiency versus pt, tan(lambda)
Definition at line 425 of file mc_side_module.py.
|
static |
Save a histogram of the hit efficiency.
Definition at line 262 of file mc_side_module.py.
|
static |
This creates a histogram for all MC track displaying the ratio of hits contained in any PR track Hence this is distinctly larger than the hit efficiency to the matched PR track Usefulness under discussion.
Definition at line 445 of file mc_side_module.py.
|
static |
Make profile of hit efficiency.
Definition at line 339 of file mc_side_module.py.
|
static |
This creates a histogram for each missing MC track displaying the ratio of hits contained in any PR tracks High values in this hit efficiencies means that the MC track is consumed by other PR tracks but no proper match could be established.
Definition at line 456 of file mc_side_module.py.
|
static |
Generate the average finding efficiencies and hit efficiencies.
Definition at line 243 of file mc_side_module.py.
|
static |
Save a tree of all collected variables in a sub folder.
Definition at line 222 of file mc_side_module.py.
|
static |
Save a basic tree.
Definition at line 232 of file mc_side_module.py.
|
inherited |
Switch to show the result ROOT file in a TBrowser on terminate.
Definition at line 221 of file harvesting.py.
|
inherited |
stash of the harvested crops (start with those in the barn)
Definition at line 237 of file harvesting.py.
|
inherited |
track_match_look_up = None |
Reference to the track match lookup object reading the relation information constructed by the MCMatcherTracksModule.
Definition at line 60 of file mc_side_module.py.