From 15b535d5e772dc30ec0eb7cd541a23a7261e8210 Mon Sep 17 00:00:00 2001 From: Gerhard Raven <gerhard.raven@nikhef.nl> Date: Tue, 7 Mar 2023 21:26:40 +0100 Subject: [PATCH] follow changes in LHCb!3986 --- ...ample-tupling-mc-reconstructible-reconstructed.py | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/DaVinciExamples/python/DaVinciExamples/tupling/example-tupling-mc-reconstructible-reconstructed.py b/DaVinciExamples/python/DaVinciExamples/tupling/example-tupling-mc-reconstructible-reconstructed.py index 5f4d888d6..1c4ba599f 100644 --- a/DaVinciExamples/python/DaVinciExamples/tupling/example-tupling-mc-reconstructible-reconstructed.py +++ b/DaVinciExamples/python/DaVinciExamples/tupling/example-tupling-mc-reconstructible-reconstructed.py @@ -12,7 +12,7 @@ Example options to show the usage of the new DaVinciMCTools `MCReconstructible` and `MCReconstructed` helper classes. """ -from PyConf.reading import get_mc_particles, get_pp2mcp_relations, get_charged_protoparticles, get_neutral_protoparticles, get_mc_track_info +from PyConf.reading import get_mc_particles, get_pp2mcp_relations, get_mc_track_info from FunTuple import FunTuple_MCParticles as MCFuntuple from DaVinciMCTools import MCReconstructible as MCRectible, MCReconstructed as MCRected from DaVinci import Options, make_config @@ -23,16 +23,12 @@ def main(options: Options): # Input MC_data = get_mc_particles("/Event/HLT2/MC/Particles") - # PP2MCP relations need MC particles and ProtoParticles - # Since MC is already unpacked, only unpack protos and relations - extra_inputs = [] - extra_inputs += [get_charged_protoparticles()] - extra_inputs += [get_neutral_protoparticles()] + # PP2MCP relations relations_charged = get_pp2mcp_relations( - "/Event/HLT2/Relations/ChargedPP2MCP", extra_inputs=extra_inputs) + "/Event/HLT2/Relations/ChargedPP2MCP") relations_neutral = get_pp2mcp_relations( - "/Event/HLT2/Relations/NeutralPP2MCP", extra_inputs=extra_inputs) + "/Event/HLT2/Relations/NeutralPP2MCP") #Get variables related to reconstructible information. mcrtible = MCRectible( -- GitLab