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

Classes

class  JetHypoAlgType
 — Menu Sequence helpers — More...

Functions

 getCaloInputMaker ()
 — Input Makers -—
 getTrackingInputMaker (AthConfigFlags flags, str trkopt)
 getHitZInputMaker (AthConfigFlags flags)
 jetSelectionCfg (flags, jetDefStr, jetsIn, hypoType=JetHypoAlgType.STANDARD)
 selName (recoSequenceName, hypoType=JetHypoAlgType.STANDARD)
 hypoToolGenerator (hypoType)
 jetCaloPreselMenuSequenceGenCfg (flags, **jetDefDict)
 — Menu Sequence getters —
 jetCaloRecoMenuSequenceGenCfg (flags, clusterCalib)
 jetCaloHypoMenuSequenceGenCfg (flags, isPerf, **jetDefDict)
 jetHICaloHypoMenuSequenceGenCfg (flags, isPerf, **jetRecoDict)
 jetFSTrackingHypoMenuSequenceGenCfg (flags, isPerf, **jetDefDict)
 jetRoITrackJetTagSelCfg (flags, preselJetDef, isPresel=True)
 jetRoITrackJetTagHypoMenuSequenceGenCfg (flags, jetDef, isPresel=True)
 jetRoIHitZRecoCfg (flags, preselJetDef)
 jetRoIHitZSelCfg (flags, preselJetDef)
 jetRoIHitZHypoMenuSequenceGenCfg (flags, jetDef)

Variables

 log = logging.getLogger(__name__)

Function Documentation

◆ getCaloInputMaker()

getCaloInputMaker ( )

— Input Makers -—

Definition at line 31 of file JetMenuSequencesConfig.py.

31def getCaloInputMaker():
32 from TrigT2CaloCommon.CaloDef import clusterFSInputMaker
33 InputMakerAlg = clusterFSInputMaker()
34 return InputMakerAlg
35
36# For later steps, where calo reco should not be run
37# The same instance of an algorithm cannot be run in different steps
38# Used for chains that use tracking

◆ getHitZInputMaker()

getHitZInputMaker ( AthConfigFlags flags)

Definition at line 88 of file JetMenuSequencesConfig.py.

88def getHitZInputMaker(flags : AthConfigFlags):
89 return CompFactory.EventViewCreatorAlgorithm(
90 "IMJetRoIHitZ",
91 mergeUsingFeature = False,
92 RoITool = CompFactory.ViewCreatorJetSuperROITool(
93 'ViewCreatorJetSuperRoIHitZ',
94 RoisWriteHandleKey = recordable( 'HLT_Roi_JetSuperHitZ' ),
95 RoIEtaWidth = flags.Trigger.InDetTracking.jetSuper.etaHalfWidth,
96 RoIPhiWidth = flags.Trigger.InDetTracking.jetSuper.phiHalfWidth,
97 RoIZWidth = flags.Trigger.InDetTracking.jetSuper.zedHalfWidth,
98 ),
99 Views = "JetSuperRoIHitZViews",
100 InViewRoIs = "InViewRoIs",
101 RequireParentView = False,
102 ViewFallThrough = True,
103 )
104

◆ getTrackingInputMaker()

getTrackingInputMaker ( AthConfigFlags flags,
str trkopt )

Definition at line 39 of file JetMenuSequencesConfig.py.

