![]() |
Belle II Software development
|
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, reco_track) | |
| peel (self, reco_track) | |
| peel_pr_to_mc_match_info (self, 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. | |
| list | mc_reco_tracks_det_hit_ids = [] |
| Cache for the hit content of the Monte Carlo tracks - updated each event. | |
| mc_hit_lookup = Belle2.TrackFindingCDC.CDCMCHitLookUp.getInstance() | |
| Cache for the MC hit lookup. | |
| 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_clone_rate | |
| Save RecoTrack clone-rate information. | |
| save_clone_rate_by_seed_tan_lambda_profile | |
| Make profile of the clone rate versus seed tan(lambda) Rename the quantities to names that display nicely by root latex translation. | |
| save_clone_rate_by_seed_phi0_profile | |
| Make profile of the clone rate versus seed phi0 Rename the quantities to names that display nicely by root latex translation. | |
| save_clone_rate_by_seed_pt_profile | |
| Make profile of the clone rate versus seed transverse momentum Rename the quantities to names that display nicely by root latex translation. | |
| save_clone_rate_by_seed_pt_profile_groupbyCharge | |
| Charge dependent histograms Make profile of the clone rate versus seed transverse momentum. | |
| save_clone_rate_by_seed_tan_lambda_profile_groupbyCharge | |
| Charge dependent histograms Make profile of the clone rate versus seed tan(lambda) | |
| save_fake_rate | |
| Save RecoTrack fake-rate information. | |
| save_fake_rate_by_seed_phi0_profile | |
| Make profile of the fake rate versus seed phi0 Rename the quantities to names that display nicely by root latex translation. | |
| save_fake_rate_by_seed_tan_lambda_profile | |
| Make profile of the fake rate versus seed tan(lambda) Rename the quantities to names that display nicely by root latex translation. | |
| save_fake_rate_by_seed_pt_profile | |
| Make profile of the fake rate versus seed transverse momentum Rename the quantities to names that display nicely by root latex translation. | |
| save_fake_rate_by_seed_tan_lambda_profile_groupbyCharge | |
| Charge dependent histograms Make profile of the fake rate versus seed tan(lambda) | |
| save_fake_rate_by_seed_pt_profile_groupbyCharge | |
| Charge dependent histograms Make profile of the fake rate versus seed transverse momentum. | |
| save_hit_counts_by_pt_profile | |
| Hit counts in each sub detector by the true pt value. | |
| save_hit_efficiency_by_pt_profile | |
| Hit efficiency in each sub detector by the true pt value. | |
| save_hit_purity_by_pt_profile | |
| Hit purity in each sub detector by the true pt value. | |
| save_hit_counts_by_tanlambda_profile | |
| Hit counts in each sub detector by the true tanlambda value. | |
| save_hit_efficiency_by_tanlambda_profile | |
| Hit efficiency in each sub detector by the true tanlambda value. | |
| save_hit_purity_by_tanlambda_profile | |
| Hit purity in each sub detector by the true tanlambda value. | |
| save_hit_counts_by_pt_profile_groupbyCharge | |
| Charge dependent histograms Hit counts in each sub detector by the true pt value. | |
| save_hit_counts_by_tanlambda_profile_groupbyCharge | |
| Charge dependent histograms Hit counts in each sub detector by the true tan lambda value. | |
| save_hit_efficiency_by_pt_profile_groupbyCharge | |
| Charge dependent histograms Hit efficiency in each sub detector by the true pt value. | |
| save_hit_efficiency_by_tanlambda_profile_groupbyCharge | |
| Charge dependent histograms Hit efficiency in each sub detector by the true tan lambda value. | |
| save_hit_efficiency | |
| Save simple FOM. | |
| save_pxd_hit_efficiency | |
| Save simple FOM. | |
| save_svd_hit_efficiency | |
| Save simple FOM. | |
| save_cdc_hit_efficiency | |
| Save simple FOM. | |
| save_hit_purity | |
| Save simple FOM. | |
| save_pxd_hit_purity | |
| Save simple FOM. | |
| save_svd_hit_purity | |
| Save simple FOM. | |
| save_cdc_hit_purity | |
| Save simple FOM. | |
| save_p_value_histogram | |
| Creates a distribution of p values from the Genfit track fit for match pr tracks. | |
| save_seed_omega_pull_analysis | |
| Pull of seed omega. | |
| save_seed_tan_lambda_pull_analysis | |
| Pull of seed tan(lambda) | |
| save_fitted_omega_pull_analysis | |
| Pull of fitted omega. | |
| save_fitted_tan_lambda_pull_analysis | |
| Pull of fitted tan(lambda) | |
| save_fitted_pt_pull_analysis | |
| Pull of fitted transverse momentum. | |
| save_fitted_x_pull_analysis | |
| Pull of fitted x coordinate grouped by true transverse momentum. | |
| save_fitted_y_pull_analysis | |
| Pull of fitted y coordinate grouped by true transverse momentum. | |
| save_fitted_z_pull_analysis | |
| Pull of fitted z coordinate grouped by true transverse momentum. | |
| save_resolutions_by_pt_profile | |
| Resolutions as a function of true p_t. | |
| 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
Definition at line 25 of file pr_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 36 of file pr_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 | ) |
Receive signal at the start of event processing
Reimplemented from HarvestingModule.
Definition at line 68 of file pr_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, | |
| reco_track ) |
Looks at the individual pattern recognition tracks and store information about them
Reimplemented from HarvestingModule.
Definition at line 92 of file pr_side_module.py.
| peel_pr_to_mc_match_info | ( | self, | |
| reco_track ) |
Extracts track-match information from the MCMatcherTracksModule results
Definition at line 163 of file pr_side_module.py.
| pick | ( | self, | |
| reco_track ) |
Method to filter the track candidates to reject part of them
Reimplemented from HarvestingModule.
Definition at line 88 of file pr_side_module.py.
| prepare | ( | self | ) |
Called once at the start of each event
Reimplemented from HarvestingModule.
Definition at line 74 of file pr_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.
|
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.
|
inherited |
Name of the StoreArray or iterable StoreObjPtr that contains the objects to be harvested.
Definition at line 196 of file harvesting.py.
| mc_hit_lookup = Belle2.TrackFindingCDC.CDCMCHitLookUp.getInstance() |
Cache for the MC hit lookup.
Definition at line 66 of file pr_side_module.py.
| list mc_reco_tracks_det_hit_ids = [] |
Cache for the hit content of the Monte Carlo tracks - updated each event.
Definition at line 63 of file pr_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 pr_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 pr_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 |
Save simple FOM.
Definition at line 674 of file pr_side_module.py.
|
static |
Save simple FOM.
Definition at line 726 of file pr_side_module.py.
|
static |
Save RecoTrack clone-rate information.
Definition at line 218 of file pr_side_module.py.
|
static |
Make profile of the clone rate versus seed phi0 Rename the quantities to names that display nicely by root latex translation.
Definition at line 251 of file pr_side_module.py.
|
static |
Make profile of the clone rate versus seed transverse momentum Rename the quantities to names that display nicely by root latex translation.
Definition at line 266 of file pr_side_module.py.
|
static |
Charge dependent histograms Make profile of the clone rate versus seed transverse momentum.
Definition at line 284 of file pr_side_module.py.
|
static |
Make profile of the clone rate versus seed tan(lambda) Rename the quantities to names that display nicely by root latex translation.
Definition at line 233 of file pr_side_module.py.
|
static |
Charge dependent histograms Make profile of the clone rate versus seed tan(lambda)
Definition at line 303 of file pr_side_module.py.
|
static |
Save RecoTrack fake-rate information.
Definition at line 321 of file pr_side_module.py.
|
static |
Make profile of the fake rate versus seed phi0 Rename the quantities to names that display nicely by root latex translation.
Definition at line 336 of file pr_side_module.py.
|
static |
Make profile of the fake rate versus seed transverse momentum Rename the quantities to names that display nicely by root latex translation.
Definition at line 366 of file pr_side_module.py.
|
static |
Charge dependent histograms Make profile of the fake rate versus seed transverse momentum.
Definition at line 400 of file pr_side_module.py.
|
static |
Make profile of the fake rate versus seed tan(lambda) Rename the quantities to names that display nicely by root latex translation.
Definition at line 350 of file pr_side_module.py.
|
static |
Charge dependent histograms Make profile of the fake rate versus seed tan(lambda)
Definition at line 382 of file pr_side_module.py.
|
static |
Pull of fitted omega.
Definition at line 776 of file pr_side_module.py.
|
static |
Pull of fitted transverse momentum.
Definition at line 797 of file pr_side_module.py.
|
static |
Pull of fitted tan(lambda)
Definition at line 787 of file pr_side_module.py.
|
static |
Pull of fitted x coordinate grouped by true transverse momentum.
Definition at line 807 of file pr_side_module.py.
|
static |
Pull of fitted y coordinate grouped by true transverse momentum.
Definition at line 818 of file pr_side_module.py.
|
static |
Pull of fitted z coordinate grouped by true transverse momentum.
Definition at line 829 of file pr_side_module.py.
|
static |
Hit counts in each sub detector by the true pt value.
Definition at line 417 of file pr_side_module.py.
|
static |
Charge dependent histograms Hit counts in each sub detector by the true pt value.
Definition at line 544 of file pr_side_module.py.
|
static |
Hit counts in each sub detector by the true tanlambda value.
Definition at line 480 of file pr_side_module.py.
|
static |
Charge dependent histograms Hit counts in each sub detector by the true tan lambda value.
Definition at line 567 of file pr_side_module.py.
|
static |
Save simple FOM.
Definition at line 635 of file pr_side_module.py.
|
static |
Hit efficiency in each sub detector by the true pt value.
Definition at line 438 of file pr_side_module.py.
|
static |
Charge dependent histograms Hit efficiency in each sub detector by the true pt value.
Definition at line 590 of file pr_side_module.py.
|
static |
Hit efficiency in each sub detector by the true tanlambda value.
Definition at line 501 of file pr_side_module.py.
|
static |
Charge dependent histograms Hit efficiency in each sub detector by the true tan lambda value.
Definition at line 613 of file pr_side_module.py.
|
static |
Save simple FOM.
Definition at line 687 of file pr_side_module.py.
|
static |
Hit purity in each sub detector by the true pt value.
Definition at line 459 of file pr_side_module.py.
|
static |
Hit purity in each sub detector by the true tanlambda value.
Definition at line 522 of file pr_side_module.py.
|
static |
Creates a distribution of p values from the Genfit track fit for match pr tracks.
Definition at line 739 of file pr_side_module.py.
|
static |
Save simple FOM.
Definition at line 648 of file pr_side_module.py.
|
static |
Save simple FOM.
Definition at line 700 of file pr_side_module.py.
|
static |
Resolutions as a function of true p_t.
Definition at line 840 of file pr_side_module.py.
|
static |
Pull of seed omega.
Definition at line 753 of file pr_side_module.py.
|
static |
Pull of seed tan(lambda)
Definition at line 765 of file pr_side_module.py.
|
static |
Save simple FOM.
Definition at line 661 of file pr_side_module.py.
|
static |
Save simple FOM.
Definition at line 713 of file pr_side_module.py.
|
static |
Save a tree of all collected variables in a sub folder.
Definition at line 211 of file pr_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 pr_side_module.py.