Skip to content
Snippets Groups Projects
Commit d33d1dde authored by scott snyder's avatar scott snyder
Browse files

TrigConfigSvc: VarHandle migration.

    
Change TrigConfDataIOVChanger get the run number from EventContext,
rather than doing a retrieve of EventInfo.
parent 9cdaf5cb
9 merge requests!58791DataQualityConfigurations: Modify L1Calo config for web display,!46784MuonCondInterface: Enable thread-safety checking.,!46776Updated LArMonitoring config file for WD to match new files produced using MT,!45405updated ART test cron job,!42417Draft: DIRE and VINCIA Base Fragments for Pythia 8.3,!28528Revert 63f845ae,!27054Atr20369 210,!26342Monopole: Handle fractionally charged particles,!20805TrigConfigSvc: VarHandle migration.
/*
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
*/
/**************************************************************************
......@@ -39,6 +39,7 @@
#include "AthenaPoolUtilities/CondAttrListCollection.h"
#include "TrigConfInterfaces/ITrigConfigSvc.h"
#include "GaudiKernel/ThreadLocalContext.h"
#define TRIGGER_CONF_HLTMENU "/TRIGGER/HLT/Menu"
#define TRIGGER_CONF_HLTKEYS "/TRIGGER/HLT/HltConfigKeys"
......@@ -91,15 +92,8 @@ StatusCode
TrigConf::TrigConfDataIOVChanger::execute() {
// First get the runnumber:
const EventInfo* eventInfo = 0;
CHECK(m_storeGate->retrieve(eventInfo));
if (!eventInfo) {
ATH_MSG_ERROR("EventInfo from storegate is 0");
return StatusCode::FAILURE;
}
unsigned int runNumber = eventInfo->event_ID()->run_number();
const EventContext& ctx = Gaudi::Hive::currentContext();
unsigned int runNumber = ctx.eventID().run_number();
if(m_LastRun == runNumber) // already executed in this run?
return StatusCode::SUCCESS;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment