SND@LHC Software
|
Functions | |
initialize (fgeo) | |
execute (smeared_hits, ship_geo, method='') | |
finalize () | |
template_matching_pattern_recognition (SmearedHits, ShipGeo) | |
Template Matching. | |
pat_rec_view (SmearedHits, min_hits) | |
fast_hough_transform_pattern_recognition (SmearedHits, ShipGeo) | |
Fast Hough Transform. | |
fast_hough_pat_rec_y_view (SmearedHits, min_hits) | |
fast_hough_pat_rec_stereo_views (SmearedHits_stereo, recognized_tracks_y, min_hits) | |
hit_in_bin (x, y, k_bin, b_bin, k_size, b_size) | |
artificial_retina_pattern_recognition (SmearedHits, ShipGeo) | |
artificial_retina_pat_rec_y_view (SmearedHits, min_hits) | |
artificial_retina_pat_rec_stereo_views (SmearedHits_stereo, recognized_tracks_y, min_hits) | |
get_best_seed (x, y, sigma, sample_weight=None) | |
retina_func (track_prams, x, y, sigma, sample_weight=None) | |
retina_grad (track_prams, x, y, sigma, sample_weight=None) | |
hits_split (smeared_hits) | |
The End of the PatRec Methods. | |
reduce_clones_using_one_track_per_hit (recognized_tracks, min_hits=3) | |
tracks_combination_using_extrapolation (recognized_tracks_12, recognized_tracks_34, z_magnet) | |
decodeDetectorID (detID) | |
hit_in_window (x, y, k_bin, b_bin, window_width=1.) | |
get_zy_projection (z, xtop, ytop, xbot, ybot, k_y, b_y) | |
pat_rec_stereo_views (SmearedHits_stereo, recognized_tracks_y, min_hits) | |
Variables | |
str | __author__ = 'Mikhail Hushchyn' |
list | ReconstructibleMCTracks = [] |
list | theTracks = [] |
float | r_scale = global_variables.ShipGeo.strawtubes.InnerStrawDiameter / 1.975 |
shipPatRec.artificial_retina_pat_rec_stereo_views | ( | SmearedHits_stereo, | |
recognized_tracks_y, | |||
min_hits | |||
) |
Definition at line 595 of file shipPatRec.py.
shipPatRec.artificial_retina_pat_rec_y_view | ( | SmearedHits, | |
min_hits | |||
) |
Main function of track pattern recognition. Parameters: ----------- SmearedHits : list Smeared hits. SmearedHits = [{'digiHit': key, 'xtop': xtop, 'ytop': ytop, 'z': ztop, 'xbot': xbot, 'ybot': ybot, 'dist': dist2wire, 'detID': detID}, {...}, ...]
Definition at line 523 of file shipPatRec.py.
shipPatRec.artificial_retina_pattern_recognition | ( | SmearedHits, | |
ShipGeo | |||
) |
Main function of track pattern recognition. Parameters: ----------- SmearedHits : list Smeared hits. SmearedHits = [{'digiHit': key, 'xtop': xtop, 'ytop': ytop, 'z': ztop, 'xbot': xbot, 'ybot': ybot, 'dist': dist2wire, 'detID': detID}, {...}, ...]
Definition at line 455 of file shipPatRec.py.
shipPatRec.decodeDetectorID | ( | detID | ) |
Decodes detector ID. Parameters ---------- detID : int or array-like Detector ID values. Returns ------- statnb : int or array-like Station numbers. vnb : int or array-like View numbers. pnb : int or array-like Plane numbers. lnb : int or array-like Layer numbers. snb : int or array-like Straw tube numbers.
Definition at line 922 of file shipPatRec.py.
shipPatRec.execute | ( | smeared_hits, | |
ship_geo, | |||
method = '' |
|||
) |
Main function of track pattern recognition. Parameters: ----------- SmearedHits : list Smeared hits. SmearedHits = [{'digiHit': key, 'xtop': xtop, 'ytop': ytop, 'z': ztop, 'xbot': xbot, 'ybot': ybot, 'dist': dist2wire, 'detID': detID}, {...}, ...]
Definition at line 18 of file shipPatRec.py.
shipPatRec.fast_hough_pat_rec_stereo_views | ( | SmearedHits_stereo, | |
recognized_tracks_y, | |||
min_hits | |||
) |
Definition at line 327 of file shipPatRec.py.
shipPatRec.fast_hough_pat_rec_y_view | ( | SmearedHits, | |
min_hits | |||
) |
Main function of track pattern recognition. Parameters: ----------- SmearedHits : list Smeared hits. SmearedHits = [{'digiHit': key, 'xtop': xtop, 'ytop': ytop, 'z': ztop, 'xbot': xbot, 'ybot': ybot, 'dist': dist2wire, 'detID': detID}, {...}, ...]
Definition at line 262 of file shipPatRec.py.
shipPatRec.fast_hough_transform_pattern_recognition | ( | SmearedHits, | |
ShipGeo | |||
) |
Fast Hough Transform.
Main function of track pattern recognition. Parameters: ----------- SmearedHits : list Smeared hits. SmearedHits = [{'digiHit': key, 'xtop': xtop, 'ytop': ytop, 'z': ztop, 'xbot': xbot, 'ybot': ybot, 'dist': dist2wire, 'detID': detID}, {...}, ...]
Definition at line 194 of file shipPatRec.py.
shipPatRec.finalize | ( | ) |
Definition at line 49 of file shipPatRec.py.
shipPatRec.get_best_seed | ( | x, | |
y, | |||
sigma, | |||
sample_weight = None |
|||
) |
Definition at line 682 of file shipPatRec.py.
shipPatRec.get_zy_projection | ( | z, | |
xtop, | |||
ytop, | |||
xbot, | |||
ybot, | |||
k_y, | |||
b_y | |||
) |
Definition at line 986 of file shipPatRec.py.
shipPatRec.hit_in_bin | ( | x, | |
y, | |||
k_bin, | |||
b_bin, | |||
k_size, | |||
b_size | |||
) |
Counts hits in a bin of track parameter space (b, k). Parameters --------- x : array-like Array of x coordinates of hits. y : array-like Array of x coordinates of hits. k_bin : float Track parameter: y = k_bin * x + b_bin b_bin : float Track parameter: y = k_bin * x + b_bin Return ------ track_inds : array-like Hit indexes of a track: [ind1, ind2, ...]
Definition at line 416 of file shipPatRec.py.
shipPatRec.hit_in_window | ( | x, | |
y, | |||
k_bin, | |||
b_bin, | |||
window_width = 1. |
|||
) |
Counts hits in a bin of track parameter space (b, k). Parameters --------- x : array-like Array of x coordinates of hits. y : array-like Array of x coordinates of hits. k_bin : float Track parameter: y = k_bin * x + b_bin b_bin : float Track parameter: y = k_bin * x + b_bin Return ------ track_inds : array-like Hit indexes of a track: [ind1, ind2, ...]
Definition at line 955 of file shipPatRec.py.
shipPatRec.hits_split | ( | smeared_hits | ) |
The End of the PatRec Methods.
Split hits into groups of station views. Parameters: ----------- SmearedHits : list Smeared hits. SmearedHits = [{'digiHit': key, 'xtop': xtop, 'ytop': ytop, 'z': ztop, 'xbot': xbot, 'ybot': ybot, 'dist': dist2wire, 'detID': detID}, {...}, ...]
Definition at line 781 of file shipPatRec.py.
shipPatRec.initialize | ( | fgeo | ) |
Definition at line 14 of file shipPatRec.py.
shipPatRec.pat_rec_stereo_views | ( | SmearedHits_stereo, | |
recognized_tracks_y, | |||
min_hits | |||
) |
Definition at line 996 of file shipPatRec.py.
shipPatRec.pat_rec_view | ( | SmearedHits, | |
min_hits | |||
) |
Main function of track pattern recognition. Parameters: ----------- SmearedHits : list Smeared hits. SmearedHits = [{'digiHit': key, 'xtop': xtop, 'ytop': ytop, 'z': ztop, 'xbot': xbot, 'ybot': ybot, 'dist': dist2wire, 'detID': detID}, {...}, ...]
Definition at line 124 of file shipPatRec.py.
shipPatRec.reduce_clones_using_one_track_per_hit | ( | recognized_tracks, | |
min_hits = 3 |
|||
) |
Split hits into groups of station views. Parameters: ----------- recognized_tracks : list Track hits. Tracks = [{'hits_y': [hit1, hit2, hit3, ...]}, {...}, ...] min_hits : int Minimal number of hits per track.
Definition at line 822 of file shipPatRec.py.
shipPatRec.retina_func | ( | track_prams, | |
x, | |||
y, | |||
sigma, | |||
sample_weight = None |
|||
) |
Calculates the artificial retina function value. Parameters ---------- track_prams : array-like Track parameters [k, b]. x : array-like Array of x coordinates of hits. y : array-like Array of x coordinates of hits. sigma : float Standard deviation of hit form a track. sample_weight : array-like Hit weights used during the track fit. Retunrs ------- retina : float Negative value of the artificial retina function.
Definition at line 705 of file shipPatRec.py.
shipPatRec.retina_grad | ( | track_prams, | |
x, | |||
y, | |||
sigma, | |||
sample_weight = None |
|||
) |
Calculates the artificial retina gradient. Parameters ---------- track_prams : array-like Track parameters [k, b]. x : array-like Array of x coordinates of hits. y : array-like Array of x coordinates of hits. sigma : float Standard deviation of hit form a track. sample_weight : array-like Hit weights used during the track fit. Retunrs ------- retina : float Negative value of the artificial retina gradient.
Definition at line 739 of file shipPatRec.py.
shipPatRec.template_matching_pattern_recognition | ( | SmearedHits, | |
ShipGeo | |||
) |
Template Matching.
Main function of track pattern recognition. Parameters: ----------- SmearedHits : list Smeared hits. SmearedHits = [{'digiHit': key, 'xtop': xtop, 'ytop': ytop, 'z': ztop, 'xbot': xbot, 'ybot': ybot, 'dist': dist2wire, 'detID': detID}, {...}, ...]
Definition at line 58 of file shipPatRec.py.
shipPatRec.tracks_combination_using_extrapolation | ( | recognized_tracks_12, | |
recognized_tracks_34, | |||
z_magnet | |||
) |
Definition at line 857 of file shipPatRec.py.
|
private |
Definition at line 3 of file shipPatRec.py.
float shipPatRec.r_scale = global_variables.ShipGeo.strawtubes.InnerStrawDiameter / 1.975 |
Definition at line 12 of file shipPatRec.py.
list shipPatRec.ReconstructibleMCTracks = [] |
Definition at line 9 of file shipPatRec.py.
list shipPatRec.theTracks = [] |
Definition at line 10 of file shipPatRec.py.