Skip to content
Snippets Groups Projects
Commit 0dad98dd authored by Sebastien Ponce's avatar Sebastien Ponce
Browse files

Merge branch 'follow-LHCb!3963' into 'master'

follow changes in LHCb!3986

See merge request !841
parents fdb709da 15b535d5
No related branches found
No related tags found
2 merge requests!1103Draft: Add AnalysisHelpers to DaVinci Stack,!841follow changes in LHCb!3986
Pipeline #5234622 passed
......@@ -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(
......
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