ATLAS Offline Software
CaloCellDFGetterConfig.py
Go to the documentation of this file.
1 # Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
2 #=========================================================================
3 
4 from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
5 
7  inputClusterKeys,
8  streamName,
9  inputCellKey = 'AllCalo',
10  outputCellKey = None):
11 
12  acc = ComponentAccumulator()
13 
14  from CaloRec.CaloThinCellsByClusterAlgConfig import (
15  CaloThinCellsByClusterAlgCfg )
16 
17  samplings = ['TileGap1', 'TileGap2', 'TileGap3',
18  'TileBar0', 'TileExt0', 'HEC0']
19 
20  for clkey in inputClusterKeys:
21  acc.merge(CaloThinCellsByClusterAlgCfg( flags,
22  streamName,
23  clkey,
24  samplings,
25  inputCellKey) )
26 
27 
28  from CaloRec.CaloThinCellsBySamplingAlgConfig import (
29  CaloThinCellsBySamplingAlgCfg )
30  acc.merge(CaloThinCellsBySamplingAlgCfg( flags,
31  streamName,
32  ['TileGap3'],
33  inputCellKey) )
34 
35  # Originally, calo cell thinning worked by writing out a new cell container
36  # and mangling links to point to it. Now we use standard MT thinning,
37  # so we just write out the default cell container with thinning.
38  # Make an alias to the name we used to use for the cells in case
39  # downstream code is using it.
40  if outputCellKey is not None:
41  from CaloRec.CaloCellContainerAliasAlgConfig import (
42  CaloCellContainerAliasAlgCfg )
43  acc.merge(CaloCellContainerAliasAlgCfg( flags,
44  outputCellKey,
45  inputCellKey) )
46 
47  return acc
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
python.CaloThinCellsByClusterAlgConfig.CaloThinCellsByClusterAlgCfg
def CaloThinCellsByClusterAlgCfg(flags, streamName, clusters, samplings=[], cells='AllCalo')
Definition: CaloThinCellsByClusterAlgConfig.py:11
python.CaloCellContainerAliasAlgConfig.CaloCellContainerAliasAlgCfg
def CaloCellContainerAliasAlgCfg(flags, alias, cells='AllCalo')
Definition: CaloCellContainerAliasAlgConfig.py:11
CaloCellDFGetterConfig.thinCaloCellsForDFCfg
def thinCaloCellsForDFCfg(flags, inputClusterKeys, streamName, inputCellKey='AllCalo', outputCellKey=None)
Definition: CaloCellDFGetterConfig.py:6
python.CaloThinCellsBySamplingAlgConfig.CaloThinCellsBySamplingAlgCfg
def CaloThinCellsBySamplingAlgCfg(flags, streamName, samplings=[], cells='AllCalo')
Definition: CaloThinCellsBySamplingAlgConfig.py:11