3 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
4 from AthenaConfiguration.ComponentFactory
import CompFactory
7 from xAODPrimitives.xAODIso
import xAODIso
as isoPar
8 deco_ptcones = [isoPar.ptcone40, isoPar.ptcone30]
9 deco_topoetcones = [isoPar.topoetcone40, isoPar.topoetcone20]
15 from InDetConfig.InDetTrackSelectionToolConfig
import InDetTrackSelectionTool_TrackTools_Cfg
21 TrackIsoTool = CompFactory.xAOD.TrackIsolationTool(name, **kwargs)
22 acc.setPrivateTools(TrackIsoTool)
27 ConfigFlags, name="MuonTrackIsolationDecorator",
28 ttvaWP = "Nonprompt_All_MaxWeight", trackPt=500., **kwargs):
31 from TrackVertexAssociationTool.TrackVertexAssociationToolConfig
import isoTTVAToolCfg
32 ttvaTool = result.popToolsAndMerge(
34 from InDetConfig.InDetTrackSelectionToolConfig
import isoTrackSelectionToolCfg
35 trackSelTool = result.popToolsAndMerge(
38 wpName =
"{WP}TTVA_pt{ptCut}".
format(WP = ttvaWP, ptCut = trackPt)
39 kwargs.setdefault(
"customName", wpName)
41 kwargs.setdefault(
"PtMin", 2500.)
42 from IsolationAlgs.IsoToolsConfig
import TrackIsolationToolCfg
43 kwargs.setdefault(
"IsolationTool", result.popToolsAndMerge(
46 TrackSelectionTool=trackSelTool)))
47 theAlg = CompFactory.DerivationFramework.TrackIsolationDecorAlg(name = name, **kwargs)
48 result.addEventAlgo(theAlg, primary =
True)
53 from IsolationAlgs.IsoToolsConfig
import MuonCaloIsolationToolCfg
55 kwargs.setdefault(
"PtMin", 2500.)
57 saveOnlyRequestedCorrections=
True)))
58 the_alg = CompFactory.DerivationFramework.CaloIsolationDecorAlg(name, **kwargs)
59 result.addEventAlgo(the_alg, primary=
True)
63 from IsolationAlgs.IsoToolsConfig
import MuonCaloIsolationToolCfg
65 kwargs.setdefault(
"PtMin", 2500.)
67 saveOnlyRequestedCorrections=
True)))
68 the_alg = CompFactory.DerivationFramework.PflowIsolationDecorAlg(name, **kwargs)
69 result.addEventAlgo(the_alg, primary=
True)
73 def TrackIsolationCfg(ConfigFlags, TrackCollection="InDetTrackParticles", TrackSelections = []):
75 for WP
in [
'Nonprompt_All_MaxWeight',
'Tight']:
76 for trackPt
in 500, 1000:
78 name =
"TrackIsoDecorAlg{container}{WP}{Pt}".
format(container = TrackCollection,
79 WP = WP, Pt = trackPt),
82 TrackCollection = TrackCollection,
83 TrackSelections = TrackSelections))
85 name =
"CaloIsoDecorAlg{container}".
format(container = TrackCollection),
86 TrackCollection = TrackCollection,
87 TrackSelections = TrackSelections))
90 name =
"PflowIsoDecorAlg{container}".
format(container = TrackCollection),
91 TrackCollection = TrackCollection,
92 TrackSelections = TrackSelections))