ATLAS Offline Software
Loading...
Searching...
No Matches
IsoHighPtTrackTriggerConfiguration.py
Go to the documentation of this file.
1# Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
2
3from TriggerMenuMT.HLT.Config.MenuComponents import MenuSequence, SelectionCA, InEventRecoCA
4from AthenaConfiguration.ComponentFactory import CompFactory
5from AthenaCommon.Logging import logging
6
7logging.getLogger().info("Importing %s",__name__)
8log = logging.getLogger(__name__)
9
11 from TrigLongLivedParticlesHypo.TrigIsoHPtTrackTriggerHypoTool import TrigIsoHPtTrackTriggerHypoToolFromDict
12
13 # Setup the hypothesis algorithm
14 theIsoHPtTrackTriggerHypo = CompFactory.TrigIsoHPtTrackTriggerHypoAlg(
15 "L2IsoHPtTrack",
16 trackKey = flags.Tracking.ActiveConfig.tracks_FTF
17 )
18
19 selAcc = SelectionCA('UncTrkEmptySeq')
20
21 DummyInputMakerAlg = CompFactory.InputMakerForRoI( "IM_IsoHPtTrack_HypoOnlyStep" )
22 DummyInputMakerAlg.RoITool = CompFactory.ViewCreatorInitialROITool()
23
24 reco = InEventRecoCA('UncTrkEmptyStep',inputMaker=DummyInputMakerAlg)
25 selAcc.mergeReco(reco)
26 selAcc.addHypoAlgo(theIsoHPtTrackTriggerHypo)
27
28 log.debug("Building the Step dictinary for IsoHPt!")
29 return MenuSequence(flags,
30 selAcc,
31 HypoToolGen = TrigIsoHPtTrackTriggerHypoToolFromDict,
32 )
33