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

Public Member Functions

def __init__ (self, name, contact, output_file_name=None, reco_tracks_name='RecoTracks', mc_reco_tracks_name='MCRecoTracks', expert_level=None)
 
def initialize (self)
 
def prepare (self)
 
def pick (self, reco_track)
 
def peel (self, reco_track)
 
def peel_pr_to_mc_match_info (self, reco_track)
 

Public Attributes

 reco_tracks_name
 Name of the StoreArray of the tracks from pattern recognition.
 
 mc_reco_tracks_name
 Name of the StoreArray of the ideal mc tracks.
 
 track_match_look_up
 Reference to the track match lookup object reading the relation information constructed by the MCMatcherTracksModule.
 
 mc_reco_tracks_det_hit_ids
 Cache for the hit content of the Monte Carlo tracks - updated each event.
 
 mc_hit_lookup
 Cache for the MC hit lookup.
 

Static Public Attributes

int default_expert_level = 10
 the threshold value for the expert level
 
 save_tree
 Save a tree of all collected variables in a sub folder. More...
 
 save_clone_rate
 Save RecoTrack clone-rate information. More...
 
 save_clone_rate_by_seed_tan_lambda_profile
 Make profile of the clone rate versus seed tan(lambda) Rename the quantities to names that display nicely by root latex translation. More...
 
 save_clone_rate_by_seed_phi0_profile
 Make profile of the clone rate versus seed phi0 Rename the quantities to names that display nicely by root latex translation. More...
 
 save_clone_rate_by_seed_pt_profile
 Make profile of the clone rate versus seed transverse momentum Rename the quantities to names that display nicely by root latex translation. More...
 
 save_clone_rate_by_seed_pt_profile_groupbyCharge
 Charge dependent histograms Make profile of the clone rate versus seed transverse momentum. More...
 
 save_clone_rate_by_seed_tan_lambda_profile_groupbyCharge
 Charge dependent histograms Make profile of the clone rate versus seed tan(lambda) More...
 
 save_fake_rate
 Save RecoTrack fake-rate information. More...
 
 save_fake_rate_by_seed_phi0_profile
 Make profile of the fake rate versus seed phi0 Rename the quantities to names that display nicely by root latex translation. More...
 
 save_fake_rate_by_seed_tan_lambda_profile
 Make profile of the fake rate versus seed tan(lambda) Rename the quantities to names that display nicely by root latex translation. More...
 
 save_fake_rate_by_seed_pt_profile
 Make profile of the fake rate versus seed transverse momentum Rename the quantities to names that display nicely by root latex translation. More...
 
 save_fake_rate_by_seed_tan_lambda_profile_groupbyCharge
 Charge dependent histograms Make profile of the fake rate versus seed tan(lambda) More...
 
 save_fake_rate_by_seed_pt_profile_groupbyCharge
 Charge dependent histograms Make profile of the fake rate versus seed transverse momentum. More...
 
 save_hit_counts_by_pt_profile
 Hit counts in each sub detector by the true pt value. More...
 
 save_hit_efficiency_by_pt_profile
 Hit efficiency in each sub detector by the true pt value. More...
 
 save_hit_purity_by_pt_profile
 Hit purity in each sub detector by the true pt value. More...
 
 save_hit_counts_by_tanlambda_profile
 Hit counts in each sub detector by the true tanlambda value. More...
 
 save_hit_efficiency_by_tanlambda_profile
 Hit efficiency in each sub detector by the true tanlambda value. More...
 
 save_hit_purity_by_tanlambda_profile
 Hit purity in each sub detector by the true tanlambda value. More...
 
 save_hit_counts_by_pt_profile_groupbyCharge
 Charge dependent histograms Hit counts in each sub detector by the true pt value. More...
 
 save_hit_counts_by_tanlambda_profile_groupbyCharge
 Charge dependent histograms Hit counts in each sub detector by the true tan lambda value. More...
 
 save_hit_efficiency_by_pt_profile_groupbyCharge
 Charge dependent histograms Hit efficiency in each sub detector by the true pt value. More...
 
 save_hit_efficiency_by_tanlambda_profile_groupbyCharge
 Charge dependent histograms Hit efficiency in each sub detector by the true tan lambda value. More...
 
 save_hit_efficiency
 Save simple FOM. More...
 
 save_pxd_hit_efficiency
 Save simple FOM. More...
 
 save_svd_hit_efficiency
 Save simple FOM. More...
 
 save_cdc_hit_efficiency
 Save simple FOM. More...
 
 save_hit_purity
 Save simple FOM. More...
 
 save_pxd_hit_purity
 Save simple FOM. More...
 
 save_svd_hit_purity
 Save simple FOM. More...
 
 save_cdc_hit_purity
 Save simple FOM. More...
 
 save_p_value_histogram
 Creates a distribution of p values from the Genfit track fit for match pr tracks. More...
 
 save_seed_omega_pull_analysis
 Pull of seed omega. More...
 
 save_seed_tan_lambda_pull_analysis
 Pull of seed tan(lambda) More...
 
 save_fitted_omega_pull_analysis
 Pull of fitted omega. More...
 
 save_fitted_tan_lambda_pull_analysis
 Pull of fitted tan(lambda) More...
 
 save_fitted_pt_pull_analysis
 Pull of fitted transverse momentum. More...
 
 save_fitted_x_pull_analysis
 Pull of fitted x coordinate grouped by true transverse momentum. More...
 
 save_fitted_y_pull_analysis
 Pull of fitted y coordinate grouped by true transverse momentum. More...
 
 save_fitted_z_pull_analysis
 Pull of fitted z coordinate grouped by true transverse momentum. More...
 
 save_resolutions_by_pt_profile
 Resolutions as a function of true p_t. More...
 

