3 from AthenaCommon.CFElements
import (parOR,seqAND)
4 from TriggerMenuMT.HLT.Config.MenuComponents
import MenuSequence, SelectionCA, InEventRecoCA, InViewRecoCA
5 from AthenaConfiguration.ComponentFactory
import CompFactory
6 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
8 from AthenaCommon.Logging
import logging
10 from TrigEDMConfig.TriggerEDM
import recordable
11 from TrigInDetConfig.utils
import cloneFlagsToActiveConfig
12 from TrigInDetConfig.TrigInDetConfig
import trigInDetLRTCfg
14 logging.getLogger().
info(
"Importing %s",__name__)
15 log = logging.getLogger(__name__)
18 from TrigLongLivedParticlesHypo.TrigDJHypoConfig
import TrigDJHypoPromptToolFromDict
21 hypo_alg = CompFactory.DisplacedJetPromptHypoAlg(
22 "DJTrigPromptHypoAlg",
24 stdTracksKey = flags.Tracking.ActiveConfig.tracks_FTF,
25 vtxKey = flags.Tracking.ActiveConfig.vertex_jet,
26 jetContainerKey =
recordable(
"HLT_AntiKt4EMTopoJets_subjesIS"),
27 countsKey =
"DispJetTrigger_Counts",
31 im_alg = CompFactory.InputMakerForRoI(
"IM_DJTRIG_Prompt" )
32 im_alg.RoITool = CompFactory.ViewCreatorInitialROITool()
34 selAcc = SelectionCA(
'DJTrigPromptSeq')
35 reco = InEventRecoCA(
'DJTrigPromptStep',inputMaker=im_alg)
36 selAcc.mergeReco(reco)
37 selAcc.addHypoAlgo(hypo_alg)
39 return MenuSequence(flags,
41 HypoToolGen = TrigDJHypoPromptToolFromDict,
46 roiTool = CompFactory.ViewCreatorCentredOnIParticleROITool(
48 RoisWriteHandleKey =
recordable(flags.Trigger.InDetTracking.DJetLRT.roi),
49 RoIEtaWidth = flags.Trigger.InDetTracking.DJetLRT.etaHalfWidth,
50 RoIPhiWidth = flags.Trigger.InDetTracking.DJetLRT.phiHalfWidth,
51 RoIZedWidth = flags.Trigger.InDetTracking.DJetLRT.zedHalfWidth,
52 UseZedPosition =
False)
54 InViewRoIs =
"InViewRoIs"
56 im_alg = CompFactory.EventViewCreatorAlgorithm(
"IM_DJRoIFTF", mergeUsingFeature =
True, RoITool = roiTool, Views =
"DJRoIViews", InViewRoIs = InViewRoIs,
57 RequireParentView =
False, ViewFallThrough =
True, ViewNodeName=
"DJRoIInViews")
59 reco = InViewRecoCA(
"DJRoIFTF", im_alg)
62 reco_seq =
seqAND(
'UncTrkrecoSeqDJTrigDispRecoSeq')
63 acc.addSequence(reco_seq)
68 flags.Tracking.ActiveConfig.trkTracks_FTF,
75 from TrigGenericAlgs.TrigGenericAlgsConfig
import ROBPrefetchingAlgCfg_Si
80 selAcc = SelectionCA(
'UncTrkrecoSeqDJTrigDisp')
81 selAcc.mergeReco(reco, robPrefetchCA=robPrefetchAlg)
85 from TrigLongLivedParticlesHypo.TrigDJHypoConfig
import TrigDJHypoDispToolFromDict
87 hypo_alg = CompFactory.DisplacedJetDispHypoAlg(
"DJTrigDispHypoAlg",
88 lrtTracksKey = flags.Trigger.InDetTracking.DJetLRT.tracks_FTF,
89 vtxKey = flags.Tracking.ActiveConfig.vertex_jet)
93 selAcc.addHypoAlgo(hypo_alg)
95 return MenuSequence(flags,
97 HypoToolGen = TrigDJHypoDispToolFromDict,