ATLAS Offline Software
Loading...
Searching...
No Matches
python.HLT.Jet.JetTrackingConfig Namespace Reference

Functions

 JetFSTrackingCfg (flags, trkopt, RoIs)
 JetRoITrackingCfg (flags, jetsIn, trkopt, RoIs)

Function Documentation

◆ JetFSTrackingCfg()

python.HLT.Jet.JetTrackingConfig.JetFSTrackingCfg ( flags,
trkopt,
RoIs )
Create the tracking CA and return it as well as the output name dictionary 

Definition at line 19 of file JetTrackingConfig.py.

19def JetFSTrackingCfg(flags, trkopt, RoIs):
20 """ Create the tracking CA and return it as well as the output name dictionary """
21 seqname = f"JetFSTracking_{trkopt}_RecoSequence"
22 acc = ComponentAccumulator()
23 acc.addSequence(parOR(seqname),primary=True)
24
25 acc.merge(commonInDetFullScanCfg(flags),seqname)
26
27 # get the jetContext for trkopt
28 jetContext = flags.Jet.Context[trkopt]
29
30 acc.addEventAlgo(
31 getUsedInVertexFitTrackDecoratorAlg(
32 trackCont = jetContext["Tracks"],
33 vtxCont = jetContext["Vertices"]
34 ),
35 seqname
36 )
37
38 # Create the TTVA
39 acc.addEventAlgo(
41 jetContext, algname="jetalg_TrackPrep"+trkopt,
42 # # parameters for the CP::TrackVertexAssociationTool (or the TrackVertexAssociationTool.getTTVAToolForReco function) :
43 #WorkingPoint = "Nonprompt_All_MaxWeight", # this is the new default in offline (see also CHS configuration in StandardJetConstits.py)
44 WorkingPoint = "Custom",
45 d0_cut = 2.0,
46 dzSinTheta_cut = 2.0,
47 doPVPriority = flags.Trigger.InDetTracking.fullScan.adaptiveVertex,
48 ),
49 seqname
50 )
51
52 # Add the pseudo-jet creator
53 acc.addEventAlgo(
54 CompFactory.PseudoJetAlgorithm(
55 f"pjgalg_{jetContext['GhostTracksLabel']}",
56 InputContainer=jetContext["Tracks"],
57 OutputContainer=jetContext["GhostTracks"],
58 Label=jetContext["GhostTracksLabel"],
59 SkipNegativeEnergy=True,
60 ),
61 seqname
62 )
63
64 return acc
65
66@AccumulatorCache
getJetTrackVtxAlg(trkProperties, algname="jetTVA", **ttva_overide)

◆ JetRoITrackingCfg()

python.HLT.Jet.JetTrackingConfig.JetRoITrackingCfg ( flags,
jetsIn,
trkopt,
RoIs )
Create the tracking CA and return it as well as the output name dictionary 

Definition at line 67 of file JetTrackingConfig.py.

67def JetRoITrackingCfg(flags, jetsIn, trkopt, RoIs):
68 """ Create the tracking CA and return it as well as the output name dictionary """
69
70 acc = ComponentAccumulator()
71
72 acc.addEventAlgo(CompFactory.AthViews.ViewDataVerifier(
73 name = "VDVInDetFTF_jetSuper",
74 DataObjects = {
75 ('xAOD::JetContainer' , 'StoreGateSvc+HLT_AntiKt4EMTopoJets_subjesIS_fastftag'),
76 }
77 ))
78
79 assert trkopt == "roiftf"
80
81 from AthenaCommon.Logging import logging
82 log = logging.getLogger(__name__)
83 flagsWithTrk = getFlagsForActiveConfig(flags, 'jetSuper', log)
84
85 acc.merge(
86 trigInDetFastTrackingCfg(
87 flagsWithTrk,
88 RoIs,
89 signatureName="jetSuper",
90 in_view=True
91 )
92 )
93
94 if flagsWithTrk.Trigger.Jet.doJetSuperPrecisionTracking:
95 acc.merge(
96 trigInDetPrecisionTrackingCfg(
97 flagsWithTrk,
98 RoIs,
99 signatureName="jetSuper",
100 in_view=False
101 )
102 )
103
104 vertexInputTracks = flagsWithTrk.Tracking.ActiveConfig.tracks_IDTrig
105
106 else:
107 vertexInputTracks = flagsWithTrk.Tracking.ActiveConfig.tracks_FTF
108
109
110 acc.merge(
111 trigInDetVertexingCfg(flagsWithTrk,
112 inputTracks = vertexInputTracks,
113 outputVtx = flagsWithTrk.Tracking.ActiveConfig.vertex)
114 )
115
116 # make sure we output only the key,value related to tracks (otherwise, alg duplication issues)
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
121
122 return acc, outmap
123