Detailed Description

Module to collect matching information about the found particles and to generate
   validation plots and figures of merit on the performance of track finding.
 Expert level behavior:
    expert_level <= default_expert_level: all figures and plots from this module except tree entries
    expert_level > default_expert_level: everything including tree entries

Definition at line 25 of file pr_side_module.py.

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
  name,
  contact,
  output_file_name = None,
  reco_tracks_name = 'RecoTracks',
  mc_reco_tracks_name = 'MCRecoTracks',
  expert_level = None 
)
Constructor

Definition at line 36 of file pr_side_module.py.

43  expert_level=None):
44  """Constructor"""
45 
46  output_file_name = output_file_name or name + 'TrackingValidation.root'
47  super().__init__(foreach=reco_tracks_name,
48  name=name,
49  contact=contact,
50  output_file_name=output_file_name,
51  expert_level=expert_level)
52 
53 
54  self.reco_tracks_name = reco_tracks_name
55 
56 
57  self.mc_reco_tracks_name = mc_reco_tracks_name
58 
59 
60  self.track_match_look_up = None
61 
62 
63  self.mc_reco_tracks_det_hit_ids = []
64 
65 
67 
static const CDCMCHitLookUp & getInstance()
Getter for the singletone instance.

Member Function Documentation

◆ initialize()

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

Definition at line 68 of file pr_side_module.py.

◆ peel()

def peel (   self,
  reco_track 
)
Looks at the individual pattern recognition tracks and store information about them

Definition at line 92 of file pr_side_module.py.

◆ peel_pr_to_mc_match_info()

def peel_pr_to_mc_match_info (   self,
  reco_track 
)
Extracts track-match information from the MCMatcherTracksModule results

Definition at line 163 of file pr_side_module.py.

◆ pick()

def pick (   self,
  reco_track 
)
Method to filter the track candidates to reject part of them

Definition at line 88 of file pr_side_module.py.

◆ prepare()

def prepare (   self)
Called once at the start of each event

Definition at line 74 of file pr_side_module.py.

Member Data Documentation

◆ save_cdc_hit_efficiency

save_cdc_hit_efficiency
static
Initial value:
= refiners.save_fom(
)

Save simple FOM.

Definition at line 648 of file pr_side_module.py.

◆ save_cdc_hit_purity

save_cdc_hit_purity
static
Initial value:
= refiners.save_fom(
)

Save simple FOM.

Definition at line 696 of file pr_side_module.py.

◆ save_clone_rate

save_clone_rate
static
Initial value:
= refiners.save_fom(
)

Save RecoTrack clone-rate information.

Definition at line 217 of file pr_side_module.py.

◆ save_clone_rate_by_seed_phi0_profile

save_clone_rate_by_seed_phi0_profile
static
Initial value:
= refiners.save_profiles(
)

Make profile of the clone rate versus seed phi0 Rename the quantities to names that display nicely by root latex translation.

Definition at line 248 of file pr_side_module.py.

◆ save_clone_rate_by_seed_pt_profile

save_clone_rate_by_seed_pt_profile
static
Initial value:
= refiners.save_profiles(
)

Make profile of the clone rate versus seed transverse momentum Rename the quantities to names that display nicely by root latex translation.

Definition at line 262 of file pr_side_module.py.

◆ save_clone_rate_by_seed_pt_profile_groupbyCharge

save_clone_rate_by_seed_pt_profile_groupbyCharge
static
Initial value:
= refiners.save_profiles(
)

