From d75d06cce8d020423eaf9710f05a6e250c8db982 Mon Sep 17 00:00:00 2001 From: Frank Winklmeier <frank.winklmeier@cern.ch> Date: Mon, 4 Nov 2024 15:06:56 +0100 Subject: [PATCH] egammaMVACalib: use extends to auto-declare interface inheritance --- .../egamma/egammaMVACalib/Root/egammaMVASvc.cxx | 8 +------- .../egamma/egammaMVACalib/egammaMVACalib/egammaMVASvc.h | 7 ++++--- 2 files changed, 5 insertions(+), 10 deletions(-) diff --git a/Reconstruction/egamma/egammaMVACalib/Root/egammaMVASvc.cxx b/Reconstruction/egamma/egammaMVACalib/Root/egammaMVASvc.cxx index 8759af553e9..88c9c35c646 100644 --- a/Reconstruction/egamma/egammaMVACalib/Root/egammaMVASvc.cxx +++ b/Reconstruction/egamma/egammaMVACalib/Root/egammaMVASvc.cxx @@ -1,5 +1,5 @@ /* - Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration + Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration */ #include "egammaMVACalib/egammaMVASvc.h" @@ -11,12 +11,6 @@ #include "xAODEgamma/EgammaxAODHelpers.h" -egammaMVASvc::egammaMVASvc(const std::string& name, ISvcLocator* svc) : - asg::AsgService( name, svc ) -{ - declareServiceInterface<IegammaMVASvc>(); -} - StatusCode egammaMVASvc::initialize() { ATH_MSG_DEBUG("In initialize of " << name() << "..." ); diff --git a/Reconstruction/egamma/egammaMVACalib/egammaMVACalib/egammaMVASvc.h b/Reconstruction/egamma/egammaMVACalib/egammaMVACalib/egammaMVASvc.h index 323fd516bd6..cfd4ec6cb58 100644 --- a/Reconstruction/egamma/egammaMVACalib/egammaMVACalib/egammaMVASvc.h +++ b/Reconstruction/egamma/egammaMVACalib/egammaMVACalib/egammaMVASvc.h @@ -1,7 +1,7 @@ // Dear Emacs, this is -*- C++ -*- /* - Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration + Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration */ #ifndef EGAMMAMVACALIB_EGAMMAMVASVC_H @@ -16,10 +16,11 @@ #include <string> -class egammaMVASvc : public asg::AsgService, virtual public IegammaMVASvc +class egammaMVASvc : public extends<asg::AsgService, IegammaMVASvc> { public: - egammaMVASvc( const std::string& name, ISvcLocator* svc ); + using extends::extends; // base class constructor + virtual ~egammaMVASvc() override {}; virtual StatusCode initialize() override; -- GitLab