ATLAS Offline Software
Loading...
Searching...
No Matches
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
7from AthenaConfiguration.ComponentFactory import CompFactory
8from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
9
10
11def 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
26if __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()
Thin calorimeter cells not associated with clusters.
CaloThinCellsByClusterAlgCfg(flags, streamName, clusters, samplings=[], cells='AllCalo')