39def getTrackingInputMaker(flags : AthConfigFlags, trkopt : str):
40 if trkopt=="ftf":
41 log.debug( "jet FS tracking: useDynamicRoiZWidth: %s", flags.Trigger.InDetTracking.fullScan.useDynamicRoiZWidth )
42
43 roiUpdater = None
44 if flags.Trigger.InDetTracking.fullScan.useDynamicRoiZWidth:
45 roiUpdater = CompFactory.RoiUpdaterTool( useBeamSpot=True )
46
47 log.info( roiUpdater )
48
49 InputMakerAlg = CompFactory.InputMakerForRoI(
50 "IM_Jet_TrackingStep",
51 mergeUsingFeature = False,
52 RoITool = CompFactory.ViewCreatorFSROITool(
53 name="RoiTool_FS",
54 RoiUpdater=roiUpdater,
55 RoisWriteHandleKey=recordable( flags.Trigger.InDetTracking.fullScan.roi )
56 ),
57 RoIs = trkFSRoI,
58 )
59 else:
60 InputMakerAlg = CompFactory.InputMakerForRoI(
61 "IM_Jet_TrackingStep",
62 mergeUsingFeature = False,
63 RoITool = CompFactory.ViewCreatorInitialROITool(),
64 RoIs = trkFSRoI,
65 )
66
67 elif trkopt=="roiftf":
68 InputMakerAlg = CompFactory.EventViewCreatorAlgorithm(
69 "IMJetRoIFTF",
70 mergeUsingFeature = False,
71 RoITool = CompFactory.ViewCreatorJetSuperROITool(
72 'ViewCreatorJetSuperRoI',
73 RoisWriteHandleKey = recordable( flags.Trigger.InDetTracking.jetSuper.roi ),
74 RoIEtaWidth = flags.Trigger.InDetTracking.jetSuper.etaHalfWidth,
75 RoIPhiWidth = flags.Trigger.InDetTracking.jetSuper.phiHalfWidth,
76 RoIZWidth = flags.Trigger.InDetTracking.jetSuper.zedHalfWidth,
77 ),
78 Views = "JetSuperRoIViews",
79 InViewRoIs = "InViewRoIs",
80 RequireParentView = False,
81 ViewFallThrough = True,
82 )
83 else:
84 raise RuntimeError(f"Unrecognised trkopt '{trkopt}' provided, choices are ['ftf','roiftf']")
85 return InputMakerAlg
86
87# The same super-RoI as the RoI FTF step, in views of its own

◆ hypoToolGenerator()

hypoToolGenerator ( hypoType)
returns function (that in turn returns hypo tool) for menu sequence

Definition at line 173 of file JetMenuSequencesConfig.py.

173def hypoToolGenerator(hypoType):
174 """returns function (that in turn returns hypo tool) for menu sequence"""
175 def trigStreamerHypoTool(flags, chainDict):
176 return CompFactory.TrigStreamerHypoTool(chainDict["chainName"])
177 return {
178 JetHypoAlgType.STANDARD: trigJetHypoToolFromDict,
179 JetHypoAlgType.PASSTHROUGH: trigStreamerHypoTool,
180 JetHypoAlgType.CALOPRESEL: caloPreselJetHypoToolFromDict,
181 JetHypoAlgType.ROIPRESEL: roiPreselJetHypoToolFromDict,
182 JetHypoAlgType.HITZPRESEL: hitZPreselJetHypoToolFromDict,
183 }[hypoType]
184
185
186

◆ jetCaloHypoMenuSequenceGenCfg()

jetCaloHypoMenuSequenceGenCfg ( flags,
isPerf,
** jetDefDict )

Definition at line 238 of file JetMenuSequencesConfig.py.

238def jetCaloHypoMenuSequenceGenCfg(flags, isPerf, **jetDefDict):
239 jetsOut, jetDef = jetDefDict['final']
240 jetDefStr = jetDefToString(jetDef)
241 reco = InEventRecoCA(f"jetSeqCaloHypo_{jetDefStr}{'_perf' if isPerf else ''}_RecoSequence", inputMaker=getCaloInputMaker())
242
243 if 'LC' in jetDef.inputdef.label:
244 reco.mergeReco(jetmetTopoClusteringCfg_LC(flags, RoIs=''))
245 else:
246 reco.mergeReco(jetmetTopoClusteringCfg(flags, RoIs=''))
247
248 from .JetRecoSequencesConfig import JetRecoCfg
249 jetreco = JetRecoCfg(flags, **jetDefDict)
250 reco.mergeReco(jetreco)
251 log.debug("Generating jet calo hypo menu sequence for reco %s",jetDef.fullname())
252
253 hypoType = JetHypoAlgType.PASSTHROUGH if isPerf else JetHypoAlgType.STANDARD
254 selAcc = SelectionCA(selName(reco.name, hypoType=hypoType))
255 selAcc.mergeReco(reco)
256 selAcc.mergeHypo(jetSelectionCfg(flags, jetDefStr=jetDefStr, jetsIn=jetsOut, hypoType=hypoType))
257
258 return MenuSequence(flags, selAcc, HypoToolGen=hypoToolGenerator(hypoType))
259
260
261# A full hypo selecting only on heavy ion calo jets (step 1)
262# Passing isPerf = True disables the hypo
263# We set RoIs='' for same reason as described for jetCaloPreselMenuSequence
264@AccumulatorCache

