ATLAS Offline Software
GepJetAlgConfig.py
Go to the documentation of this file.
1 # Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
2 
3 from AthenaConfiguration.ComponentFactory import CompFactory
4 from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
5 
7  flags,
8  name,
9  jetAlgName,
10  caloClustersKey,
11  outputJetsKey,
12  OutputLevel=None):
13 
14  cfg = ComponentAccumulator()
15 
16 
17  assert jetAlgName in ('ModAntikT', 'Cone')
18  alg = CompFactory.GepJetAlg(name,
19  jetAlgName=jetAlgName,
20  caloClustersKey=caloClustersKey,
21  outputJetsKey=outputJetsKey)
22  if OutputLevel is not None:
23  alg.OutputLevel = OutputLevel
24 
25  cfg.addEventAlgo(alg)
26 
27  return cfg
28 
29 
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
GepJetAlgConfig.GepJetAlgCfg
def GepJetAlgCfg(flags, name, jetAlgName, caloClustersKey, outputJetsKey, OutputLevel=None)
Definition: GepJetAlgConfig.py:6