3def AddTruthJetsIfNotExistingCfg(flags):
4 '''
5 Add algorithm to create the truth jets collection unless the
6 collection exists already, or a truth jet finder is already running
7 '''
8
9
10
11
12 if "xAOD::JetContainer#AntiKt4TruthJets" not in flags.Input.TypedCollections:
13 from AthenaCommon.Logging import logging
14 log = logging.getLogger('InDetPhysValMonitoring/addTruthJets.py')
15
16 log.info('DEBUG addTruthJetsIfNotExising {} not in {} [file_type={}]'.format("AntiKt4TruthJets", flags.Input.TypedCollections, flags.Input.Format))
17
18 from JetRecConfig.StandardSmallRJets import AntiKt4Truth
19
20 AntiKt4Truth.ghostdefs.append("Truth")
21 from JetRecConfig.JetRecConfig import JetRecCfg
22 return JetRecCfg(flags, AntiKt4Truth)