◆ jetCaloPreselMenuSequenceGenCfg()

jetCaloPreselMenuSequenceGenCfg ( flags,
** jetDefDict )

— Menu Sequence getters —

Definition at line 195 of file JetMenuSequencesConfig.py.

195def jetCaloPreselMenuSequenceGenCfg(flags, **jetDefDict):
196 jetsOut, jetDef = jetDefDict['final']
197 jetDefStr = jetDefToString(jetDef)
198 reco = InEventRecoCA(f"jetSeqCaloPresel_{jetDefStr}_RecoSequence", inputMaker=getCaloInputMaker())
199
200 if 'LC' in jetDef.inputdef.label:
201 reco.mergeReco(jetmetTopoClusteringCfg_LC(flags, RoIs=''))
202 else:
203 reco.mergeReco(jetmetTopoClusteringCfg(flags, RoIs=''))
204
205 from .JetRecoSequencesConfig import JetRecoCfg
206 jetreco = JetRecoCfg(flags, **jetDefDict)
207 reco.mergeReco(jetreco)
208
209 log.debug("Generating jet preselection menu sequence for reco %s",jetDef.fullname())
210 selAcc = SelectionCA(selName(reco.name, hypoType=JetHypoAlgType.CALOPRESEL))
211 selAcc.mergeReco(reco)
212 selAcc.mergeHypo(jetSelectionCfg(flags, jetDefStr=jetDefStr, jetsIn=jetsOut, hypoType=JetHypoAlgType.CALOPRESEL))
213
214 return MenuSequence(flags, selAcc, HypoToolGen=hypoToolGenerator(hypoType=JetHypoAlgType.CALOPRESEL))
215
216# A null preselection, which will only run the cluster making (step 1)
217# We set RoIs='' for same reason as described for jetCaloPreselMenuSequence
218@AccumulatorCache

◆ jetCaloRecoMenuSequenceGenCfg()

jetCaloRecoMenuSequenceGenCfg ( flags,
clusterCalib )

Definition at line 219 of file JetMenuSequencesConfig.py.

219def jetCaloRecoMenuSequenceGenCfg(flags, clusterCalib):
220 reco = InEventRecoCA(f"jetSeqCaloReco_{clusterCalib}_RecoSequence", inputMaker=getCaloInputMaker())
221
222 if clusterCalib=='lcw':
223 reco.mergeReco(jetmetTopoClusteringCfg_LC(flags, RoIs=''))
224 else:
225 reco.mergeReco(jetmetTopoClusteringCfg(flags, RoIs=''))
226
227 selAcc = SelectionCA(selName(reco.name, hypoType=JetHypoAlgType.PASSTHROUGH))
228 selAcc.mergeReco(reco)
229 selAcc.mergeHypo(jetSelectionCfg(flags, jetDefStr="caloreco", jetsIn=None, hypoType=JetHypoAlgType.PASSTHROUGH))
230
231 return MenuSequence(flags, selAcc, HypoToolGen=hypoToolGenerator(hypoType=JetHypoAlgType.PASSTHROUGH))
232
233
234# A full hypo selecting only on calo jets (step 1)
235# Passing isPerf = True disables the hypo
236# We set RoIs='' for same reason as described for jetCaloPreselMenuSequence
237@AccumulatorCache

