ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
PhysicsAnalysis
DerivationFramework
DerivationFrameworkCalo
python
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
6
def
thinCaloCellsForDFCfg
(flags,
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
CaloCellDFGetterConfig.thinCaloCellsForDFCfg
thinCaloCellsForDFCfg(flags, inputClusterKeys, streamName, inputCellKey='AllCalo', outputCellKey=None)
Definition
CaloCellDFGetterConfig.py:10
Generated on
for ATLAS Offline Software by
1.17.0