Skip to content

Fix type clash between IsolationSelectionTool and PromptLeptonTagging

Johannes Junggeburth requested to merge (removed):acc_fix_isolation_tool into 21.2

Hi everybody,

!26957 (closed) brought the IsolationLowPtPLVTool to the release. Unfortunately, there's a slight clash of the decorator types between the IsolationSelectionTool and the PromptLeptonTagger. Although the tool accepts integer inputs it converts them all to SG::AuxElement::Decorator<short> (cf. https://gitlab.cern.ch/atlas/athena/blob/21.2/PhysicsAnalysis/AnalysisCommon/LeptonTaggers/src/DecoratePromptLepton.cxx#L330-335). Thus if something from the IsolationSelection package is called in parallel with the PromptLeptonDecotration package, the code crashes.

12:36:12 terminate called after throwing an instance of 'SG::ExcAuxTypeMismatch'
12:36:12   what():  SG::ExcAuxTypeMismatch: Type mismatch for aux variable `::PromptLeptonInput_TrackJetNTrack' (492); old type is short new type is int
12:36:12 

Adding: @fuhe, @rustem, @szambito, @gartoni, @akraszna

Edited by Johannes Junggeburth

Merge request reports