Skip to content
Snippets Groups Projects

Move AntiTauDecorAlg to bbtt (#218)

Merged Thomas Strebler requested to merge tstreble/easyjet:AntiTauDecorBBTT into main
Files
14
@@ -3,31 +3,22 @@ from AthenaConfiguration.ComponentFactory import CompFactory
def tau_decor_cfg(flags, **kwargs):
# Could make this configurable
muoncoll = flags.Analysis.container_names.input.muons
elecoll = flags.Analysis.container_names.input.electrons
taucoll = flags.Analysis.container_names.input.taus
cfg = ComponentAccumulator()
# Run early trigger matching for bbtt analysis
# Needed for anti-tau decoration
if flags.Analysis.do_bbtt_analysis:
from bbttAnalysis.TriggerDecoratorConfig import (
HHbbttTriggerDecoratorCfg)
cfg.merge(HHbbttTriggerDecoratorCfg(flags))
cfg.addEventAlgo(
CompFactory.Easyjet.TauDecoratorAlg(
f"TauDecor_{taucoll}",
isMC=flags.Input.isMC,
tauIDWP=flags.Analysis.Tau.ID,
doAntiTauDecor=flags.Analysis.do_bbtt_analysis,
muonsIn=muoncoll,
elesIn=elecoll,
tausIn=taucoll,
**kwargs
)
)
if flags.Analysis.do_bbtt_analysis:
from bbttAnalysis.AntiTauDecoratorConfig import (
HHbbttAntiTauDecoratorCfg)
cfg.merge(HHbbttAntiTauDecoratorCfg(flags))
return cfg
Loading