ATLAS Offline Software
Loading...
Searching...
No Matches
TrackLeptonConfig.py
Go to the documentation of this file.
1# Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
2
3from ElectronPhotonSelectorTools.AsgElectronLikelihoodToolsConfig import AsgElectronLikelihoodToolCfg
4from MuonSelectorTools.MuonSelectorToolsConfig import MuonSelectionToolCfg
5from ElectronPhotonSelectorTools.LikelihoodEnums import LikeEnum
6
7from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
8from AthenaConfiguration.ComponentFactory import CompFactory
9
10
11def TrackLeptonDecorationCfg(cfgFlags) -> ComponentAccumulator:
12 """Decorate tracks with information about reconstructed leptons"""
13 acc = ComponentAccumulator()
14
15 electronID_tool = acc.popToolsAndMerge(
16 AsgElectronLikelihoodToolCfg(cfgFlags, name="ftagElectronID", quality=LikeEnum.VeryLoose)
17 )
18 muonID_tool = acc.popToolsAndMerge( # loose quality selection
19 MuonSelectionToolCfg(cfgFlags, name="ftagMuonID", MuQuality=2, MaxEta=2.5)
20 )
21 acc.addEventAlgo(CompFactory.FlavorTagDiscriminants.TrackLeptonDecoratorAlg(
22 'TrackLeptonDecoratorAlg',
23 trackContainer="InDetTrackParticles",
24 electronSelectionTool=electronID_tool,
25 muonSelectionTool=muonID_tool,
26 ))
27
28 return acc
ComponentAccumulator TrackLeptonDecorationCfg(cfgFlags)