Belle II Software  release-08-01-10
SegmentPairCreationValidationModule Class Reference
Inheritance diagram for SegmentPairCreationValidationModule:
Collaboration diagram for SegmentPairCreationValidationModule:

Public Member Functions

def __init__ (self, output_file_name)
 
def initialize (self)
 
def prepare (self)
 
def pick (self, segment_pair_relation)
 
def peel (self, segment_pair_relation)
 
def peel_target (self, segment_pair_relation)
 
def peel_mc (self, segment_pair_relation)
 
def peel_fit (self, segment_pair_relation)
 
def peel_fitless (self, segment_pair_relation)
 
def fit (self, segment_pair_relation)
 
def select_fitless (self, fitless_crops)
 
def select (self, crops)
 
def print_signal_number (self, crops, tdirectory, **kwds)
 

Public Attributes

 mc_segment_lookup
 defer reference to CDCMCSegment2dLookUp singleton until after it is constructed
 
 mc_segment_pair_filter
 defer reference to MCSegmentPairFilter until after it is constructed
 
 segment_pair_fusion
 defer reference to CDCAxialStereoFusion until after it is constructed
 

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. More...
 
 save_view_is_after_cut_histograms
 Save a tree of mal-ordered track-segment-pair variables in a sub folder. More...
 
 save_view_delta_phi_cut_histograms
 Save a tree of delta-phi-cut track-segment-pair variables in a sub folder. More...
 
 save_selection_variables_after_fitless_selection_histograms
 Save a tree of track-segment-pair selection variables in a sub folder. More...
 
 save_p_value_over_curvature_profile
 Save a tree of track-segment-pair p-value and curvature variables in a sub folder. More...
 

Detailed Description

Module to collect information about the generated segments and compose validation plots on terminate.

Definition at line 86 of file segmentPairCreationValidation.py.

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
  output_file_name 
)
Constructor

Definition at line 90 of file segmentPairCreationValidation.py.

Member Function Documentation

◆ fit()

def fit (   self,
  segment_pair_relation 
)
Fit the segment pair

Definition at line 253 of file segmentPairCreationValidation.py.

◆ initialize()

def initialize (   self)
Receive signal at the start of event processing

Definition at line 101 of file segmentPairCreationValidation.py.

◆ peel()

def peel (   self,
  segment_pair_relation 
)
Aggregate the track and MC information for track segment-pair analysis

Definition at line 123 of file segmentPairCreationValidation.py.

◆ peel_fit()

def peel_fit (   self,
  segment_pair_relation 
)
Create a dictionary of track-segment-fit information

Definition at line 155 of file segmentPairCreationValidation.py.

◆ peel_fitless()

def peel_fitless (   self,
  segment_pair_relation 
)
Create a dictionary of track-segments-without-fit information

Definition at line 215 of file segmentPairCreationValidation.py.

◆ peel_mc()

def peel_mc (   self,
  segment_pair_relation 
)
Create a dictionary of MC-truth (curvature,tanlambda) pairs

Definition at line 140 of file segmentPairCreationValidation.py.

◆ peel_target()

def peel_target (   self,
  segment_pair_relation 
)
Create a dictionary of MC-truth (weight,decision) pairs

Definition at line 130 of file segmentPairCreationValidation.py.

◆ pick()

def pick (   self,
  segment_pair_relation 
)
Select segment pairs with 4 or more hit in each segments and a matching primary MC particle

Definition at line 112 of file segmentPairCreationValidation.py.

◆ prepare()

def prepare (   self)
Initialize the MC-hit lookup method

Definition at line 108 of file segmentPairCreationValidation.py.

◆ print_signal_number()

def print_signal_number (   self,
  crops,
  tdirectory,
**  kwds 
)
Print diagnostic information about the track-segment-pair selection

Definition at line 332 of file segmentPairCreationValidation.py.

◆ select()

def select (   self,
  crops 
)
Select every track-segment-pair

Definition at line 270 of file segmentPairCreationValidation.py.

◆ select_fitless()

def select_fitless (   self,
  fitless_crops 
)
Selection of track-segments-without-fit

Definition at line 262 of file segmentPairCreationValidation.py.

Member Data Documentation

◆ save_fitless_selection_variables_histograms

save_fitless_selection_variables_histograms
static
Initial value:
= refiners.save_histograms(
select=["mc_decision", "delta_phi", "start_is_before_end", "end_is_after_start", "is_coaligned"],
outlier_z_score=5.0,
allow_discrete=True,
stackby="mc_decision",
folder_name="fitless_selection_variables",
)

Save a tree of track-segment-without-fit variables in a sub folder.

Definition at line 282 of file segmentPairCreationValidation.py.

◆ save_p_value_over_curvature_profile

save_p_value_over_curvature_profile
static
Initial value:
= refiners.save_profiles(
select={"p_value": "p-value", "curvature_truth": "true curvature"},
y="p-value",
folder_name="selection_variables_after_fitless_selection",
title=r"$p$-value versus true curvature after fitless selection",
filter_on="select_fitless",
)

Save a tree of track-segment-pair p-value and curvature variables in a sub folder.

Definition at line 321 of file segmentPairCreationValidation.py.

◆ save_selection_variables_after_fitless_selection_histograms

save_selection_variables_after_fitless_selection_histograms
static
Initial value:
= refiners.save_histograms(
select=["mc_decision", "chi2", "ndf", "p_value"],
outlier_z_score=5.0,
allow_discrete=True,
stackby="mc_decision",
folder_name="selection_variables_after_fitless_selection",
filter_on="select_fitless",
)

Save a tree of track-segment-pair selection variables in a sub folder.

Definition at line 310 of file segmentPairCreationValidation.py.

◆ save_view_delta_phi_cut_histograms

save_view_delta_phi_cut_histograms
static
Initial value:
= refiners.save_histograms(
select=["mc_decision", "delta_phi"],
lower_bound=-delta_phi_cut_value,
upper_bound=delta_phi_cut_value,
stackby="mc_decision",
folder_name="view_fitless_cuts",
)

Save a tree of delta-phi-cut track-segment-pair variables in a sub folder.

Definition at line 300 of file segmentPairCreationValidation.py.

◆ save_view_is_after_cut_histograms

save_view_is_after_cut_histograms
static
Initial value:
= refiners.save_histograms(
select=["mc_decision", "start_is_before_end", "end_is_after_start"],
lower_bound=-is_after_cut_value,
upper_bound=is_after_cut_value,
stackby="mc_decision",
folder_name="view_fitless_cuts",
)

Save a tree of mal-ordered track-segment-pair variables in a sub folder.

Definition at line 291 of file segmentPairCreationValidation.py.


The documentation for this class was generated from the following file: