11 from AthenaCommon
import Logging
12 jrtlog = Logging.logging.getLogger(
'JetRecToolsConfig')
14 from AthenaConfiguration.ComponentFactory
import CompFactory
15 from JetRecConfig.JetRecConfig
import isAnalysisRelease
20 """returns a InDetTrackSelectionTool configured with toolProps
21 (except in Analysis releases where some un-used (?) options are explicitely turned off)
23 idtracksel = CompFactory.getComp(
"InDet::InDetTrackSelectionTool")(toolname, **toolProps)
27 idtracksel.UseTrkTrackTools =
False
28 idtracksel.Extrapolator =
""
29 idtracksel.TrackSummaryTool =
""
34 DecorDeps = [
"TTVA_AMVFWeights_forReco",
"TTVA_AMVFVertices_forReco"]
35 trkProperties = jetdef._contextDic
38 trackToolProps = dict(**trkProperties[
"trackSelOptions"])
42 trackToolProps.update( CutLevel=trkProperties[
'GhostTrackCutLevel'] )
43 outContainerKey =
"JetTracks"
44 trkOpt= trkOpt+
'ghost'
46 outContainerKey =
"JetTracksQualityCuts"
49 trkSelAlg = CompFactory.JetTrackSelectionAlg( f
"trackselalg_{trkOpt}_{trkProperties[outContainerKey]}",
51 InputContainer = trkProperties[
"Tracks"],
52 OutputContainer = trkProperties[outContainerKey],
60 """ theSequence and ttva_overide are options used in trigger (HLT/Jet/JetTrackingConfig.py)"""
61 from TrackVertexAssociationTool.TrackVertexAssociationToolConfig
import getTTVAToolForReco
64 TrackContName = trkProperties[
"Tracks"],
65 HardScatterLinkDeco =
""
68 ttva_options.update(**ttva_overide)
72 alg = CompFactory.JetTrackVtxAssoAlg(algname,
73 TrackParticleContainer = trkProperties[
"Tracks"],
74 TrackVertexAssociation = trkProperties[
"TVA"],
75 VertexContainer = trkProperties[
"Vertices"],
76 TrackVertexAssoTool = idtvassoc
83 return CompFactory.JetPFlowSelectionAlg(
"pflowselalg",
84 electronID =
"LHMedium",
85 ChargedPFlowInputContainer =
"JetETMissChargedParticleFlowObjects",
86 NeutralPFlowInputContainer =
"JetETMissNeutralParticleFlowObjects",
87 ChargedPFlowOutputContainer =
"GlobalPFlowChargedParticleFlowObjects",
88 NeutralPFlowOutputContainer =
"GlobalPFlowNeutralParticleFlowObjects"