Skip to content
Snippets Groups Projects
Commit b348f453 authored by Frank Winklmeier's avatar Frank Winklmeier
Browse files

ITriggerTime: migrate to auto-declaring interface

parent b9af2871
No related branches found
No related tags found
No related merge requests found
/*
Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
*/
#include "CosmicTriggerTimeTool.h"
......@@ -16,7 +16,7 @@
CosmicTriggerTimeTool::CosmicTriggerTimeTool(const std::string& type,
const std::string& name,
const IInterface* parent) :
AthAlgTool(type,name,parent), m_time(0), m_newEvent(true),
base_class(type,name,parent), m_time(0), m_newEvent(true),
m_comTime(0) , m_useLArTime(false)
{
......
/*
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
*/
#ifndef COSMICTRIGGERTIMETOOL_H
......@@ -11,8 +11,7 @@
class ComTime ;
class CosmicTriggerTimeTool :public ITriggerTime, public AthAlgTool,
virtual public IIncidentListener
class CosmicTriggerTimeTool : public extends<AthAlgTool, ITriggerTime, IIncidentListener>
{
public:
......
/*
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
*/
#ifndef ATHENAKERNEL_ITRIGGERTIME_H
......@@ -8,7 +8,6 @@
* @brief interface to a tool that returns the
* time offset of the current trigger. Used by PileUpMergeSvc
* @author Paolo Calafiura <pcalafiura@lbl.gov> - ATLAS Collaboration
*$Id: ITriggerTime.h,v 1.2 2007-06-23 01:12:06 calaf Exp $
*/
#include "GaudiKernel/IAlgTool.h"
......@@ -19,11 +18,9 @@
*/
class ITriggerTime : public virtual IAlgTool {
public:
DeclareInterfaceID(ITriggerTime, 1, 0);
/// returns the time offset of the current trigger
virtual double time() = 0;
static const InterfaceID& interfaceID() {
static const InterfaceID IID( "ITriggerTime", 1, 0 );
return IID;
}
};
#endif
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