ATLAS Offline Software
BjetTrackingConfig.py
Go to the documentation of this file.
1 # Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
2 
3 from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
4 from AthenaConfiguration.ComponentFactory import CompFactory
5 from AthenaCommon.Logging import logging
6 
7 def secondStageBjetTrackingCfg(flags, inputRoI: str, inputVertex: str, inputJets: str) -> ComponentAccumulator:
8 
9  log = logging.getLogger("BJetTrackingConfig")
10 
11  #safety measure to ensure we get the right instance of flags
12  from TrigInDetConfig.utils import getFlagsForActiveConfig
13  trkflags = getFlagsForActiveConfig(flags, "bjet", log)
14 
15  from TrigInDetConfig.InnerTrackingTrigSequence import InnerTrackingTrigSequence
16  seq = InnerTrackingTrigSequence.create(trkflags,
17  trkflags.Tracking.ActiveConfig.input_name,
18  rois = inputRoI,
19  inView = "VDVInDetFTF")
20  acc = seq.sequence("FastTrackFinder")
21  acc.merge(seq.sequenceAfterPattern())
22 
23  verifier = CompFactory.AthViews.ViewDataVerifier(name = 'VDVsecondStageBjetTracking',
24  DataObjects = {('xAOD::VertexContainer', f'StoreGateSvc+{inputVertex}'),
25  ('xAOD::JetContainer', f'StoreGateSvc+{inputJets}')} )
26  acc.addEventAlgo(verifier)
27 
28  return acc
python.HLT.Bjet.BjetTrackingConfig.secondStageBjetTrackingCfg
ComponentAccumulator secondStageBjetTrackingCfg(flags, str inputRoI, str inputVertex, str inputJets)
Definition: BjetTrackingConfig.py:7
python.utils.getFlagsForActiveConfig
AthConfigFlags getFlagsForActiveConfig(AthConfigFlags flags, str config_name, logging.Logger log)
Definition: Trigger/TrigTools/TrigInDetConfig/python/utils.py:9