ATLAS Offline Software
FullScanLRTTrackingConfiguration.py
Go to the documentation of this file.
1 # Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
2 from TriggerMenuMT.HLT.Config.MenuComponents import MenuSequenceCA, SelectionCA, InEventRecoCA
3 from AthenaConfiguration.ComponentFactory import CompFactory
4 
5 from AthenaCommon.Logging import logging
6 
7 logging.getLogger().info("Importing %s",__name__)
8 log = logging.getLogger(__name__)
9 
10 
12 
13  # Construct the full reco sequence
14  from TriggerMenuMT.HLT.UnconventionalTracking.CommonConfiguration import getCommonInDetFullScanLRTCfg
15  from TriggerMenuMT.HLT.Jet.JetMenuSequencesConfig import getTrackingInputMaker
16  reco = InEventRecoCA("UncFSLRTreco",inputMaker=getTrackingInputMaker(flags,"ftf"))
17 
18  from TrigInDetConfig.utils import cloneFlagsToActiveConfig
19  flagsLRT = cloneFlagsToActiveConfig(flags, "fullScanLRT")
20 
21  reco.mergeReco( getCommonInDetFullScanLRTCfg(flags, flagsLRT) )
22 
23  from ..CommonSequences.FullScanDefs import trkFSRoI
24  from TrigInDetConfig.TrigInDetConfig import trigInDetPrecisionTrackingCfg
25  reco.mergeReco(trigInDetPrecisionTrackingCfg(flagsLRT,
26  trkFSRoI,
27  flagsLRT.Tracking.ActiveConfig.input_name,
28  in_view=False))
29 
30  # Construct the SelectionCA to hold reco + hypo
31  selAcc = SelectionCA("UncFSLRTSeq")
32  selAcc.mergeReco(reco)
33 
34  from TrigLongLivedParticlesHypo.TrigFullScanLRTHypoTool import TrigLRTHypoToolFromDict
35  from TrigEDMConfig.TriggerEDM import recordable
36 
37  theHypoAlg = CompFactory.FastTrackFinderLRTHypoAlg(
38  "FullScanLRTHypoAlg",
39  trackCountKey = recordable("HLT_FSLRT_TrackCount"),
40  tracksKey = flags.Trigger.InDetTracking.fullScanLRT.tracks_IDTrig,
41  )
42 
43  selAcc.addHypoAlgo(theHypoAlg)
44 
45  log.info("Building the Step dictinary for FullScanLRT!")
46  return MenuSequenceCA(flags,
47  selAcc,
48  HypoToolGen = TrigLRTHypoToolFromDict)
49 
python.HLT.Jet.JetMenuSequencesConfig.getTrackingInputMaker
def getTrackingInputMaker(AthConfigFlags flags, str trkopt)
Definition: JetMenuSequencesConfig.py:39
grepfile.info
info
Definition: grepfile.py:38
CommonConfiguration.getCommonInDetFullScanLRTCfg
def getCommonInDetFullScanLRTCfg(flags, flagsLRT)
Definition: CommonConfiguration.py:41
FullScanLRTTrackingConfiguration.FullScanLRTMenuSequenceGenCfg
def FullScanLRTMenuSequenceGenCfg(flags)
Definition: FullScanLRTTrackingConfiguration.py:11
python.utils.cloneFlagsToActiveConfig
AthConfigFlags cloneFlagsToActiveConfig(AthConfigFlags flags, str config_name)
Definition: Trigger/TrigTools/TrigInDetConfig/python/utils.py:55
python.TrigInDetConfig.trigInDetPrecisionTrackingCfg
def trigInDetPrecisionTrackingCfg(inflags, rois, signatureName, in_view=True)
precision tracking
Definition: TrigInDetConfig.py:105
python.TriggerEDM.recordable
def recordable(arg, runVersion=3)
Definition: TriggerEDM.py:30