◆ jetFSTrackingHypoMenuSequenceGenCfg()

jetFSTrackingHypoMenuSequenceGenCfg ( flags,
isPerf,
** jetDefDict )

Definition at line 285 of file JetMenuSequencesConfig.py.

285def jetFSTrackingHypoMenuSequenceGenCfg(flags, isPerf, **jetDefDict):
286 jetsOut, jetDef = jetDefDict['final']
287 jetDefStr = jetDefToString(jetDef)
288 trkopt = jetDef.context
289 reco = InEventRecoCA(f"jetFSTrackingHypo_{jetDefStr}{'_perf' if isPerf else ''}_RecoSequence", inputMaker=getTrackingInputMaker(flags,trkopt))
290
291 assert trkopt != "notrk"
292 from .JetTrackingConfig import JetFSTrackingCfg
293 trk_acc = JetFSTrackingCfg(flags, trkopt, trkFSRoI)
294 reco.mergeReco(trk_acc)
295
296 from .JetRecoSequencesConfig import JetRecoCfg
297 jetreco = JetRecoCfg(flags, **jetDefDict)
298 reco.mergeReco(jetreco)
299 log.debug("Generating jet tracking hypo menu sequence for reco %s",jetDef.fullname())
300
301 if 'PFlow' in jetDef.basename and jetDef.basename.startswith('AntiKt4') and 'sub' in jetCalibFromJetDef(jetDef):
302 pvKey = flags.Trigger.InDetTracking.fullScan.vertex_jet
303 trig_evt_info_key = recordable("HLT_TCEventInfo_jet")
304
305 # Can encapsulate in another CA if necessary but only this instance
306 # currently needed
307 reco.mergeReco(
308 TrigEventInfoRecorderAlgCfg(
309 flags,
310 name="TrigEventInfoRecorderAlg_jet",
311 decoratePFlowInfo=True,
312 decorateEMTopoInfo=False,
313 trigEventInfoKey=trig_evt_info_key, primaryVertexInputName=pvKey,
314 RhoKey_EMTopo='HLT_Kt4EMTopoEventShape', RhoKey_PFlow='HLT_Kt4EMPFlowEventShape'
315 )
316 )
317
318 hypoType = JetHypoAlgType.PASSTHROUGH if isPerf else JetHypoAlgType.STANDARD
319 selAcc = SelectionCA(selName(reco.name, hypoType=hypoType))
320 selAcc.mergeReco(reco)
321 selAcc.mergeHypo(jetSelectionCfg(flags, jetDefStr=jetDefStr, jetsIn=jetsOut, hypoType=hypoType))
322
323 return MenuSequence(flags, selAcc, HypoToolGen=hypoToolGenerator(hypoType))
324
325
326# A full hypo selecting on jets with RoI track reco (step 2)
327# Needs to be preceded by a presel sequence, and be provided
328# with the input jets from which to define RoIs
329# Presel jets to be reused, which makes ghost association impossible
330# Substitute DR association decorator
331@AccumulatorCache

◆ jetHICaloHypoMenuSequenceGenCfg()

jetHICaloHypoMenuSequenceGenCfg ( flags,
isPerf,
** jetRecoDict )

Definition at line 265 of file JetMenuSequencesConfig.py.

