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  wta_seed_cleaning_name='TwoPass',
13  wta_min_cluster_et=2.0, # In GeV
14  wta_min_seed_et=5.0,
15  wta_inf_buffer=False,
16  wta_max_const_n=205,
17  wta_max_seed_sorting_n=50,
18  wta_jet_dR2=0.16,
19  wta_block_n=4,
20  OutputLevel=None):
21 
22  cfg = ComponentAccumulator()
23 
24 
25  assert jetAlgName in ('ModAntikT', 'Cone', 'WTACone')
26  if jetAlgName == 'WTACone':
27  assert wta_seed_cleaning_name in ('Baseline', 'TwoPass')
28  assert wta_block_n in (1, 4)
29  if wta_inf_buffer:
30  wta_max_const_n = 9999
31  wta_max_seed_sorting_n = 9999
32 
33  alg = CompFactory.GepJetAlg(name,
34  jetAlgName=jetAlgName,
35  caloClustersKey=caloClustersKey,
36  outputJetsKey=outputJetsKey,
37  WTAConstEtCut=wta_min_cluster_et,
38  WTASeedEtCut=wta_min_seed_et,
39  WTAMaxConstN=wta_max_const_n,
40  WTAMaxSeedSortingN=wta_max_seed_sorting_n,
41  WTAJet_dR2=wta_jet_dR2,
42  WTASeedCleaningName=wta_seed_cleaning_name,
43  WTABlockN=wta_block_n)
44 
45  if OutputLevel is not None:
46  alg.OutputLevel = OutputLevel
47 
48  cfg.addEventAlgo(alg)
49 
50  return cfg
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
GepJetAlgConfig.GepJetAlgCfg
def GepJetAlgCfg(flags, name, jetAlgName, caloClustersKey, outputJetsKey, wta_seed_cleaning_name='TwoPass', wta_min_cluster_et=2.0, wta_min_seed_et=5.0, wta_inf_buffer=False, wta_max_const_n=205, wta_max_seed_sorting_n=50, wta_jet_dR2=0.16, wta_block_n=4, OutputLevel=None)
Definition: GepJetAlgConfig.py:6