ATLAS Offline Software
Functions
addTruthJetsConfig Namespace Reference

Functions

def AddTruthJetsIfNotExistingCfg (flags)
 

Function Documentation

◆ AddTruthJetsIfNotExistingCfg()

def addTruthJetsConfig.AddTruthJetsIfNotExistingCfg (   flags)
Add algorithm to create the truth jets collection unless the
collection exists already, or a truth jet finder is already running

Definition at line 3 of file addTruthJetsConfig.py.

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  # 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#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  # Append a "full truth" ghost association for IDPVM (run on AOD with full truth container)
20  AntiKt4Truth.ghostdefs.append("Truth")
21  from JetRecConfig.JetRecConfig import JetRecCfg
22  return JetRecCfg(flags, AntiKt4Truth)
vtune_athena.format
format
Definition: vtune_athena.py:14
addTruthJetsConfig.AddTruthJetsIfNotExistingCfg
def AddTruthJetsIfNotExistingCfg(flags)
Definition: addTruthJetsConfig.py:3
python.JetRecConfig.JetRecCfg
def JetRecCfg(flags, jetdef, returnConfiguredDef=False)
Top level functions returning ComponentAccumulator out of JetDefinition.
Definition: JetRecConfig.py:37