ATLAS Offline Software
Loading...
Searching...
No Matches
GepEratioAlgConfig.py
Go to the documentation of this file.
1# Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
2
3from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
4from AthenaConfiguration.ComponentFactory import CompFactory
5
6def GepEratioAlgCfg(flags, alg_type, name: str,
7 seedsKey: str,
8 caloCellsMapKey: str = 'GepCells',
9 outputEratioDecorKey: str = 'Eratio',
10 **kwargs):
11 acc = ComponentAccumulator()
12
13 alg = alg_type(name, **kwargs)
14
15 alg.SeedsKey = seedsKey
16 alg.gepCellMapKey = caloCellsMapKey
17 alg.OutputEratioDecorKey = outputEratioDecorKey
18
19 acc.addEventAlgo(alg, primary=True)
20
21 return acc
22
23
24def GepEMEratioAlgCfg(flags, name: str,
25 seedsKey: str = 'L1_eEMRoI',
26 caloCellsMapKey='GepCells',
27 outputEratioDecorKey='Eratio',
28 **kwargs):
29 return GepEratioAlgCfg(flags, CompFactory.GepEMEratioAlg, name, seedsKey, caloCellsMapKey, outputEratioDecorKey, **kwargs)
30
31def GepTauEratioAlgCfg(flags, name: str,
32 seedsKey: str = 'L1_eTauRoI',
33 caloCellsMapKey='GepCells',
34 outputEratioDecorKey='Eratio',
35 **kwargs):
36 return GepEratioAlgCfg(flags, CompFactory.GepTauEratioAlg, name, seedsKey, caloCellsMapKey, outputEratioDecorKey, **kwargs)
GepTauEratioAlgCfg(flags, str name, str seedsKey='L1_eTauRoI', caloCellsMapKey='GepCells', outputEratioDecorKey='Eratio', **kwargs)
GepEratioAlgCfg(flags, alg_type, str name, str seedsKey, str caloCellsMapKey='GepCells', str outputEratioDecorKey='Eratio', **kwargs)
GepEMEratioAlgCfg(flags, str name, str seedsKey='L1_eEMRoI', caloCellsMapKey='GepCells', outputEratioDecorKey='Eratio', **kwargs)