Skip to content
Snippets Groups Projects
Commit 05625e29 authored by Adam Edward Barton's avatar Adam Edward Barton
Browse files

Merge branch 'Muon1TruthFix' into 'main'

Configure MCTruthClassifierTool for MuonTruthClassifierFallback

See merge request atlas/athena!65518
parents de53cf13 a97a8638
No related branches found
No related tags found
No related merge requests found
......@@ -168,6 +168,13 @@ def TruthClassificationDecoratorCfg(flags, name, **kwargs):
def MuonTruthClassifierFallbackCfg(flags, name, **kwargs):
"""Config the MuonTruthClassifierFallback tool"""
acc = ComponentAccumulator()
if "MCTruthClassifierTool" not in kwargs:
from MCTruthClassifier.MCTruthClassifierConfig import (
MCTruthClassifierCfg)
kwargs.setdefault("MCTruthClassifierTool", acc.popToolsAndMerge(
MCTruthClassifierCfg(flags)))
MuonTruthClassifierFallback = CompFactory.DerivationFramework.MuonTruthClassifierFallback
acc.addPublicTool(MuonTruthClassifierFallback(name = name, **kwargs),
primary = True)
......
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