5 from JetRecTools
import JetRecToolsConfig
6 from AthenaConfiguration.ComponentFactory
import CompFactory
7 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
9 from TrigInDetConfig.utils
import getFlagsForActiveConfig
10 from TrigInDetConfig.TrigInDetConfig
import trigInDetFastTrackingCfg, trigInDetPrecisionTrackingCfg, trigInDetVertexingCfg
11 from InDetUsedInFitTrackDecoratorTool.UsedInVertexFitTrackDecoratorConfig
import getUsedInVertexFitTrackDecoratorAlg
13 from AthenaConfiguration.AccumulatorCache
import AccumulatorCache
15 from ..Config.MenuComponents
import parOR
16 from ..CommonSequences.FullScanInDetConfig
import commonInDetFullScanCfg
20 """ Create the tracking CA and return it as well as the output name dictionary """
21 seqname = f
"JetFSTracking_{trkopt}_RecoSequence"
23 acc.addSequence(
parOR(seqname),primary=
True)
28 jetContext = flags.Jet.Context[trkopt]
32 trackCont = jetContext[
"Tracks"],
33 vtxCont = jetContext[
"Vertices"]
41 jetContext, algname=
"jetalg_TrackPrep"+trkopt,
44 WorkingPoint =
"Custom",
47 doPVPriority = flags.Trigger.InDetTracking.fullScan.adaptiveVertex,
54 CompFactory.PseudoJetAlgorithm(
55 f
"pjgalg_{jetContext['GhostTracksLabel']}",
56 InputContainer=jetContext[
"Tracks"],
57 OutputContainer=jetContext[
"GhostTracks"],
58 Label=jetContext[
"GhostTracksLabel"],
59 SkipNegativeEnergy=
True,
68 """ Create the tracking CA and return it as well as the output name dictionary """
72 acc.addEventAlgo(CompFactory.AthViews.ViewDataVerifier(
73 name =
"VDVInDetFTF_jetSuper",
75 (
'xAOD::JetContainer' ,
'StoreGateSvc+HLT_AntiKt4EMTopoJets_subjesIS_fastftag'),
79 assert trkopt ==
"roiftf"
81 from AthenaCommon.Logging
import logging
82 log = logging.getLogger(__name__)
89 signatureName=
"jetSuper",
94 if flagsWithTrk.Trigger.Jet.doJetSuperPrecisionTracking:
99 signatureName=
"jetSuper",
104 vertexInputTracks = flagsWithTrk.Tracking.ActiveConfig.tracks_IDTrig
107 vertexInputTracks = flagsWithTrk.Tracking.ActiveConfig.tracks_FTF
112 inputTracks = vertexInputTracks,
113 outputVtx = flagsWithTrk.Tracking.ActiveConfig.vertex)
117 jetContext = flags.Jet.Context[trkopt]
118 outmap = { k:jetContext[k]
for k
in flags.Jet.Context.CommonTrackKeys }
119 if flags.Trigger.Jet.doJetSuperPrecisionTracking:
120 outmap[
"Tracks"] = vertexInputTracks