Charge dependent histograms Make profile of the clone rate versus seed transverse momentum.

Definition at line 279 of file pr_side_module.py.

◆ save_clone_rate_by_seed_tan_lambda_profile

save_clone_rate_by_seed_tan_lambda_profile
static
Initial value:
= refiners.save_profiles(
)

Make profile of the clone rate versus seed tan(lambda) Rename the quantities to names that display nicely by root latex translation.

Definition at line 231 of file pr_side_module.py.

◆ save_clone_rate_by_seed_tan_lambda_profile_groupbyCharge

save_clone_rate_by_seed_tan_lambda_profile_groupbyCharge
static
Initial value:
= refiners.save_profiles(
)

Charge dependent histograms Make profile of the clone rate versus seed tan(lambda)

Definition at line 297 of file pr_side_module.py.

◆ save_fake_rate

save_fake_rate
static
Initial value:
= refiners.save_fom(
)

Save RecoTrack fake-rate information.

Definition at line 314 of file pr_side_module.py.

◆ save_fake_rate_by_seed_phi0_profile

save_fake_rate_by_seed_phi0_profile
static
Initial value:
= refiners.save_profiles(
)

Make profile of the fake rate versus seed phi0 Rename the quantities to names that display nicely by root latex translation.

Definition at line 328 of file pr_side_module.py.

◆ save_fake_rate_by_seed_pt_profile

save_fake_rate_by_seed_pt_profile
static
Initial value:
= refiners.save_profiles(
)

Make profile of the fake rate versus seed transverse momentum Rename the quantities to names that display nicely by root latex translation.

Definition at line 356 of file pr_side_module.py.

◆ save_fake_rate_by_seed_pt_profile_groupbyCharge

save_fake_rate_by_seed_pt_profile_groupbyCharge
static
Initial value:
= refiners.save_profiles(
)

Charge dependent histograms Make profile of the fake rate versus seed transverse momentum.

Definition at line 388 of file pr_side_module.py.

◆ save_fake_rate_by_seed_tan_lambda_profile

save_fake_rate_by_seed_tan_lambda_profile
static
Initial value:
= refiners.save_profiles(
)

Make profile of the fake rate versus seed tan(lambda) Rename the quantities to names that display nicely by root latex translation.

Definition at line 341 of file pr_side_module.py.

◆ save_fake_rate_by_seed_tan_lambda_profile_groupbyCharge

save_fake_rate_by_seed_tan_lambda_profile_groupbyCharge
static
Initial value:
= refiners.save_profiles(
)

Charge dependent histograms Make profile of the fake rate versus seed tan(lambda)

Definition at line 371 of file pr_side_module.py.

◆ save_fitted_omega_pull_analysis

save_fitted_omega_pull_analysis
static
Initial value:
= refiners.save_pull_analysis(
)

Pull of fitted omega.

Definition at line 742 of file pr_side_module.py.

◆ save_fitted_pt_pull_analysis

save_fitted_pt_pull_analysis
static
Initial value:
= refiners.save_pull_analysis(
)

Pull of fitted transverse momentum.

Definition at line 761 of file pr_side_module.py.

◆ save_fitted_tan_lambda_pull_analysis

save_fitted_tan_lambda_pull_analysis
static
Initial value:
= refiners.save_pull_analysis(
)

Pull of fitted tan(lambda)

Definition at line 752 of file pr_side_module.py.

◆ save_fitted_x_pull_analysis

save_fitted_x_pull_analysis
static
Initial value:
= refiners.save_pull_analysis(
)

Pull of fitted x coordinate grouped by true transverse momentum.

Definition at line 770 of file pr_side_module.py.

◆ save_fitted_y_pull_analysis

save_fitted_y_pull_analysis
static
Initial value:
= refiners.save_pull_analysis(
)

Pull of fitted y coordinate grouped by true transverse momentum.

Definition at line 780 of file pr_side_module.py.

◆ save_fitted_z_pull_analysis

save_fitted_z_pull_analysis
static
Initial value:
= refiners.save_pull_analysis(
)

Pull of fitted z coordinate grouped by true transverse momentum.

Definition at line 790 of file pr_side_module.py.

◆ save_hit_counts_by_pt_profile

save_hit_counts_by_pt_profile
static
Initial value:
= refiners.save_profiles(
)

Hit counts in each sub detector by the true pt value.

Definition at line 404 of file pr_side_module.py.

◆ save_hit_counts_by_pt_profile_groupbyCharge

save_hit_counts_by_pt_profile_groupbyCharge
static
Initial value:
= refiners.save_profiles(
)

Charge dependent histograms Hit counts in each sub detector by the true pt value.