265def jetHICaloHypoMenuSequenceGenCfg(flags, isPerf, **jetRecoDict):
266 reco = InEventRecoCA(f"jetSeqHICaloHypo_{jetRecoDict['jetDefStr']}{'_perf' if isPerf else ''}_RecoSequence", inputMaker=getCaloInputMaker())
267
268 reco.mergeReco( HICaloTowerCfg(flags) )
269
270 from .JetHIConfig import jetHIRecoSequenceCA
271 jetreco, jetsOut, jetDef = jetHIRecoSequenceCA(flags, clustersKey="HLT_HICaloClustersFS",towerKey = fs_towers, **jetRecoDict)
272 reco.mergeReco(jetreco)
273 log.debug("Generating jet HI calo hypo menu sequence for reco %s",jetDef.fullname())
274 hypoType = JetHypoAlgType.PASSTHROUGH if isPerf else JetHypoAlgType.STANDARD
275 selAcc = SelectionCA(selName(reco.name, hypoType=hypoType))
276 selAcc.mergeReco(reco)
277 selAcc.mergeHypo(jetSelectionCfg(flags, jetDefStr=jetRecoDict['jetDefStr'], jetsIn=jetsOut, hypoType=hypoType))
278
279 return MenuSequence(flags, selAcc, HypoToolGen=hypoToolGenerator(hypoType))
280
281
282# A full hypo selecting on jets with FS track reco (step 2)
283# To combine either with a presel or a passthrough sequence
284@AccumulatorCache

◆ jetRoIHitZHypoMenuSequenceGenCfg()

jetRoIHitZHypoMenuSequenceGenCfg ( flags,
jetDef )

Definition at line 435 of file JetMenuSequencesConfig.py.

435def jetRoIHitZHypoMenuSequenceGenCfg(flags, jetDef):
436 selAcc, hypoType = jetRoIHitZSelCfg(flags, jetDef)
437 return MenuSequence(flags, selAcc, HypoToolGen=hypoToolGenerator(hypoType))

◆ jetRoIHitZRecoCfg()

jetRoIHitZRecoCfg ( flags,
preselJetDef )

Definition at line 391 of file JetMenuSequencesConfig.py.

391def jetRoIHitZRecoCfg(flags, preselJetDef):
392 jetDefStr = jetDefToString(preselJetDef)+'_roihitz'
393 reco = InEventRecoCA(
394 f"jetRoIHitZHypo_{jetDefStr}_RecoSequence",
395 inputMaker=getHitZInputMaker(flags)
396 )
397
398 from .JetRecoSequencesConfig import (
399 HitZJetCopyAlgCfg, formatFilteredJetsName, JET_DEFAULT_VIEW_PT_MIN_GEV
400 )
401 from .JetRecoCommon import getDecorList
402 hitzjet_acc, hitzJetDef = HitZJetCopyAlgCfg(flags,preselJetDef)
403 hitzJetName = recordable(hitzJetDef.fullname())
404 reco.mergeReco(hitzjet_acc)
405
406 seqname = "JetRoIHitZ_RecoSequence"
407 reco.addSequence(parOR(seqname),primary=True)
408 from ..Bjet.BjetHitZConfig import hitZRoICfg
409 reco.merge(hitZRoICfg(flags, hitzJetName, RoIs=reco.inputMaker().InViewRoIs), seqname)
410 reco.inputMaker().ViewNodeName = seqname
411
412 # Not JetViewAlgCfg: its cache keys on the JetDefinition, whose hash ignores
413 # the suffix, so it would hand back the RoI FTF step's _fastftag view alg
414 filtered_jetsIn = formatFilteredJetsName(hitzJetName,JET_DEFAULT_VIEW_PT_MIN_GEV)
415 reco.addEventAlgo(CompFactory.JetViewAlg(
416 "jetview_"+filtered_jetsIn,
417 InputContainer=hitzJetName,
418 OutputContainer=filtered_jetsIn,
419 PtMin=JET_DEFAULT_VIEW_PT_MIN_GEV*1e3,
420 DecorDeps=getDecorList(hitzJetDef),
421 ))
422 return reco, filtered_jetsIn
423
424# HitZ preselection on the super-RoI hits, before any tracking
425@AccumulatorCache

◆ jetRoIHitZSelCfg()

jetRoIHitZSelCfg ( flags,
preselJetDef )

Definition at line 426 of file JetMenuSequencesConfig.py.

