4from TriggerMenuMT.HLT.Config.MenuComponents
import MenuSequence, SelectionCA, InEventRecoCA, InViewRecoCA
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)
61 acc = ComponentAccumulator()
62 reco_seq = seqAND(
'UncTrkrecoSeqDJTrigDispRecoSeq')
63 acc.addSequence(reco_seq)
65 flagsWithTrk = cloneFlagsToActiveConfig(flags, flags.Trigger.InDetTracking.DJetLRT.input_name,log)
67 lrt_algs = trigInDetLRTCfg(flagsWithTrk,
68 flags.Tracking.ActiveConfig.trkTracks_FTF,
75 from TrigGenericAlgs.TrigGenericAlgsConfig
import ROBPrefetchingAlgCfg_Si
76 robPrefetchAlg = ROBPrefetchingAlgCfg_Si(flags, nameSuffix=reco.name)
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,