From ac9cb2b18315d30bbae825d4141fc1507a537703 Mon Sep 17 00:00:00 2001 From: Tadej Novak <tadej.novak@cern.ch> Date: Tue, 5 Jan 2021 10:52:46 +0100 Subject: [PATCH] Fix FileMetaData writing test outside Athena --- Control/AthenaConfiguration/python/AllConfigFlags.py | 2 ++ Event/xAOD/xAODMetaDataCnv/python/TestWriteFileMetaData.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Control/AthenaConfiguration/python/AllConfigFlags.py b/Control/AthenaConfiguration/python/AllConfigFlags.py index 5025f59995a..8cbe2f60e71 100644 --- a/Control/AthenaConfiguration/python/AllConfigFlags.py +++ b/Control/AthenaConfiguration/python/AllConfigFlags.py @@ -81,6 +81,8 @@ def _createCfgFlags(): return "AthSimulation" if "AthGeneration_DIR" in os.environ: return "AthGeneration" + if "AthAnalysis_DIR" in os.environ: + return "AthAnalysis" #TODO expand this method. return "Athena" acf.addFlag('Common.Project', _checkProject()) diff --git a/Event/xAOD/xAODMetaDataCnv/python/TestWriteFileMetaData.py b/Event/xAOD/xAODMetaDataCnv/python/TestWriteFileMetaData.py index a2e4c548764..917276fa758 100644 --- a/Event/xAOD/xAODMetaDataCnv/python/TestWriteFileMetaData.py +++ b/Event/xAOD/xAODMetaDataCnv/python/TestWriteFileMetaData.py @@ -23,7 +23,7 @@ def writeFileMetaData(flags): accumulator.merge( xAODEventInfoCnvConfig.EventInfoCnvAlgCfg( - flags=flags, inputKey="", + flags=flags, inputKey="", disableBeamSpot=flags.Common.Project!="Athena" ) ) -- GitLab