Skip to content
Snippets Groups Projects

Make "process" a required input and configure pyconf functions globally once with user input

Merged Abhijit Mathad requested to merge AM_process into master
2 files
+ 12
8
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -30,12 +30,12 @@ def main(options: Options):
extra_inputs += [get_charged_protoparticles()]
extra_inputs += [get_neutral_protoparticles()]
relations = [
get_pp2mcp_relations(loc, extra_inputs=extra_inputs) for loc in [
"/Event/HLT2/Relations/ChargedPP2MCP",
"/Event/HLT2/Relations/NeutralPP2MCP"
]
]
relations_charged = get_pp2mcp_relations(
"/Event/HLT2/Relations/ChargedPP2MCP",
extra_inputs=extra_inputs)
relations_neutral = get_pp2mcp_relations(
"/Event/HLT2/Relations/NeutralPP2MCP",
extra_inputs=extra_inputs)
#Get variables related to reconstructible information.
mcrtible = MCReconstructible(mc_track_info=get_mc_track_info())
@@ -55,7 +55,10 @@ def main(options: Options):
# tracks to the mc particle are used (tupling arrays).
# Here we set it to false for testing purposes.
mcrted_all = MCReconstructed(
MC_data, use_best_mcmatch=False, relations_locs=relations)
MC_data,
use_best_mcmatch=False,
relations_charged=relations_charged,
relations_neutral=relations_neutral)
#The option extra_info below is set to False by default in the functor collection.
vars_rted = MCReconstructed_Collection(mcrted_all, extra_info=False)
#Note:
Loading