ATLAS Offline Software
addRecoJetsConfig.py
Go to the documentation of this file.
1 # Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
2 
3 def AddRecoJetsIfNotExistingCfg(flags, jetCollection):
4  '''
5  Add algorithm to create the Reco jets collection unless the
6  collection exists already, or a Reco jet finder is already running
7  '''
8 
9  # the jet collection name does not exist in the input file
10  # add a jet finder algorithm in front of the monitoring if the algorithm
11  # does not yet exist.
12  if "xAOD::JetContainer#"+jetCollection not in flags.Input.TypedCollections:
13  from AthenaCommon.Logging import logging
14  log = logging.getLogger('InDetPhysValMonitoring/addRecoJets.py')
15 
16  log.info('DEBUG addRecoJetsIfNotExising {} not in {} [file_type={}]'.format(jetCollection, flags.Input.TypedCollections, flags.Input.Format))
17 
18  from JetRecConfig import StandardSmallRJets
19  theCollectionCfg = getattr(StandardSmallRJets, jetCollection.split("Jets")[0])
20  from JetRecConfig.JetRecConfig import JetRecCfg
21 
22  return JetRecCfg(flags, theCollectionCfg)
vtune_athena.format
format
Definition: vtune_athena.py:14
python.JetRecConfig.JetRecCfg
def JetRecCfg(flags, jetdef, returnConfiguredDef=False)
Top level functions returning ComponentAccumulator out of JetDefinition.
Definition: JetRecConfig.py:36
addRecoJetsConfig.AddRecoJetsIfNotExistingCfg
def AddRecoJetsIfNotExistingCfg(flags, jetCollection)
Definition: addRecoJetsConfig.py:3