From 0206863783c697b9593251cac29d9feff84b265a Mon Sep 17 00:00:00 2001 From: Tomas Dado <tomas.dado@cern.ch> Date: Tue, 15 Dec 2020 10:51:10 +0100 Subject: [PATCH] AnalysisTop: Fixing issue with AtomicConstAccessor --- .../TopPhys/xAOD/TopAnalysis/Root/EventSaverFlatNtuple.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/PhysicsAnalysis/TopPhys/xAOD/TopAnalysis/Root/EventSaverFlatNtuple.cxx b/PhysicsAnalysis/TopPhys/xAOD/TopAnalysis/Root/EventSaverFlatNtuple.cxx index 604e408b09cc..6ed286fe5a70 100644 --- a/PhysicsAnalysis/TopPhys/xAOD/TopAnalysis/Root/EventSaverFlatNtuple.cxx +++ b/PhysicsAnalysis/TopPhys/xAOD/TopAnalysis/Root/EventSaverFlatNtuple.cxx @@ -12,6 +12,7 @@ #include "xAODMissingET/MissingETContainer.h" #include "xAODBTagging/BTaggingUtilities.h" +#include "AthContainers/tools/AtomicConstAccessor.h" #include "AthContainers/AuxTypeRegistry.h" #include "TFile.h" @@ -2209,7 +2210,8 @@ namespace top { // (non-collision-)background flags m_backgroundFlags = 0; - if (event.m_info->isAvailable<unsigned int>("backgroundFlags")) m_backgroundFlags = event.m_info->auxdataConst<unsigned int>("backgroundFlags"); + static const SG::AtomicConstAccessor<unsigned int> bkgFlagsAcc("backgroundFlags"); + if (bkgFlagsAcc.isAvailable(*(event.m_info))) m_backgroundFlags = bkgFlagsAcc(*(event.m_info)); // hasBadMuon flag m_hasBadMuon = 0; -- GitLab