Skip to content

Add default_VeloCluster_source

Federico Lazzari requested to merge flazzari_defaultVeloBank into master

As reported in Rec#513, when using Retina Clusters for tracking, they must be used also for FullCluster decoding. This require two bind:

make_VeloClusterTrackingSIMD.bind(algorithm=VeloRetinaClusterTrackingSIMD)
make_velo_full_clusters.bind(make_full_cluster=VPRetinaFullClusterDecoder)

MC truth-matching does not provides consistent result if only one of the two bind is performed.

This MR introduces the function default_VeloCluster_source that store the bank used to produce VELO clusters: VP or VPRetinaCluster. By default make_VeloClusterTrackingSIMD and make_velo_full_clusters change the called algorithm according to the return value of the new function. Therefore, for using Retina Clusters, is sufficient to bind default_VeloCluster_source.

Functions make_VeloClusterTrackingSIMD and make_velo_full_clusters can be bound separately to use the desired algorithm.

Options files are updated to use the new function. The default source returned by default_VeloCluster_source is VP.

closes Rec#513

@ldufour @dovombru

Edited by Maarten Van Veghel

Merge request reports

Loading