Skip to content
Snippets Groups Projects

eflowRec+egammaMonToolBase: service pointer migration

Merged Frank Winklmeier requested to merge fwinkl/athena:svc_pointer1 into main
2 files
+ 3
12
Compare changes
  • Side-by-side
  • Inline
Files
2
/*
Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
*/
/////////////////////////////////////////////////////////////
@@ -50,7 +50,6 @@ egammaMonToolBase::egammaMonToolBase(const std::string & type, const std::string
m_region[FORWARD]="FORWARD";
m_currentLB = 0;
m_storeGate = nullptr;
}
egammaMonToolBase::~egammaMonToolBase()
@@ -65,11 +64,6 @@ StatusCode egammaMonToolBase::initialize()
ATH_MSG_FATAL( "ManagedMonitorToolBase::initialize() - Failed" );
}
sc = service("StoreGateSvc", m_storeGate);
if(sc.isFailure()) {
ATH_MSG_FATAL( "Unable to locate Service StoreGateSvc" );
}
if (m_UseTrigger) {
sc = m_trigdec.retrieve();
if (!sc.isFailure()){
@@ -228,7 +222,7 @@ StatusCode egammaMonToolBase::fillHistograms()
bool egammaMonToolBase::hasBadLar()
{
const xAOD::EventInfo* event_info = nullptr;
StatusCode sc = m_storeGate->retrieve( event_info );
StatusCode sc = evtStore()->retrieve( event_info );
if (sc.isFailure()) {
ATH_MSG_WARNING("Could not get LAr event info!");
}
Loading