ATLAS Offline Software
Loading...
Searching...
No Matches
CommonConfiguration.py
Go to the documentation of this file.
1# Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
2
3from AthenaCommon.Logging import logging
4from ..CommonSequences.FullScanInDetConfig import commonInDetFullScanCfg,commonInDetLRTCfg
5from TriggerMenuMT.HLT.Config.MenuComponents import MenuSequence, SelectionCA, InEventRecoCA
6from AthenaConfiguration.ComponentFactory import CompFactory
7from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
8
9
10logging.getLogger().info("Importing %s",__name__)
11log = logging.getLogger(__name__)
12
13# ---------------------
14
15# This produces a menu sequence for a step that runs FS FTF tracking
16# No selection is applied -- all rejection comes from subsequent steps
18
19 from TrigStreamerHypo.TrigStreamerHypoConfig import StreamerHypoToolGenerator
20
21 selAcc = SelectionCA("UncTrkrecoSel")
22
23 from TriggerMenuMT.HLT.Jet.JetMenuSequencesConfig import getTrackingInputMaker
24 reco = InEventRecoCA("UncTrkreco",inputMaker=getTrackingInputMaker(flags, "ftf"))
25 reco.mergeReco( commonInDetFullScanCfg(flags) )
26 selAcc.mergeReco( reco )
27
28 HypoAlg = CompFactory.TrigStreamerHypoAlg("UncTrkDummyStream")
29 selAcc.addHypoAlgo(HypoAlg)
30
31 log.debug("Building the menu sequence for FullScanRecoOnlySequence")
32 return MenuSequence(flags,
33 selAcc,
34 HypoToolGen = StreamerHypoToolGenerator)
35
36
37# This produces a ComponentAccumulator that can be incorporated into
38# an InEventRecoCA downstream. A plain CA is returned so that it
39# can be used in independent steps with more complex reco and different
40# InputMakers etc.
41def getCommonInDetFullScanLRTCfg(flags, flagsLRT):
42 combined_reco = ComponentAccumulator()
43
44 combined_reco.merge( commonInDetFullScanCfg(flags) )
45 combined_reco.merge( commonInDetLRTCfg(flags, flagsLRT) )
46
47 return combined_reco
getCommonInDetFullScanLRTCfg(flags, flagsLRT)