426def jetRoIHitZSelCfg(flags, preselJetDef):
427 jetDefStr = jetDefToString(preselJetDef)+'_roihitz'
428 reco, filtered_jetsIn = jetRoIHitZRecoCfg(flags, preselJetDef)
429 hypoType = JetHypoAlgType.HITZPRESEL
430 selAcc = SelectionCA(selName(reco.name, hypoType=hypoType))
431 selAcc.mergeReco(reco)
432 selAcc.mergeHypo(jetSelectionCfg(flags, jetDefStr=jetDefStr, jetsIn=filtered_jetsIn, hypoType=hypoType))
433 return selAcc, hypoType
434

◆ jetRoITrackJetTagHypoMenuSequenceGenCfg()

jetRoITrackJetTagHypoMenuSequenceGenCfg ( flags,
jetDef,
isPresel = True )

Definition at line 384 of file JetMenuSequencesConfig.py.

384def jetRoITrackJetTagHypoMenuSequenceGenCfg(flags, jetDef, isPresel=True):
385 selAcc, hypoType = jetRoITrackJetTagSelCfg(flags, jetDef, isPresel)
386 return MenuSequence(flags, selAcc, HypoToolGen=hypoToolGenerator(hypoType))
387
388
389
390# HitZ on the super-RoI hits, before any tracking: returns the reco and the decorated jets

◆ jetRoITrackJetTagSelCfg()

jetRoITrackJetTagSelCfg ( flags,
preselJetDef,
isPresel = True )

Definition at line 332 of file JetMenuSequencesConfig.py.

332def jetRoITrackJetTagSelCfg(flags, preselJetDef, isPresel=True):
333 # Seems odd, but we have to combine event and view execution here
334 # where InViewRecoCA will do all in view
335 jetDefStr = jetDefToString(preselJetDef)+'_roiftf'
336 trkopt = 'roiftf'
337 reco = InEventRecoCA(
338 f"jetRoITrackJetTagHypo_{jetDefStr}_RecoSequence",
339 inputMaker=getTrackingInputMaker(flags,trkopt)
340 )
341
342 # Decorate EventInfo with online beamspot info in global context -- avoid multiple executes
343 from ..Bjet.BjetFlavourTaggingConfig import OnlineBeamspotAugmenterCfg
344 reco.mergeReco(OnlineBeamspotAugmenterCfg(flags))
345
346 # Add to top-level serial sequence to ensure it is ready for in-view reco
347 from .JetRecoSequencesConfig import (
348 FastFtaggedJetCopyAlgCfg, JetRoITrackJetTagSequenceCfg, JetViewAlgCfg, formatFilteredJetsName, JET_DEFAULT_VIEW_PT_MIN_GEV
349 )
350 ftagjet_acc, ftaggedJetDef = FastFtaggedJetCopyAlgCfg(flags,preselJetDef)
351 ftaggedJetName = recordable(ftaggedJetDef.fullname())
352 reco.mergeReco(ftagjet_acc)
353
354 track_acc = JetRoITrackJetTagSequenceCfg(
355 flags,
356 ftaggedJetName,
357 trkopt,
358 RoIs=reco.inputMaker().InViewRoIs)
359 # Explicitly add the sequence here that is to run in the super-RoI view
360 seqname = f"JetRoITrackJetTag_{trkopt}_RecoSequence"
361 reco.addSequence(parOR(seqname),primary=True)
362 verifier = CompFactory.AthViews.ViewDataVerifier("roiftf_ftag_ViewDataVerifier")
363 verifier.DataObjects = [
364 ('SG::AuxElement',f'EventInfo.{dec}')
365 for dec in ['onlineBeamPosSigmaXY','onlineBeamPosX','onlineBeamPosY','onlineBeamPosZ']
366 ]
367 reco.addEventAlgo(verifier,seqname)
368 reco.merge(track_acc,seqname)
369 reco.inputMaker().ViewNodeName = seqname
370
371 # Run the JetViewAlg sequence to filter out low pT jets
372 # Have to run it outside of JetRoITrackJetTagSequence (which runs in EventView), so that hypo recognises the filtered jets.
373 jetview_Acc = JetViewAlgCfg(flags,jetDef=ftaggedJetDef)
374 filtered_jetsIn = formatFilteredJetsName(ftaggedJetName,JET_DEFAULT_VIEW_PT_MIN_GEV)
375 reco.merge(jetview_Acc)
376
377 # Needs track-to-jet association here, maybe with dR decorator
378 hypoType = JetHypoAlgType.ROIPRESEL if isPresel else JetHypoAlgType.STANDARD
379 selAcc = SelectionCA(selName(reco.name, hypoType=hypoType))
380 selAcc.mergeReco(reco)
381 selAcc.mergeHypo(jetSelectionCfg(flags, jetDefStr=jetDefStr, jetsIn=filtered_jetsIn, hypoType=hypoType))
382 return selAcc, hypoType
383

