diff --git a/Event/EventPacker/src/component/BufferUnpackers.cpp b/Event/EventPacker/src/component/BufferUnpackers.cpp index 17d2bc27663ffb2ab906c7a9b3c85c18fc2f0557..91edc75d6f891e96869a4ba8ae3db45200ff5ec6 100644 --- a/Event/EventPacker/src/component/BufferUnpackers.cpp +++ b/Event/EventPacker/src/component/BufferUnpackers.cpp @@ -55,6 +55,7 @@ namespace DataPacking::Buffer { DECLARE_COMPONENT_WITH_ID( Unpack<LHCb::Track::Container>, "TrackUnpacker" ) DECLARE_COMPONENT_WITH_ID( Unpack<LHCb::Track::Selection>, "TrackSelectionUnpacker" ) DECLARE_COMPONENT_WITH_ID( Unpack<LHCb::FlavourTag::Container>, "FlavourTagUnpacker" ) + DECLARE_COMPONENT_WITH_ID( Unpack<LHCb::FlavourTag::Selection>, "FlavourTagSelectionUnpacker" ) DECLARE_COMPONENT_WITH_ID( Unpack<LHCb::CaloHypo::Container>, "CaloHypoUnpacker" ) DECLARE_COMPONENT_WITH_ID( Unpack<LHCb::CaloCluster::Container>, "CaloClusterUnpacker" ) DECLARE_COMPONENT_WITH_ID( Unpack<LHCb::CaloDigit::Container>, "CaloDigitUnpacker" ) diff --git a/PyConf/python/PyConf/reading.py b/PyConf/python/PyConf/reading.py index 312390691b919db05b6b960ae84a153f8eab131f..0459426af4179a229d764f10636262030809fb45 100644 --- a/PyConf/python/PyConf/reading.py +++ b/PyConf/python/PyConf/reading.py @@ -31,10 +31,10 @@ def _unpackers_map(): CaloDigitUnpacker, CaloAdcUnpacker, ProtoParticleUnpacker, ProtoParticleSelectionUnpacker, ParticleUnpacker, ParticleSelectionUnpacker, VertexUnpacker, FlavourTagUnpacker, - P2VRelationUnpacker, P2MCPRelationUnpacker, PP2MCPRelationUnpacker, - P2IntRelationUnpacker, P2InfoRelationUnpacker, RecSummaryUnpacker, - SOATrackUnpacker, SOACaloClusterUnpacker, SOACaloHypoUnpacker, - SOAPVUnpacker) + FlavourTagSelectionUnpacker, P2VRelationUnpacker, + P2MCPRelationUnpacker, PP2MCPRelationUnpacker, P2IntRelationUnpacker, + P2InfoRelationUnpacker, RecSummaryUnpacker, SOATrackUnpacker, + SOACaloClusterUnpacker, SOACaloHypoUnpacker, SOAPVUnpacker) return { "Tracks": TrackUnpacker, @@ -57,6 +57,7 @@ def _unpackers_map(): "ParticlesSelection": ParticleSelectionUnpacker, "Vertices": VertexUnpacker, "FlavourTags": FlavourTagUnpacker, + "FlavourTagsSelection": FlavourTagSelectionUnpacker, "P2VRelations": P2VRelationUnpacker, "P2MCPRelations": P2MCPRelationUnpacker, "P2IntRelations": P2IntRelationUnpacker, @@ -212,6 +213,13 @@ def get_particles(location, **kwargs): return _get_unpacked("ParticlesSelection", location, **kwargs) +def get_flavourtags(location, **kwargs): + """ + Unpacking of flavor tags. This will also unpack the associated tagged B particles implicitely. + """ + return _get_unpacked("FlavourTagsSelection", location, **kwargs) + + def get_pp2mcp_relations(location): """ Unpacking of ProtoParticle to MCParticle relations. These are needed for truth matching