ATLAS Offline Software
Functions
addRecoJetsConfig Namespace Reference

Functions

def AddRecoJetsIfNotExistingCfg (flags, jetCollection)
 

Function Documentation

◆ AddRecoJetsIfNotExistingCfg()

def addRecoJetsConfig.AddRecoJetsIfNotExistingCfg (   flags,
  jetCollection 
)
Add algorithm to create the Reco jets collection unless the
collection exists already, or a Reco jet finder is already running

Definition at line 3 of file addRecoJetsConfig.py.

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:37
addRecoJetsConfig.AddRecoJetsIfNotExistingCfg
def AddRecoJetsIfNotExistingCfg(flags, jetCollection)
Definition: addRecoJetsConfig.py:3