ATLAS Offline Software
VrtSecInclusiveConfiguration.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 AthenaCommon.Logging import logging
4 
5 logging.getLogger().info("Importing %s",__name__)
6 log = logging.getLogger(__name__)
7 
8 
10 
11  vsivtxname = "HLT_TrigVSIVertex"
12  # Construct the full reco sequence
13  from TriggerMenuMT.HLT.UnconventionalTracking.CommonConfiguration import getCommonInDetFullScanLRTCfg
14  from TriggerMenuMT.HLT.Jet.JetMenuSequencesConfig import getTrackingInputMaker
15  reco = InEventRecoCA("UncFSVSIreco",inputMaker=getTrackingInputMaker(flags,"ftf"))
16 
17  from TrigInDetConfig.utils import cloneFlagsToActiveConfig
18  flagsLRT = cloneFlagsToActiveConfig(flags, "fullScanLRT")
19 
20  reco.mergeReco( getCommonInDetFullScanLRTCfg(flags, flagsLRT) )
21 
22  from TrigVrtSecInclusive.TrigVrtSecInclusiveConfig import TrigVrtSecInclusiveCfg
23  theVSI = TrigVrtSecInclusiveCfg(flags,
24  "TrigVrtSecInclusive",
25  flags.Tracking.ActiveConfig.tracks_FTF,
26  flags.Trigger.InDetTracking.fullScanLRT.tracks_FTF,
27  flags.Tracking.ActiveConfig.vertex,
28  vsivtxname,
29  "HLT_TrigVSITrkPair",recordTrkPair=False)
30  reco.mergeReco(theVSI)
31 
32  # Construct the SelectionCA to hold reco + hypo
33  selAcc = SelectionCA("UncFSVSISeq")
34  from TrigLongLivedParticlesHypo.TrigVrtSecInclusiveHypoConfig import TrigVSIHypoToolFromDict
35  from TrigLongLivedParticlesHypo.TrigVrtSecInclusiveHypoConfig import createTrigVSIHypoAlgCfg
36 
37  from TrigEDMConfig.TriggerEDM import recordable
38  theHypoAlg = createTrigVSIHypoAlgCfg(flags, "TrigVSIHypoAlg",
39  verticesKey=recordable(vsivtxname),
40  vtxCountKey = recordable("HLT_TrigVSI_VtxCount"),
41  isViewBased=False)
42  selAcc.mergeReco(reco)
43  selAcc.addHypoAlgo(theHypoAlg)
44 
45  log.info("Building the Step dictinary for TrigVSI!")
46  return MenuSequenceCA(flags,
47  selAcc,
48  HypoToolGen = TrigVSIHypoToolFromDict)
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
python.utils.cloneFlagsToActiveConfig
AthConfigFlags cloneFlagsToActiveConfig(AthConfigFlags flags, str config_name)
Definition: Trigger/TrigTools/TrigInDetConfig/python/utils.py:55
TrigVrtSecInclusiveConfig.TrigVrtSecInclusiveCfg
def TrigVrtSecInclusiveCfg(flags, name, FirstPassTracksName, SecondPassTracksName, PrimaryVertexInputName, VxCandidatesOutputName, TrkPairOutputName, recordTrkPair=True)
Definition: TrigVrtSecInclusiveConfig.py:94
VrtSecInclusiveConfiguration.VrtSecInclusiveMenuSequenceGenCfg
def VrtSecInclusiveMenuSequenceGenCfg(flags)
Definition: VrtSecInclusiveConfiguration.py:9
python.TriggerEDM.recordable
def recordable(arg, runVersion=3)
Definition: TriggerEDM.py:30
python.TrigVrtSecInclusiveHypoConfig.createTrigVSIHypoAlgCfg
CompFactory createTrigVSIHypoAlgCfg(AthConfigFlags flags, str name, **kwargs)
Definition: TrigVrtSecInclusiveHypoConfig.py:11