Skip to content
Snippets Groups Projects
Commit 91cf2910 authored by Rosen Matev's avatar Rosen Matev :sunny:
Browse files

Merge branch 'wh_pvupdate_2021' into 'master'

Adapt to change in PV finder output

See merge request !667
parents c08ed97c f2db96be
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 #3820930 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