ATLAS Offline Software
ExoticJetSequencesConfig.py
Go to the documentation of this file.
1 # Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
2 
3 from AthenaCommon.Logging import logging
4 log = logging.getLogger("TriggerMenuMT.HLT.Jet.JetChainSequences")
5 
6 from ..Config.MenuComponents import MenuSequence, SelectionCA, InEventRecoCA
7 
8 from AthenaConfiguration.ComponentFactory import CompFactory
9 
10 def jetEJsMenuSequenceGenCfg(flags, jetsIn):
11 
12  from TrigHLTJetHypo.TrigJetHypoToolConfig import trigJetEJsHypoToolFromDict
13 
14  # Get track sequence name
15  sequenceOut = flags.Trigger.InDetTracking.fullScan.tracks_FTF
16  vertices = flags.Trigger.InDetTracking.fullScan.vertex_jet
17 
18  reco = InEventRecoCA(
19  f"EmergingJets_{jetsIn}Reco",
20  inputMaker=CompFactory.InputMakerForRoI(
21  "IM_EmergingJets",
22  RoITool = CompFactory.ViewCreatorInitialROITool(),
23  mergeUsingFeature = True
24  )
25  )
26 
27  selAcc = SelectionCA(f"EmergingJets_{jetsIn}")
28  selAcc.mergeReco(reco)
29 
30  selAcc.addHypoAlgo(
31  CompFactory.TrigJetEJsHypoAlg(
32  "L2EmergingJets",
33  Tracks = sequenceOut,
34  PV = vertices
35  )
36  )
37  return MenuSequence(flags, selAcc, HypoToolGen=trigJetEJsHypoToolFromDict)
38 
39 def jetCRVARMenuSequenceGenCfg(flags, jetsIn):
40 
41  from TrigHLTJetHypo.TrigJetHypoToolConfig import trigJetCRVARHypoToolFromDict
42  # Get track sequence name
43  from ..CommonSequences.FullScanDefs import fs_cells
44  cellsin=fs_cells
45 
46  reco = InEventRecoCA(
47  f"CalRatioVar_{jetsIn}_RecoSequence",
48  inputMaker=CompFactory.InputMakerForRoI(
49  "IM_CalRatio_HypoOnlyStep",
50  RoITool = CompFactory.ViewCreatorInitialROITool(),
51  mergeUsingFeature = True
52  )
53  )
54 
55  selAcc = SelectionCA(f"CalRatioVar_{jetsIn}")
56  selAcc.mergeReco(reco)
57  selAcc.addHypoAlgo(
58  CompFactory.TrigJetCRVARHypoAlg(
59  "L2CalRatioVar",
60  Cells = cellsin
61  )
62  )
63  return MenuSequence(flags, selAcc, HypoToolGen=trigJetCRVARHypoToolFromDict)
64 
65 
66 def jetCRMenuSequenceGenCfg(flags, jetsIn):
67 
68  from TrigHLTJetHypo.TrigJetHypoToolConfig import trigJetCRHypoToolFromDict
69 
70  # Get track sequence name
71  from ..CommonSequences.FullScanDefs import fs_cells, trkFSRoI
72  sequenceOut = flags.Trigger.InDetTracking.fullScan.tracks_FTF
73  cellsin=fs_cells
74 
75  from .JetMenuSequencesConfig import getTrackingInputMaker
76  from .JetTrackingConfig import JetFSTrackingCfg
77  trk_acc = JetFSTrackingCfg(flags, trkopt='ftf', RoIs=trkFSRoI)
78 
79  reco = InEventRecoCA(f"CalRatio_{jetsIn}Reco", inputMaker=getTrackingInputMaker(flags,'ftf'))
80  reco.mergeReco(trk_acc)
81 
82  selAcc = SelectionCA(f"CalRatio_{jetsIn}")
83  selAcc.mergeReco(reco)
84  selAcc.addHypoAlgo(
85  CompFactory.TrigJetCRHypoAlg(
86  "L2CalRatio",
87  Tracks = sequenceOut,
88  Cells = cellsin
89  )
90  )
91  return MenuSequence(flags, selAcc, HypoToolGen=trigJetCRHypoToolFromDict)
92 
python.HLT.Jet.JetMenuSequencesConfig.getTrackingInputMaker
def getTrackingInputMaker(AthConfigFlags flags, str trkopt)
Definition: JetMenuSequencesConfig.py:39
python.HLT.Jet.ExoticJetSequencesConfig.jetEJsMenuSequenceGenCfg
def jetEJsMenuSequenceGenCfg(flags, jetsIn)
Definition: ExoticJetSequencesConfig.py:10
python.HLT.Jet.ExoticJetSequencesConfig.jetCRMenuSequenceGenCfg
def jetCRMenuSequenceGenCfg(flags, jetsIn)
Definition: ExoticJetSequencesConfig.py:66
python.HLT.Jet.ExoticJetSequencesConfig.jetCRVARMenuSequenceGenCfg
def jetCRVARMenuSequenceGenCfg(flags, jetsIn)
Definition: ExoticJetSequencesConfig.py:39
python.HLT.Jet.JetTrackingConfig.JetFSTrackingCfg
def JetFSTrackingCfg(flags, trkopt, RoIs)
Definition: JetTrackingConfig.py:19