Definition at line 525 of file pr_side_module.py.

◆ save_hit_counts_by_tanlambda_profile

save_hit_counts_by_tanlambda_profile
static
Initial value:
= refiners.save_profiles(
)

Hit counts in each sub detector by the true tanlambda value.

Definition at line 464 of file pr_side_module.py.

◆ save_hit_counts_by_tanlambda_profile_groupbyCharge

save_hit_counts_by_tanlambda_profile_groupbyCharge
static
Initial value:
= refiners.save_profiles(
)

Charge dependent histograms Hit counts in each sub detector by the true tan lambda value.

Definition at line 547 of file pr_side_module.py.

◆ save_hit_efficiency

save_hit_efficiency
static
Initial value:
= refiners.save_fom(
)

Save simple FOM.

Definition at line 612 of file pr_side_module.py.

◆ save_hit_efficiency_by_pt_profile

save_hit_efficiency_by_pt_profile
static
Initial value:
= refiners.save_profiles(
)

Hit efficiency in each sub detector by the true pt value.

Definition at line 424 of file pr_side_module.py.

◆ save_hit_efficiency_by_pt_profile_groupbyCharge

save_hit_efficiency_by_pt_profile_groupbyCharge
static
Initial value:
= refiners.save_profiles(
)

Charge dependent histograms Hit efficiency in each sub detector by the true pt value.

Definition at line 569 of file pr_side_module.py.

◆ save_hit_efficiency_by_tanlambda_profile

save_hit_efficiency_by_tanlambda_profile
static
Initial value:
= refiners.save_profiles(
)

Hit efficiency in each sub detector by the true tanlambda value.

Definition at line 484 of file pr_side_module.py.

◆ save_hit_efficiency_by_tanlambda_profile_groupbyCharge

save_hit_efficiency_by_tanlambda_profile_groupbyCharge
static
Initial value:
= refiners.save_profiles(
)

Charge dependent histograms Hit efficiency in each sub detector by the true tan lambda value.

Definition at line 591 of file pr_side_module.py.

◆ save_hit_purity

save_hit_purity
static
Initial value:
= refiners.save_fom(
)

Save simple FOM.

Definition at line 660 of file pr_side_module.py.

◆ save_hit_purity_by_pt_profile

save_hit_purity_by_pt_profile
static
Initial value:
= refiners.save_profiles(
)

Hit purity in each sub detector by the true pt value.

Definition at line 444 of file pr_side_module.py.

◆ save_hit_purity_by_tanlambda_profile

save_hit_purity_by_tanlambda_profile
static
Initial value:
= refiners.save_profiles(
)

Hit purity in each sub detector by the true tanlambda value.

Definition at line 504 of file pr_side_module.py.

◆ save_p_value_histogram

save_p_value_histogram
static
Initial value:
= refiners.save_histograms(
)

Creates a distribution of p values from the Genfit track fit for match pr tracks.

Definition at line 708 of file pr_side_module.py.

◆ save_pxd_hit_efficiency

save_pxd_hit_efficiency
static
Initial value:
= refiners.save_fom(
)

Save simple FOM.

Definition at line 624 of file pr_side_module.py.

◆ save_pxd_hit_purity

save_pxd_hit_purity
static
Initial value:
= refiners.save_fom(
)

Save simple FOM.

Definition at line 672 of file pr_side_module.py.

◆ save_resolutions_by_pt_profile

save_resolutions_by_pt_profile
static
Initial value:
= refiners.save_profiles(
)

Resolutions as a function of true p_t.

Definition at line 800 of file pr_side_module.py.

◆ save_seed_omega_pull_analysis

save_seed_omega_pull_analysis
static
Initial value:
= refiners.save_pull_analysis(
)

Pull of seed omega.

Definition at line 721 of file pr_side_module.py.

◆ save_seed_tan_lambda_pull_analysis

save_seed_tan_lambda_pull_analysis
static
Initial value:
= refiners.save_pull_analysis(
)

Pull of seed tan(lambda)

Definition at line 732 of file pr_side_module.py.

◆ save_svd_hit_efficiency

save_svd_hit_efficiency
static
Initial value:
= refiners.save_fom(
)

Save simple FOM.

Definition at line 636 of file pr_side_module.py.

◆ save_svd_hit_purity

save_svd_hit_purity
static
Initial value:
= refiners.save_fom(
)

Save simple FOM.

Definition at line 684 of file pr_side_module.py.

◆ save_tree

save_tree
static
Initial value:
= refiners.save_tree(
)

Save a tree of all collected variables in a sub folder.

Definition at line 211 of file pr_side_module.py.


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