ATLAS Offline Software
CommonConfiguration.py
Go to the documentation of this file.
1 # Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
2 
3 from AthenaCommon.Logging import logging
4 from ..CommonSequences.FullScanInDetConfig import commonInDetFullScanCfg,commonInDetLRTCfg
5 from TriggerMenuMT.HLT.Config.MenuComponents import MenuSequence, SelectionCA, InEventRecoCA
6 from AthenaConfiguration.ComponentFactory import CompFactory
7 from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
8 
9 
10 logging.getLogger().info("Importing %s",__name__)
11 log = 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.
41 def 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
python.HLT.Jet.JetMenuSequencesConfig.getTrackingInputMaker
def getTrackingInputMaker(AthConfigFlags flags, str trkopt)
Definition: JetMenuSequencesConfig.py:39
grepfile.info
info
Definition: grepfile.py:38
python.HLT.CommonSequences.FullScanInDetConfig.commonInDetFullScanCfg
ComponentAccumulator commonInDetFullScanCfg(AthConfigFlags flags)
Definition: FullScanInDetConfig.py:20
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
CommonConfiguration.getCommonInDetFullScanLRTCfg
def getCommonInDetFullScanLRTCfg(flags, flagsLRT)
Definition: CommonConfiguration.py:41
python.HLT.CommonSequences.FullScanInDetConfig.commonInDetLRTCfg
ComponentAccumulator commonInDetLRTCfg(AthConfigFlags flags, AthConfigFlags flagsLRT, str rois=trkFSRoI)
Definition: FullScanInDetConfig.py:79
CommonConfiguration.getFullScanRecoOnlySequenceGenCfg
def getFullScanRecoOnlySequenceGenCfg(flags)
Definition: CommonConfiguration.py:17