Skip to content
Snippets Groups Projects
Commit 15b535d5 authored by Gerhard Raven's avatar Gerhard Raven Committed by Sebastien Ponce
Browse files

follow changes in LHCb!3986

parent ef1e51f4
No related branches found
No related tags found
2 merge requests!1103Draft: Add AnalysisHelpers to DaVinci Stack,!841follow changes in LHCb!3986
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
Example options to show the usage of the new DaVinciMCTools Example options to show the usage of the new DaVinciMCTools
`MCReconstructible` and `MCReconstructed` helper classes. `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 FunTuple import FunTuple_MCParticles as MCFuntuple
from DaVinciMCTools import MCReconstructible as MCRectible, MCReconstructed as MCRected from DaVinciMCTools import MCReconstructible as MCRectible, MCReconstructed as MCRected
from DaVinci import Options, make_config from DaVinci import Options, make_config
...@@ -23,16 +23,12 @@ def main(options: Options): ...@@ -23,16 +23,12 @@ def main(options: Options):
# Input # Input
MC_data = get_mc_particles("/Event/HLT2/MC/Particles") 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( relations_charged = get_pp2mcp_relations(
"/Event/HLT2/Relations/ChargedPP2MCP", extra_inputs=extra_inputs) "/Event/HLT2/Relations/ChargedPP2MCP")
relations_neutral = get_pp2mcp_relations( relations_neutral = get_pp2mcp_relations(
"/Event/HLT2/Relations/NeutralPP2MCP", extra_inputs=extra_inputs) "/Event/HLT2/Relations/NeutralPP2MCP")
#Get variables related to reconstructible information. #Get variables related to reconstructible information.
mcrtible = MCRectible( 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