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 5c42822524e00c2c5e8f432731b259cff9a6d81e..9ad6d380c0960bde930df8ae4f8bb78f2a6cbc60 100644 --- a/DaVinciExamples/python/DaVinciExamples/tupling/example-tupling-mc-reconstructible-reconstructed.py +++ b/DaVinciExamples/python/DaVinciExamples/tupling/example-tupling-mc-reconstructible-reconstructed.py @@ -31,14 +31,14 @@ def main(options: Options): extra_inputs += [get_charged_protoparticles(options.process)] extra_inputs += [get_neutral_protoparticles(options.process)] - relations = [ - get_pp2mcp_relations( - loc, process=options.process, extra_inputs=extra_inputs) - for loc in [ - "/Event/HLT2/Relations/ChargedPP2MCP", - "/Event/HLT2/Relations/NeutralPP2MCP" - ] - ] + relations_charged = get_pp2mcp_relations( + "/Event/HLT2/Relations/ChargedPP2MCP", + process=options.process, + extra_inputs=extra_inputs) + relations_neutral = get_pp2mcp_relations( + "/Event/HLT2/Relations/NeutralPP2MCP", + process=options.process, + extra_inputs=extra_inputs) #Get variables related to reconstructible information. mcrtible = MCReconstructible( @@ -61,7 +61,8 @@ def main(options: Options): mcrted_all = MCReconstructed( MC_data, use_best_mcmatch=False, - relations_locs=relations, + relations_charged=relations_charged, + relations_neutral=relations_neutral, process=options.process) #The option extra_info below is set to False by default in the functor collection. vars_rted = MCReconstructed_Collection(mcrted_all, extra_info=False)