ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Trigger
TriggerCommon
TriggerMenuMT
python
HLT
UnconventionalTracking
DJTriggerConfiguration.py
Go to the documentation of this file.
1
# Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
2
3
from
AthenaCommon.CFElements
import
seqAND
4
from
TriggerMenuMT.HLT.Config.MenuComponents
import
MenuSequence, SelectionCA, InEventRecoCA, InViewRecoCA
5
from
AthenaConfiguration.ComponentFactory
import
CompFactory
6
from
AthenaConfiguration.ComponentAccumulator
import
ComponentAccumulator
7
8
from
AthenaCommon.Logging
import
logging
9
10
from
TrigEDMConfig.TriggerEDM
import
recordable
11
from
TrigInDetConfig.utils
import
cloneFlagsToActiveConfig
12
from
TrigInDetConfig.TrigInDetConfig
import
trigInDetLRTCfg
13
14
logging.getLogger().info(
"Importing %s"
,__name__)
15
log = logging.getLogger(__name__)
16
17
def
DJPromptStepSequenceGenCfg
(flags):
18
from
TrigLongLivedParticlesHypo.TrigDJHypoConfig
import
TrigDJHypoPromptToolFromDict
19
20
21
hypo_alg = CompFactory.DisplacedJetPromptHypoAlg(
22
"DJTrigPromptHypoAlg"
,
23
min_trk_pt = 1.0,
24
stdTracksKey = flags.Tracking.ActiveConfig.tracks_FTF,
#fullScan
25
vtxKey = flags.Tracking.ActiveConfig.vertex_jet,
26
jetContainerKey = recordable(
"HLT_AntiKt4EMTopoJets_subjesIS"
),
27
countsKey =
"DispJetTrigger_Counts"
,
28
)
29
30
#run at the event level
31
im_alg = CompFactory.InputMakerForRoI(
"IM_DJTRIG_Prompt"
)
32
im_alg.RoITool = CompFactory.ViewCreatorInitialROITool()
33
34
selAcc = SelectionCA(
'DJTrigPromptSeq'
)
35
reco = InEventRecoCA(
'DJTrigPromptStep'
,inputMaker=im_alg)
36
selAcc.mergeReco(reco)
37
selAcc.addHypoAlgo(hypo_alg)
38
39
return
MenuSequence(flags,
40
selAcc,
41
HypoToolGen = TrigDJHypoPromptToolFromDict,
42
)
43
44
def
DJDispFragment
(flags):
45
46
roiTool = CompFactory.ViewCreatorCentredOnIParticleROITool(
47
'ViewCreatorDJRoI'
,
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
)
53
54
InViewRoIs =
"InViewRoIs"
55
56
im_alg = CompFactory.EventViewCreatorAlgorithm(
"IM_DJRoIFTF"
, mergeUsingFeature =
True
, RoITool = roiTool, Views =
"DJRoIViews"
, InViewRoIs = InViewRoIs,
57
RequireParentView =
False
, ViewFallThrough =
True
, ViewNodeName=
"DJRoIInViews"
)
58
59
reco = InViewRecoCA(
"DJRoIFTF"
, im_alg)
60
61
acc = ComponentAccumulator()
62
reco_seq = seqAND(
'UncTrkrecoSeqDJTrigDispRecoSeq'
)
63
acc.addSequence(reco_seq)
64
65
flagsWithTrk = cloneFlagsToActiveConfig(flags, flags.Trigger.InDetTracking.DJetLRT.input_name,log)
66
67
lrt_algs = trigInDetLRTCfg(flagsWithTrk,
68
flags.Tracking.ActiveConfig.trkTracks_FTF,
69
InViewRoIs,
70
in_view=
True
,
71
)
72
73
acc.merge(lrt_algs)
74
75
reco.mergeReco(acc)
76
77
selAcc = SelectionCA(
'UncTrkrecoSeqDJTrigDisp'
)
78
selAcc.mergeReco(reco)
79
return
selAcc
80
81
def
DJDispStepSequenceGenCfg
(flags):
82
from
TrigLongLivedParticlesHypo.TrigDJHypoConfig
import
TrigDJHypoDispToolFromDict
83
84
hypo_alg = CompFactory.DisplacedJetDispHypoAlg(
"DJTrigDispHypoAlg"
,
85
lrtTracksKey = flags.Trigger.InDetTracking.DJetLRT.tracks_FTF,
86
vtxKey = flags.Tracking.ActiveConfig.vertex_jet)
87
88
selAcc =
DJDispFragment
(flags)
89
90
selAcc.addHypoAlgo(hypo_alg)
91
92
return
MenuSequence(flags,
93
selAcc,
94
HypoToolGen = TrigDJHypoDispToolFromDict,
95
)
DJTriggerConfiguration.DJPromptStepSequenceGenCfg
DJPromptStepSequenceGenCfg(flags)
Definition
DJTriggerConfiguration.py:17
DJTriggerConfiguration.DJDispStepSequenceGenCfg
DJDispStepSequenceGenCfg(flags)
Definition
DJTriggerConfiguration.py:81
DJTriggerConfiguration.DJDispFragment
DJDispFragment(flags)
Definition
DJTriggerConfiguration.py:44
Generated on
for ATLAS Offline Software by
1.17.0