ATLAS Offline Software
TrigTauRoIToolsConfig.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.ComponentFactory import CompFactory
4 from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
5 
6 
7 def tauCaloRoiUpdaterCfg(flags, inputRoIs, clusters):
9  alg = CompFactory.TrigTauCaloRoiUpdater(name='TauCaloRoiUpdater',
10  RoIInputKey=inputRoIs,
11  RoIOutputKey='UpdatedCaloRoI',
12  CaloClustersKey=clusters)
13  acc.addEventAlgo(alg)
14  return acc
15 
16 
17 def tauTrackRoiUpdaterCfg(flags, inputRoIs, tracks):
18  acc = ComponentAccumulator()
19  roi_flags = flags.Trigger.InDetTracking.tauIso
20  alg = CompFactory.TrigTauTrackRoiUpdater(name='TrackRoiUpdater',
21  etaHalfWidth=roi_flags.etaHalfWidth,
22  phiHalfWidth=roi_flags.phiHalfWidth,
23  z0HalfWidth=roi_flags.zedHalfWidth,
24  RoIInputKey=inputRoIs,
25  RoIOutputKey='UpdatedTrackRoI',
26  TracksKey=tracks)
27  acc.addEventAlgo(alg)
28  return acc
29 
30 
31 def tauLRTRoiUpdaterCfg(flags, inputRoIs, tracks):
32  acc = ComponentAccumulator()
33  roi_flags = flags.Tracking.ActiveConfig
34  alg = CompFactory.TrigTauTrackRoiUpdater(name='TrackRoiUpdaterLRT',
35  etaHalfWidth=roi_flags.etaHalfWidth,
36  phiHalfWidth=roi_flags.phiHalfWidth,
37  z0HalfWidth=roi_flags.zedHalfWidth,
38  RoIInputKey=inputRoIs,
39  RoIOutputKey='UpdatedTrackLRTRoI',
40  TracksKey=tracks)
41  acc.addEventAlgo(alg)
42  return acc
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
TrigTauRoIToolsConfig.tauCaloRoiUpdaterCfg
def tauCaloRoiUpdaterCfg(flags, inputRoIs, clusters)
Definition: TrigTauRoIToolsConfig.py:7
TrigTauRoIToolsConfig.tauLRTRoiUpdaterCfg
def tauLRTRoiUpdaterCfg(flags, inputRoIs, tracks)
Definition: TrigTauRoIToolsConfig.py:31
TrigTauRoIToolsConfig.tauTrackRoiUpdaterCfg
def tauTrackRoiUpdaterCfg(flags, inputRoIs, tracks)
Definition: TrigTauRoIToolsConfig.py:17