ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Calorimeter
CaloRec
python
CaloThinCellsByClusterAlgConfig.py
Go to the documentation of this file.
1
# Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
2
3
# File: CaloRec/python/CaloThinCellsByClusterAlgConfig.py
4
# Created: Nov 2019, sss
5
# Purpose: Configure CaloThinCellsByClusterAlg.
6
7
from
AthenaConfiguration.ComponentFactory
import
CompFactory
8
from
AthenaConfiguration.ComponentAccumulator
import
ComponentAccumulator
9
10
11
def
CaloThinCellsByClusterAlgCfg
(flags, streamName, clusters,
12
samplings=[],
13
cells='AllCalo'):
14
result = ComponentAccumulator()
15
16
CaloThinCellsByClusterAlg = CompFactory.CaloThinCellsByClusterAlg
17
alg =
CaloThinCellsByClusterAlg
(
'CaloThinCellsByClusterAlg_'
+ clusters,
18
StreamName=streamName,
19
Clusters=clusters,
20
SamplingCellsName=samplings,
21
Cells=cells)
22
result.addEventAlgo(alg)
23
return
result
24
25
26
if
__name__ ==
"__main__"
:
27
from
AthenaConfiguration.AllConfigFlags
import
initConfigFlags
28
from
AthenaConfiguration.TestDefaults
import
defaultTestFiles
29
30
only = [
'CaloThinCellsByClusterAlg_myclusters'
]
31
32
flags1 = initConfigFlags()
33
flags1.Input.Files = defaultTestFiles.RAW_RUN2
34
flags1.lock()
35
acc1 =
CaloThinCellsByClusterAlgCfg
(flags1,
'StreamAOD'
,
36
'myclusters'
, [
'TileGap3'
])
37
acc1.printConfig(summariseProps=
True
, onlyComponents=only)
38
acc1.wasMerged()
CaloThinCellsByClusterAlg
Thin calorimeter cells not associated with clusters.
Definition
CaloThinCellsByClusterAlg.h:34
python.CaloThinCellsByClusterAlgConfig.CaloThinCellsByClusterAlgCfg
CaloThinCellsByClusterAlgCfg(flags, streamName, clusters, samplings=[], cells='AllCalo')
Definition
CaloThinCellsByClusterAlgConfig.py:13
Generated on
for ATLAS Offline Software by
1.17.0