ATLAS Offline Software
Loading...
Searching...
No Matches
CaloCellDFGetterConfig Namespace Reference

Functions

 thinCaloCellsForDFCfg (flags, inputClusterKeys, streamName, inputCellKey='AllCalo', outputCellKey=None)

Function Documentation

◆ thinCaloCellsForDFCfg()

CaloCellDFGetterConfig.thinCaloCellsForDFCfg ( flags,
inputClusterKeys,
streamName,
inputCellKey = 'AllCalo',
outputCellKey = None )

Definition at line 6 of file CaloCellDFGetterConfig.py.

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