ATLAS Offline Software
CaloCellContainerAliasAlgConfig.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/CaloCellContainerAliasAlgConfig.py
4 # Created: Nov 2019, sss
5 # Purpose: Configure CaloCellContainerAliasAlg.
6 
7 from AthenaConfiguration.ComponentFactory import CompFactory
8 from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
9 
10 
11 def CaloCellContainerAliasAlgCfg (flags, alias, cells = 'AllCalo'):
12  result = ComponentAccumulator()
13 
14  CaloCellContainerAliasAlg=CompFactory.CaloCellContainerAliasAlg
15  alg = CaloCellContainerAliasAlg ('CaloCellContainerAliasAlg_' + alias,
16  Alias = alias,
17  Cells = cells)
18  result.addEventAlgo (alg)
19 
20  return result
21 
22 
23 if __name__ == "__main__":
24  from AthenaConfiguration.AllConfigFlags import initConfigFlags
25  from AthenaConfiguration.TestDefaults import defaultTestFiles
26 
27  only = ['CaloCellContainerAliasAlg_myalias']
28 
29  flags1 = initConfigFlags()
30  flags1.Input.Files = defaultTestFiles.RAW_RUN2
31  flags1.lock()
32  acc1 = CaloCellContainerAliasAlgCfg (flags1, 'myalias')
33  acc1.printConfig(summariseProps=True, onlyComponents=only)
34  acc1.wasMerged()
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
python.CaloCellContainerAliasAlgConfig.CaloCellContainerAliasAlgCfg
def CaloCellContainerAliasAlgCfg(flags, alias, cells='AllCalo')
Definition: CaloCellContainerAliasAlgConfig.py:11
python.AllConfigFlags.initConfigFlags
def initConfigFlags()
Definition: AllConfigFlags.py:19