ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
PhysicsAnalysis
JetTagging
JetTagAlgs
BTagging
python
TrackLeptonConfig.py
Go to the documentation of this file.
1
# Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
2
3
from
ElectronPhotonSelectorTools.AsgElectronLikelihoodToolsConfig
import
AsgElectronLikelihoodToolCfg
4
from
MuonSelectorTools.MuonSelectorToolsConfig
import
MuonLoosenedNonCalibratedSelectionToolCfg
5
from
ElectronPhotonSelectorTools.LikelihoodEnums
import
LikeEnum
6
7
from
AthenaConfiguration.ComponentAccumulator
import
ComponentAccumulator
8
from
AthenaConfiguration.ComponentFactory
import
CompFactory
9
10
11
def
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
))
27
28
return
acc
python.TrackLeptonConfig.TrackLeptonDecorationCfg
ComponentAccumulator TrackLeptonDecorationCfg(cfgFlags)
Definition
TrackLeptonConfig.py:11
Generated on
for ATLAS Offline Software by
1.17.0