◆ jetSelectionCfg()

jetSelectionCfg ( flags,
jetDefStr,
jetsIn,
hypoType = JetHypoAlgType.STANDARD )
constructs CA with hypo alg given arguments 

Definition at line 135 of file JetMenuSequencesConfig.py.

135def jetSelectionCfg(flags, jetDefStr, jetsIn, hypoType=JetHypoAlgType.STANDARD):
136 """constructs CA with hypo alg given arguments """
137 if hypoType==JetHypoAlgType.PASSTHROUGH:
138 hyponame = f"TrigStreamerHypoAlg_{jetDefStr}_passthrough"
139 hypo = CompFactory.TrigStreamerHypoAlg(hyponame)
140 else:
141 assert jetsIn is not None
142 if hypoType==JetHypoAlgType.CALOPRESEL:
143 hyponame = f"TrigJetHypoAlg_{jetDefStr}_calopresel"
144 hypo = CompFactory.TrigJetHypoAlg(hyponame, Jets=jetsIn, DoPresel=True)
145 elif hypoType==JetHypoAlgType.ROIPRESEL:
146 hyponame = f"TrigJetHypoAlg_{jetDefStr}_roipresel"
147 hypo = CompFactory.TrigJetHypoAlg(hyponame, Jets=jetsIn, DoPresel=True)
148 elif hypoType==JetHypoAlgType.HITZPRESEL:
149 hyponame = f"TrigJetHypoAlg_{jetDefStr}_hitzpresel"
150 hypo = CompFactory.TrigJetHypoAlg(hyponame, Jets=jetsIn, DoPresel=True)
151 else:
152 hyponame = f"TrigJetHypoAlg_{jetDefStr}"
153 hypo = CompFactory.TrigJetHypoAlg(hyponame, Jets=jetsIn)
154 ca = ComponentAccumulator()
155 ca.addEventAlgo(hypo)
156 return ca
157

◆ selName()

selName ( recoSequenceName,
hypoType = JetHypoAlgType.STANDARD )
Construct selection (the name passed to SelectionCA) given reco sequence and hypo type

Definition at line 158 of file JetMenuSequencesConfig.py.

158def selName(recoSequenceName, hypoType=JetHypoAlgType.STANDARD):
159 """Construct selection (the name passed to SelectionCA) given reco sequence and hypo type"""
160 selname = recoSequenceName.replace('RecoSequence','MenuSequence')
161 if hypoType==JetHypoAlgType.PASSTHROUGH:
162 selname += "_passthrough"
163 else:
164 if hypoType==JetHypoAlgType.CALOPRESEL:
165 selname += "_calopresel"
166 elif hypoType==JetHypoAlgType.ROIPRESEL:
167 selname += "_roipresel"
168 elif hypoType==JetHypoAlgType.HITZPRESEL:
169 selname += "_hitzpresel"
170 return selname
171
172

Variable Documentation

◆ log

python.HLT.Jet.JetMenuSequencesConfig.log = logging.getLogger(__name__)

Definition at line 24 of file JetMenuSequencesConfig.py.