Commit 19fbdd84 authored by Adam Edward Barton's avatar Adam Edward Barton
Browse files

Merge branch 'cost-slots' into 'master'

TrigCost: Fix numConcurrentEvents misconfiguration warning

See merge request atlas/athena!46278
parents 885a9edd 74fb3ba1
...@@ -2,8 +2,7 @@ ...@@ -2,8 +2,7 @@
Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
*/ */
#include "GaudiKernel/ConcurrencyFlags.h" #include "AthenaKernel/SlotSpecificObj.h"
#include "TrigConfHLTUtils/HLTUtils.h" #include "TrigConfHLTUtils/HLTUtils.h"
#include "TrigCostSvc.h" #include "TrigCostSvc.h"
...@@ -39,7 +38,7 @@ TrigCostSvc::~TrigCostSvc() { ...@@ -39,7 +38,7 @@ TrigCostSvc::~TrigCostSvc() {
StatusCode TrigCostSvc::initialize() { StatusCode TrigCostSvc::initialize() {
ATH_MSG_DEBUG("TrigCostSvc initialize()"); ATH_MSG_DEBUG("TrigCostSvc initialize()");
m_eventSlots = Gaudi::Concurrency::ConcurrencyFlags::numConcurrentEvents(); m_eventSlots = SG::getNSlots();
// TODO Remove this when the configuration is correctly propagated in config-then-run jobs // TODO Remove this when the configuration is correctly propagated in config-then-run jobs
if (!m_eventSlots) { if (!m_eventSlots) {
ATH_MSG_WARNING("numConcurrentEvents() == 0. This is a misconfiguration, probably coming from running from pickle. " ATH_MSG_WARNING("numConcurrentEvents() == 0. This is a misconfiguration, probably coming from running from pickle. "
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment