2 from AthenaCommon.CFElements
import seqAND
3 from AthenaCommon.Logging
import logging
5 from TrigInDetConfig.utils
import cloneFlagsToActiveConfig
6 from TrigInDetConfig.TrigInDetConfig
import trigInDetLRTCfg
8 from AthenaConfiguration.ComponentFactory
import CompFactory
9 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
10 from TriggerMenuMT.HLT.Config.MenuComponents
import MenuSequence, SelectionCA, InViewRecoCA, InEventRecoCA
12 from TrigEDMConfig.TriggerEDM
import recordable
14 logging.getLogger().
info(
"Importing %s",__name__)
15 log = logging.getLogger(__name__)
17 trkPairOutName =
"HLT_TrigDV_VSITrkPair"
18 vtxOutName =
"HLT_TrigDV_VSIVertex"
19 vtxCountName =
"HLT_TrigDV_VtxCount"
23 selAcc = SelectionCA(
"DVRecoSequence1")
25 inputMakerAlg = CompFactory.EventViewCreatorAlgorithm(
27 mergeUsingFeature =
False,
28 RoITool = CompFactory.ViewCreatorDVROITool(
30 RoisWriteHandleKey =
recordable( flags.Trigger.InDetTracking.DVtxLRT.roi ),
31 RoIEtaWidth = flags.Trigger.InDetTracking.DVtxLRT.etaHalfWidth,
32 RoIPhiWidth = flags.Trigger.InDetTracking.DVtxLRT.phiHalfWidth,
35 InViewRoIs =
"InViewRoIs",
36 RequireParentView =
False,
37 ViewFallThrough =
True,
38 ViewNodeName = selAcc.name+
'InView',
41 reco = InViewRecoCA(
'DVRecoStep',viewMaker=inputMakerAlg)
47 flags.Tracking.ActiveConfig.trkTracks_FTF,
48 inputMakerAlg.InViewRoIs,
51 (
'xAOD::TrackParticleContainer' , flags.Tracking.ActiveConfig.tracks_FTF ),
52 (
'xAOD::VertexContainer' , flags.Tracking.ActiveConfig.vertex ),
56 from TrigVrtSecInclusive.TrigVrtSecInclusiveConfig
import TrigVrtSecInclusiveCfg
58 FirstPassTracksName = flags.Tracking.ActiveConfig.tracks_FTF,
59 SecondPassTracksName = flags.Trigger.InDetTracking.DVtxLRT.tracks_FTF,
60 PrimaryVertexInputName = flags.Tracking.ActiveConfig.vertex,
61 VxCandidatesOutputName =
recordable(vtxOutName),
62 TrkPairOutputName =
recordable(trkPairOutName) )
64 recoAlgSequence =
seqAND(
"DVRecoSeq")
67 acc.addSequence(recoAlgSequence)
70 acc.merge(vertexingAlgs)
73 selAcc.mergeReco(reco)
78 from TrigStreamerHypo.TrigStreamerHypoConfig
import StreamerHypoToolGenerator
82 HypoAlg = CompFactory.TrigStreamerHypoAlg(
"TrigDVRecoDummyStream")
83 selAcc.addHypoAlgo(HypoAlg)
85 log.debug(
"Building the Step dictinary for TrigDV reco")
86 return MenuSequence(flags,
88 HypoToolGen = StreamerHypoToolGenerator
95 from TrigLongLivedParticlesHypo.TrigVrtSecInclusiveHypoConfig
import TrigVSIHypoToolFromDict
96 from TrigLongLivedParticlesHypo.TrigVrtSecInclusiveHypoConfig
import createTrigVSIHypoAlgCfg
98 selAcc = SelectionCA(
"TrigDVEDEmptyStep")
106 inputMakerAlg = CompFactory.InputMakerForRoI(
"IM_TrigDV_ED" )
107 inputMakerAlg.RoITool = CompFactory.ViewCreatorInitialROITool()
109 reco = InEventRecoCA(
'DVEDStep',inputMaker=inputMakerAlg)
111 selAcc.mergeReco(reco)
112 selAcc.addHypoAlgo(theHypoAlg)
114 log.info(
"Building the Step dictinary for DisVtxTrigger!")
115 return MenuSequence(flags,
117 HypoToolGen = TrigVSIHypoToolFromDict,