3def 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
10
11
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)