![]() |
Belle II Software development
|
Public Member Functions | |
__init__ (self, output_file_name) | |
initialize (self) | |
prepare (self) | |
pick (self, segment_pair_relation) | |
peel (self, segment_pair_relation) | |
peel_target (self, segment_pair_relation) | |
peel_mc (self, segment_pair_relation) | |
peel_fit (self, segment_pair_relation) | |
peel_fitless (self, segment_pair_relation) | |
fit (self, segment_pair_relation) | |
select_fitless (self, fitless_crops) | |
select (self, crops) | |
print_signal_number (self, crops, tdirectory, **kwds) | |
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 | |
mc_segment_lookup = None | |
defer reference to CDCMCSegment2dLookUp singleton until after it is constructed | |
mc_segment_pair_filter = None | |
defer reference to MCSegmentPairFilter until after it is constructed | |
segment_pair_fusion = None | |
defer reference to CDCAxialStereoFusion until after it is constructed | |
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 | |
float | delta_phi_cut_value = 1.0 |
default selection for the delta-phi of the segment pair | |
float | is_after_cut_value = 1.0 |
default selection for the ordering of the segment pair | |
save_histograms = refiners.save_histograms(outlier_z_score=5.0, allow_discrete=True) | |
Save histograms in a sub folder. | |
save_tree = refiners.save_tree() | |
Save a tree of all collected variables in a sub folder. | |
save_fitless_selection_variables_histograms | |
Save a tree of track-segment-without-fit variables in a sub folder. | |
save_view_is_after_cut_histograms | |
Save a tree of mal-ordered track-segment-pair variables in a sub folder. | |
save_view_delta_phi_cut_histograms | |
Save a tree of delta-phi-cut track-segment-pair variables in a sub folder. | |
save_selection_variables_after_fitless_selection_histograms | |
Save a tree of track-segment-pair selection variables in a sub folder. | |
save_p_value_over_curvature_profile | |
Save a tree of track-segment-pair p-value and curvature variables in a sub folder. | |
int | default_expert_level = 1 |
The default value of expert_level if not specified explicitly by the caller. | |
Module to collect information about the generated segments and compose validation plots on terminate.
Definition at line 82 of file segmentPairCreationValidation.py.
__init__ | ( | self, | |
output_file_name ) |
Constructor
Definition at line 86 of file segmentPairCreationValidation.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.
fit | ( | self, | |
segment_pair_relation ) |
Fit the segment pair
Definition at line 249 of file segmentPairCreationValidation.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 97 of file segmentPairCreationValidation.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, | |
segment_pair_relation ) |
Aggregate the track and MC information for track segment-pair analysis
Reimplemented from HarvestingModule.
Definition at line 119 of file segmentPairCreationValidation.py.
peel_fit | ( | self, | |
segment_pair_relation ) |
Create a dictionary of track-segment-fit information
Definition at line 151 of file segmentPairCreationValidation.py.
peel_fitless | ( | self, | |
segment_pair_relation ) |
Create a dictionary of track-segments-without-fit information
Definition at line 211 of file segmentPairCreationValidation.py.
peel_mc | ( | self, | |
segment_pair_relation ) |
Create a dictionary of MC-truth (curvature,tanlambda) pairs
Definition at line 136 of file segmentPairCreationValidation.py.
peel_target | ( | self, | |
segment_pair_relation ) |
Create a dictionary of MC-truth (weight,decision) pairs
Definition at line 126 of file segmentPairCreationValidation.py.
pick | ( | self, | |
segment_pair_relation ) |
Select segment pairs with 4 or more hit in each segments and a matching primary MC particle
Reimplemented from HarvestingModule.
Definition at line 108 of file segmentPairCreationValidation.py.
prepare | ( | self | ) |
Initialize the MC-hit lookup method
Reimplemented from HarvestingModule.
Definition at line 104 of file segmentPairCreationValidation.py.
print_signal_number | ( | self, | |
crops, | |||
tdirectory, | |||
** | kwds ) |
Print diagnostic information about the track-segment-pair selection
Definition at line 328 of file segmentPairCreationValidation.py.
|
inherited |
Receive the gathered crops and forward them to the refiners.
Reimplemented in PickleHarvestingModule.
Definition at line 398 of file harvesting.py.
select | ( | self, | |
crops ) |
Select every track-segment-pair
Definition at line 266 of file segmentPairCreationValidation.py.
select_fitless | ( | self, | |
fitless_crops ) |
Selection of track-segments-without-fit
Definition at line 258 of file segmentPairCreationValidation.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.
|
static |
default selection for the delta-phi of the segment pair
Definition at line 254 of file segmentPairCreationValidation.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.
|
static |
default selection for the ordering of the segment pair
Definition at line 256 of file segmentPairCreationValidation.py.
mc_segment_lookup = None |
defer reference to CDCMCSegment2dLookUp singleton until after it is constructed
Definition at line 91 of file segmentPairCreationValidation.py.
mc_segment_pair_filter = None |
defer reference to MCSegmentPairFilter until after it is constructed
Definition at line 93 of file segmentPairCreationValidation.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.
|
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 a tree of track-segment-without-fit variables in a sub folder.
Definition at line 278 of file segmentPairCreationValidation.py.
|
static |
Save histograms in a sub folder.
Definition at line 272 of file segmentPairCreationValidation.py.
|
static |
Save a tree of track-segment-pair p-value and curvature variables in a sub folder.
Definition at line 317 of file segmentPairCreationValidation.py.
|
static |
Save a tree of track-segment-pair selection variables in a sub folder.
Definition at line 306 of file segmentPairCreationValidation.py.
|
static |
Save a tree of all collected variables in a sub folder.
Definition at line 274 of file segmentPairCreationValidation.py.
|
static |
Save a tree of delta-phi-cut track-segment-pair variables in a sub folder.
Definition at line 296 of file segmentPairCreationValidation.py.
|
static |
Save a tree of mal-ordered track-segment-pair variables in a sub folder.
Definition at line 287 of file segmentPairCreationValidation.py.
segment_pair_fusion = None |
defer reference to CDCAxialStereoFusion until after it is constructed
Definition at line 95 of file segmentPairCreationValidation.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 |