Skip to content
Snippets Groups Projects
Commit f2db96be authored by Wouter Hulsbergen's avatar Wouter Hulsbergen
Browse files

Adapt to change in PV finder output

parent 36add867
No related branches found
No related tags found
2 merge requests!1103Draft: Add AnalysisHelpers to DaVinci Stack,!667Adapt to change in PV finder output
Pipeline #3785183 passed
......@@ -20,9 +20,7 @@ packed data on file.
"""
from GaudiConf import PersistRecoConf
from PyConf import configurable
from PyConf.Algorithms import (
LHCb__Converters__RecVertices__LHCbRecVerticesToVectorV2RecVertex,
LHCb__Converters__Track__v2__fromV1TrackV2Track)
from PyConf.Algorithms import (RecV1ToPVConverter)
from .data_from_file import reco_unpackers
......@@ -59,12 +57,12 @@ def make_tracks():
def make_pvs_using(tracks, pvs):
tracks_v2 = LHCb__Converters__Track__v2__fromV1TrackV2Track(
InputTracksName=tracks).OutputTracksName
return LHCb__Converters__RecVertices__LHCbRecVerticesToVectorV2RecVertex(
InputVertices=pvs,
InputTracks=tracks_v2,
).OutputVertices
#tracks_v2 = LHCb__Converters__Track__v2__fromV1TrackV2Track(
# InputTracksName=tracks).OutputTracksName
# FIXME: this is a temporary solution until we have persistency
# for the new PV container. Note that this converter does not
# fill the associated track list. This should be fixed as well.
return RecV1ToPVConverter(InputVertices=pvs).OutputVertices
def make_pvs_with(persist_conf, tracks='Tracks', pvs='PVs'):
......
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