Belle II Software  release-05-02-19
LegendreBinningValidationModule Class Reference
Inheritance diagram for LegendreBinningValidationModule:
Collaboration diagram for LegendreBinningValidationModule:

Public Member Functions

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

Public Attributes

 mc_track_lookup
 by default, there is no method to find matching MC tracks More...
 
 track_fitter
 Use the CDCReimannFitter with a constrained origin for track fitting.
 
 lower_curv_bounds
 cached copy of lower bounds
 
 upper_curv_bounds
 cached copy of upper bounds
 
 mc_hit_lookup
 Method to find matching MC hits.
 

Static Public Attributes

 save_tree = refiners.save_tree()
 Save a tree of all collected variables in a sub folder.
 
 save_histograms = refiners.save_histograms(outlier_z_score=5.0, allow_discrete=True)
 Save histograms in a sub folder.
 
 save_profiles
 Save profile histograms in a sub folder. More...
 
 save_cross_curv_profile
 Save cross-curvature profile histograms in a sub folder. More...
 
 save_scatter = refiners.save_scatters(x=['curvature_estimate'], y='n_hits')
 Save scatterplots in a sub folder.
 

Detailed Description

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

Definition at line 79 of file record.py.

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
  output_file_name 
)
Constructor

Definition at line 84 of file record.py.

84  def __init__(self, output_file_name):
85  """Constructor"""
86  super().__init__(foreach='CDCTrackVector',
87  output_file_name=output_file_name)
88 
89 
90  self.mc_track_lookup = None
91 
92  origin_track_fitter = TFCDC.CDCRiemannFitter()
93  origin_track_fitter.setOriginConstrained()
94 
95  self.track_fitter = origin_track_fitter
96 
97  curv_bounds = []
98  with open('fine_curv_bounds.txt') as curv_bounds_file:
99  for curv_bound_line in curv_bounds_file:
100  curv_bounds.append(float(curv_bound_line))
101 
102  bin_bounds = list(zip(curv_bounds[0::2], curv_bounds[1::2]))
103  bin_bounds = sorted(bin_bounds)
104 
105 
106  self.lower_curv_bounds = np.array([bin[0] for bin in bin_bounds])
107 
108  self.upper_curv_bounds = np.array([bin[1] for bin in bin_bounds])
109 
110  assert(len(self.lower_curv_bounds) == len(self.upper_curv_bounds))
111 

Member Function Documentation

◆ initialize()

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

Definition at line 112 of file record.py.

◆ peel()

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

Definition at line 132 of file record.py.

◆ pick()

def pick (   self,
  track 
)
Select tracks with at least 4 segments and associated primary MC particle

Definition at line 124 of file record.py.

◆ prepare()

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

Definition at line 120 of file record.py.

Member Data Documentation

◆ mc_track_lookup

mc_track_lookup

by default, there is no method to find matching MC tracks

Method to find matching MC tracks.

Definition at line 90 of file record.py.

◆ save_cross_curv_profile

save_cross_curv_profile
static
Initial value:
= refiners.save_profiles(x=['cross_curv'],
y=['cross_curv_var',
'curvature_estimate',
'basic_curv_precision',
'origin_curv_precision',
'non_origin_curv_precision',
'max_curv_precision',
],
outlier_z_score=5.0)

Save cross-curvature profile histograms in a sub folder.

Definition at line 221 of file record.py.

◆ save_profiles

save_profiles
static
Initial value:
= refiners.save_profiles(x=['curvature_estimate', 'phi0'],
y='curvature_variance',
outlier_z_score=5.0)

Save profile histograms in a sub folder.

Definition at line 216 of file record.py.


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