Skip to content
Snippets Groups Projects
Commit b6c96d8d authored by Sevda Esen's avatar Sevda Esen Committed by Wouter Hulsbergen
Browse files

change the naming for PVs, PVs_v1 -> PVs and PVs -> ExtendedPVs

parent 9432cac9
No related branches found
No related tags found
1 merge request!4299add PV pointer to particle, update v2 PV event model
......@@ -183,8 +183,8 @@ def get_neutral_protoparticles():
return reconstruction(obj="NeutralProtos")
def get_pvs_v1():
return reconstruction(obj="PVs_v1")
def get_extended_pvs():
return reconstruction(obj="ExtendedPVs")
def get_pvs():
......@@ -303,18 +303,17 @@ def postprocess_unpacked_data(data,
- for non-existant RecSummary
"""
# PV v1 only persisted for now
if "PVs" in data and "ExtendedPVs" not in data:
from PyConf.Algorithms import RecV1ToPVConverter
data["PVs_v1"] = data["PVs"]
data["ExtendedPVs"] = RecV1ToPVConverter(
InputVertices=data["PVs"]).OutputVertices
elif "ExtendedPVs" in data and "PVs" not in data:
from PyConf.Algorithms import PVToRecConverterV1WithoutTracks
data["PVs_v1"] = PVToRecConverterV1WithoutTracks(
data["PVs"] = PVToRecConverterV1WithoutTracks(
InputVertices=data["ExtendedPVs"],
AddTrackWeights=False).OutputVertices
data["PVs"] = data["PVs_v1"]
# per track type splitter (to convert 0.0 persistency to latest)
if persistreco_version() == 0.0:
......
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