ATLAS Offline Software
Loading...
Searching...
No Matches
TrigTauRoIToolsConfig.py
Go to the documentation of this file.
1# Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
2
3from AthenaConfiguration.ComponentFactory import CompFactory
4from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
5
6
7def tauCaloRoiUpdaterCfg(flags, inputRoIs, clusters):
8 acc = ComponentAccumulator()
9 alg = CompFactory.TrigTauCaloRoiUpdater(name='TauCaloRoiUpdater',
10 RoIInputKey=inputRoIs,
11 RoIOutputKey='UpdatedCaloRoI',
12 CaloClustersKey=clusters)
13 acc.addEventAlgo(alg)
14 return acc
15
16
17def 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
31def 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
tauTrackRoiUpdaterCfg(flags, inputRoIs, tracks)
tauCaloRoiUpdaterCfg(flags, inputRoIs, clusters)
tauLRTRoiUpdaterCfg(flags, inputRoIs, tracks)