Skip to content
Snippets Groups Projects
Commit 262f6f21 authored by Jiahui Zhuo's avatar Jiahui Zhuo :penguin: Committed by Patrick Koppenburg
Browse files

Fix the relation location in MCReconstructed tool

parent 25293e9f
No related branches found
No related tags found
2 merge requests!1103Draft: Add AnalysisHelpers to DaVinci Stack,!769Fix the relation location in MCReconstructed tool
......@@ -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)
......
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