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

Public Member Functions

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

Public Attributes

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

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_aux
 Save curvature-pull auxiliary information in a sub folder. More...
 
 save_curvature_pull
 Save curvature-pull information in a sub folder. More...
 
 save_absolute_curvature_pull
 Save absolute curvature-pull information in a sub folder. More...
 
 save_tan_lambda_pull
 Save tan(lambda)-fit pull information in a sub folder. More...
 
 save_fit_quality_histograms
 Save fit-quality histograms in a sub folder. More...
 
 save_fit_quality_by_tan_lambda_profiles
 Save tan(lambda)-fit-quality profile histograms in a sub folder. More...
 

Detailed Description

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

Definition at line 243 of file record.py.

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
  output_file_name 
)
Constructor

Definition at line 248 of file record.py.

Member Function Documentation

◆ initialize()

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

Definition at line 258 of file record.py.

◆ peel()

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

Definition at line 278 of file record.py.

◆ pick()

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

Definition at line 267 of file record.py.

◆ prepare()

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

Definition at line 263 of file record.py.

Member Data Documentation

◆ save_absolute_curvature_pull

save_absolute_curvature_pull
static
Initial value:
= refiners.save_pull_analysis(
part_name="curvature",
unit="1/cm",
absolute=True,
groupby=[None, "superlayer_id_pair"],
outlier_z_score=3.0)

Save absolute curvature-pull information in a sub folder.

Definition at line 325 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,
groupby=[None, "superlayer_id_pair"],
outlier_z_score=3.0)

Save curvature-pull information in a sub folder.

Definition at line 317 of file record.py.

◆ save_curvature_pull_aux

save_curvature_pull_aux
static
Initial value:
= refiners.save_pull_analysis(
part_name="curvature",
folder_name="aux",
unit="1/cm",
absolute=False,
aux_names=["superlayer_id_pair", "tan_lambda_truth"],
which_plots=["aux"],
outlier_z_score=3.0)

Save curvature-pull auxiliary information in a sub folder.

Definition at line 307 of file record.py.

◆ save_fit_quality_by_tan_lambda_profiles

save_fit_quality_by_tan_lambda_profiles
static
Initial value:
= refiners.save_profiles(
select={
"p_value": "fit p-value",
"tan_lambda_truth": "true tan #lambda",
},
groupby=[None, "superlayer_id_pair"],
x="true tan #lambda",
y="fit p-value",
check=("The {y_part_name} should be essentially the same over"
"the whole range of the tan lambda spectrum"),
description=("Investigating the reconstruction quality for different "
"tan lambda regions of the CDC. Most notably is the superlayer dependency."
"For stereo superlayers the curve is not flat but has distinct slope."),
fit='line',
)

Save tan(lambda)-fit-quality profile histograms in a sub folder.

Definition at line 352 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",
},
groupby=[None, "superlayer_id_pair"],
description="Distribution of {part_name} in the segment fits",
)

Save fit-quality histograms in a sub folder.

Definition at line 341 of file record.py.

◆ save_tan_lambda_pull

save_tan_lambda_pull
static
Initial value:
= refiners.save_pull_analysis(
part_name="tan_lambda",
quantity_name="tan #lambda",
absolute=False,
groupby=[None, "superlayer_id_pair"],
outlier_z_score=3.0)

Save tan(lambda)-fit pull information in a sub folder.

Definition at line 333 of file record.py.


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