Skip to content

DerivationFrameworkMCTruth: Fix missing imports in MCTruthCommon.py

This should fix the configuration error seen in test_mc16PHYS_PHYSLITE.sh ART test that has been failing for a while now by the looks of it:

Shortened traceback (most recent user call last):
  File "/cvmfs/atlas-nightlies.cern.ch/repo/sw/master_Athena_x86_64-centos7-gcc8-opt/2021-04-13T2101/Athena/22.0.32/InstallArea/x86_64-centos7-gcc8-opt/jobOptions/PATJobTransforms/skeleton.AODtoDAOD_tf.py", line 112, in <module>
    else: include( "RecExCommon/RecExCommon_topOptions.py" )
  File "/cvmfs/atlas-nightlies.cern.ch/repo/sw/master_Athena_x86_64-centos7-gcc8-opt/2021-04-13T2101/Athena/22.0.32/InstallArea/x86_64-centos7-gcc8-opt/jobOptions/RecExCommon/RecExCommon_topOptions.py", line 1200, in <module>
    include(DPDMaker)
  File "/cvmfs/atlas-nightlies.cern.ch/repo/sw/master_Athena_x86_64-centos7-gcc8-opt/2021-04-13T2101/Athena/22.0.32/InstallArea/x86_64-centos7-gcc8-opt/jobOptions/DerivationFrameworkPhys/PHYSLITE.py", line 42, in <module>
    addStandardTruthContents(SeqPHYSLITE)
  File "/cvmfs/atlas-nightlies.cern.ch/repo/sw/master_Athena_x86_64-centos7-gcc8-opt/2021-04-13T2101/Athena/22.0.32/InstallArea/x86_64-centos7-gcc8-opt/python/DerivationFrameworkMCTruth/MCTruthCommon.py", line 285, in addStandardTruthContents
    addTruthJets(kernel, decorationDressing)
  File "/cvmfs/atlas-nightlies.cern.ch/repo/sw/master_Athena_x86_64-centos7-gcc8-opt/2021-04-13T2101/Athena/22.0.32/InstallArea/x86_64-centos7-gcc8-opt/python/DerivationFrameworkMCTruth/MCTruthCommon.py", line 157, in addTruthJets
    for ptype in jetFlags.truthFlavorTags():

UnboundLocalError: local variable 'jetFlags' referenced before assignment

cc: @jcatmore @calpigia @elmsheus @gemmeren

Merge request reports