ATLAS Offline Software
Loading...
Searching...
No Matches
TrackLeptonConfig.py
Go to the documentation of this file.
1# Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
2
3from ElectronPhotonSelectorTools.AsgElectronLikelihoodToolsConfig import AsgElectronLikelihoodToolCfg
4from MuonSelectorTools.MuonSelectorToolsConfig import MuonLoosenedNonCalibratedSelectionToolCfg
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 MuonLoosenedNonCalibratedSelectionToolCfg(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 # containers reached through the electron/muon links, loaded up front for MT
27 ExtraInputs=[
28 ("xAOD::TrackParticleContainer", "StoreGateSvc+GSFTrackParticles"),
29 ("xAOD::TrackParticleContainer", "StoreGateSvc+ExtrapolatedMuonTrackParticles"),
30 ],
31 ))
32
33 return acc
ComponentAccumulator TrackLeptonDecorationCfg(cfgFlags)