ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
InnerDetector
InDetValidation
InDetPhysValMonitoring
python
addTruthJetsConfig.py
Go to the documentation of this file.
1
# Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
2
3
def
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
# 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)
addTruthJetsConfig.AddTruthJetsIfNotExistingCfg
AddTruthJetsIfNotExistingCfg(flags)
Definition
addTruthJetsConfig.py:3
Generated on
for ATLAS Offline Software by
1.17.0