Skip to content
Snippets Groups Projects
Commit 544382e2 authored by Maarten Van Veghel's avatar Maarten Van Veghel
Browse files

added config options

parent 52d7d70b
No related tags found
1 merge request!3823Draft: add ghostprob calculation to refitting
Pipeline #8579067 passed with warnings
......@@ -47,7 +47,8 @@ import Functors as F
from PyConf.Algorithms import PVsEmptyProducer
def refit_tracks(tracks, get_clusters_from_track, use_PrKF, add_ghostprob):
def refit_tracks(tracks, get_clusters_from_track, use_PrKF, add_ghostprob,
without_UT):
if get_clusters_from_track:
velo_micro_clusters_on_tracks = SelectVPMicroClustersFromTracks(
Inputs=[tracks])
......@@ -123,7 +124,10 @@ def refit_tracks(tracks, get_clusters_from_track, use_PrKF, add_ghostprob):
if add_ghostprob:
refitted_tracks = TrackBestTrackCreator(
TracksInContainers=[refitted_tracks],
GhostProbTools=[tool() for tool in get_GhostProbabilityTools()],
GhostProbTools=[
tool()
for tool in get_GhostProbabilityTools(without_UT=without_UT)
],
DoNotRefit=True,
AddGhostProb=True,
FitTracks=False).TracksOutContainer
......@@ -135,7 +139,8 @@ def refit_decay_tree(input_particles,
input_pvs,
get_clusters_from_track=True,
use_PrKF=True,
add_ghostprob=True):
add_ghostprob=True,
without_UT=False):
""" Takes an input DataHandle that contains LHCb::Particles (such as the
output of a trigger line), and:
(1) finds out which particles are basic particles, and calls the
......@@ -162,7 +167,11 @@ def refit_decay_tree(input_particles,
Inputs=[basic_particles]).OutputTracks
tracks_from_dst = refit_tracks(
tracks_from_particles, get_clusters_from_track, use_PrKF=use_PrKF)
tracks_from_particles,
get_clusters_from_track,
use_PrKF=use_PrKF,
add_ghostprob=add_ghostprob,
without_UT=without_UT)
relation_table_match_by_veloid_to_track = LHCbIDOverlapRelationTableParticleToTrack(
MatchFrom=basic_particles,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment