ATLAS Offline Software
PrecisionTrackingRecoSequences.py
Go to the documentation of this file.
1 #
2 # Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3 #
4 
5 from AthenaConfiguration.ComponentFactory import CompFactory
6 from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
7 from TrigInDetConfig.utils import getFlagsForActiveConfig
8 from TrigInDetConfig.InnerTrackingTrigSequence import InnerTrackingTrigSequence
9 
10 #logging
11 from AthenaCommon.Logging import logging
12 log = logging.getLogger(__name__)
13 
14 def precisionTracking(inflags, RoIs, ion=False, variant=''):
15 
16  acc = ComponentAccumulator()
17  tag = '_ion' if ion is True else ''
18  signatureName = 'electronLRT' if variant else 'electron'
19  flags = getFlagsForActiveConfig(inflags, signatureName, log)
20 
21  verifier = CompFactory.AthViews.ViewDataVerifier( name = 'VDVInDetPrecision'+variant + tag,
22  DataObjects= {( 'TrigRoiDescriptorCollection' , 'StoreGateSvc+%s' % RoIs ),
23  ( 'SG::AuxElement' , 'StoreGateSvc+EventInfo.averageInteractionsPerCrossing' ),
24  ( 'TrackCollection', flags.Tracking.ActiveConfig.trkTracks_FTF )} )
25 
26  acc.addEventAlgo(verifier)
27  seq = InnerTrackingTrigSequence.create(flags,
28  flags.Tracking.ActiveConfig.input_name,
29  rois = RoIs,
30  inView = verifier.getName())
31  acc.merge(seq.sequenceAfterPattern())
32 
33  return acc
34 
35 
36 
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
python.utils.getFlagsForActiveConfig
AthConfigFlags getFlagsForActiveConfig(AthConfigFlags flags, str config_name, logging.Logger log)
Definition: Trigger/TrigTools/TrigInDetConfig/python/utils.py:9
python.HLT.Electron.PrecisionTrackingRecoSequences.precisionTracking
def precisionTracking(inflags, RoIs, ion=False, variant='')
Definition: PrecisionTrackingRecoSequences.py:14