ATLAS Offline Software
Functions
python.HLT.Jet.JetTrackingConfig Namespace Reference

Functions

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

Function Documentation

◆ JetFSTrackingCfg()

def 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.

19 def 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(
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

◆ JetRoITrackingCfg()

def 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.

67 def 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(
87  flagsWithTrk,
88  RoIs,
89  signatureName="jetSuper",
90  in_view=True
91  )
92  )
93 
94  if flagsWithTrk.Trigger.Jet.doJetSuperPrecisionTracking:
95  acc.merge(
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 
python.HLT.CommonSequences.FullScanInDetConfig.commonInDetFullScanCfg
ComponentAccumulator commonInDetFullScanCfg(AthConfigFlags flags)
Definition: FullScanInDetConfig.py:20
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
python.HLT.Jet.JetTrackingConfig.JetRoITrackingCfg
def JetRoITrackingCfg(flags, jetsIn, trkopt, RoIs)
Definition: JetTrackingConfig.py:67
JetRecToolsConfig.getJetTrackVtxAlg
def getJetTrackVtxAlg(trkProperties, algname="jetTVA", **ttva_overide)
Definition: JetRecToolsConfig.py:59
python.TrigInDetConfig.trigInDetPrecisionTrackingCfg
def trigInDetPrecisionTrackingCfg(inflags, rois, signatureName, in_view=True)
precision tracking
Definition: TrigInDetConfig.py:113
python.TrigInDetConfig.trigInDetFastTrackingCfg
def trigInDetFastTrackingCfg(inflags, roisKey="EMRoIs", signatureName='', patternMode='FTF', in_view=True)
Definition: TrigInDetConfig.py:54
python.utils.getFlagsForActiveConfig
AthConfigFlags getFlagsForActiveConfig(AthConfigFlags flags, str config_name, logging.Logger log)
Definition: Trigger/TrigTools/TrigInDetConfig/python/utils.py:9
python.JetAnalysisCommon.parOR
parOR
Definition: JetAnalysisCommon.py:271
UsedInVertexFitTrackDecoratorConfig.getUsedInVertexFitTrackDecoratorAlg
def getUsedInVertexFitTrackDecoratorAlg(trackCont="InDetTrackParticles", vtxCont="PrimaryVertices", vertexDeco="TTVA_AMVFVertices_forReco", weightDeco="TTVA_AMVFWeights_forReco")
Definition: UsedInVertexFitTrackDecoratorConfig.py:16
python.TrigInDetConfig.trigInDetVertexingCfg
def trigInDetVertexingCfg(flags, inputTracks, outputVtx)
Definition: TrigInDetConfig.py:147
python.HLT.Jet.JetTrackingConfig.JetFSTrackingCfg
def JetFSTrackingCfg(flags, trkopt, RoIs)
Definition: JetTrackingConfig.py:19