ATLAS Offline Software
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()
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
python.CaloThinCellsByClusterAlgConfig.CaloThinCellsByClusterAlgCfg
def CaloThinCellsByClusterAlgCfg(flags, streamName, clusters, samplings=[], cells='AllCalo')
Definition: CaloThinCellsByClusterAlgConfig.py:11
CaloThinCellsByClusterAlg
Thin calorimeter cells not associated with clusters.
Definition: CaloThinCellsByClusterAlg.h:34
python.AllConfigFlags.initConfigFlags
def initConfigFlags()
Definition: AllConfigFlags.py:19