Skip to content
Snippets Groups Projects
Commit f5b23117 authored by Sevda Esen's avatar Sevda Esen Committed by Christopher Rob Jones
Browse files

add get_flavourtags function and missing flavour tag selection unpacker

parent 13fd72b4
No related branches found
No related tags found
4 merge requests!4553Fix UT Decoder,!4539Synchronize master branch with 2024-patches,!4525Draft: Synchronize master branch with 2024-patches,!4471add get_flavourtags function and missing flavour tag selection unpacker
......@@ -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" )
......
......@@ -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
......
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