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

Public Member Functions

def __init__ (self, output_file_name)
 
def initialize (self)
 
def prepare (self)
 
def pick (self, segment)
 
def peel (self, segment)
 

Public Attributes

 mc_segment_lookup
 by default, there is no method to find matching MC track segments More...
 
 mc_hit_lookup
 Method to find matching MC hits.
 

Static Public Attributes

 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_curvature_pull
 Save curvature-pull information in a sub folder. More...
 
 save_curvature_pull_rl_pure
 Save right-left curvature-pull information in a sub folder. More...
 
 save_absolute_curvature_pull
 Save absolute curvature-pull information in a sub folder. More...
 
 save_fit_quality_histograms
 Save fit-quality histograms in a sub folder. More...
 

Detailed Description

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

Definition at line 225 of file record.py.

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
  output_file_name 
)
Constructor

Definition at line 230 of file record.py.

Member Function Documentation

◆ initialize()

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

Definition at line 238 of file record.py.

◆ peel()

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

Definition at line 259 of file record.py.

◆ pick()

def pick (   self,
  segment 
)
Select segments with 4 or more hits and a matching primary MC particle

Definition at line 251 of file record.py.

◆ prepare()

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

Definition at line 247 of file record.py.

Member Data Documentation

◆ mc_segment_lookup

mc_segment_lookup

by default, there is no method to find matching MC track segments

Method to find matching MC track segments.

Definition at line 236 of file record.py.

◆ save_absolute_curvature_pull

save_absolute_curvature_pull
static
Initial value:
= refiners.save_pull_analysis(
part_name="curvature",
unit="1/cm",
absolute=True,
aux_names=["tan_lambda_truth", "abs_curvature_truth"],
groupby=[
"stereo_kind",
"superlayer_id"
],
outlier_z_score=4.0,
title_postfix="")

Save absolute curvature-pull information in a sub folder.

Definition at line 381 of file record.py.

◆ save_curvature_pull

save_curvature_pull
static
Initial value:
= refiners.save_pull_analysis(
part_name="curvature",
unit="1/cm",
absolute=False,
aux_names=["tan_lambda_truth", "abs_curvature_truth"],
groupby=[
"stereo_kind",
"superlayer_id"
],
outlier_z_score=4.0,
title_postfix="")

Save curvature-pull information in a sub folder.

Definition at line 351 of file record.py.

◆ save_curvature_pull_rl_pure

save_curvature_pull_rl_pure
static
Initial value:
= refiners.save_pull_analysis(
part_name="curvature",
unit="1/cm",
absolute=True,
filter_on="rl_purity",
filter=lambda rl_purity: rl_purity > 0.5,
aux_names=["tan_lambda_truth", "abs_curvature_truth"],
groupby=[
"stereo_kind",
"superlayer_id"
],
outlier_z_score=4.0,
title_postfix="",
folder_name="rl_pure/{groupby_addition}"
)

Save right-left curvature-pull information in a sub folder.

Definition at line 364 of file record.py.

◆ save_fit_quality_histograms

save_fit_quality_histograms
static
Initial value:
= refiners.save_histograms(
outlier_z_score=5.0,
select={
"ndf": "ndf",
"chi2": "#chi2",
"p_value": "p-value",
"tan_lambda_truth": "true tan #lambda",
},
groupby=[None, "stereo_kind", "superlayer_id"],
title="Histogram of {part_name}{stacked_by_indication}{stackby}",
description="Distribution of {part_name} in the segment fits",
)

Save fit-quality histograms in a sub folder.

Definition at line 394 of file record.py.


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