The Gaudi Framework
v36r1 (3e2fb5a8)
CounterSvcAlg.cpp
Go to the documentation of this file.
1
/***********************************************************************************\
2
* (c) Copyright 1998-2019 CERN for the benefit of the LHCb and ATLAS collaborations *
3
* *
4
* This software is distributed under the terms of the Apache version 2 licence, *
5
* copied verbatim in the file "LICENSE". *
6
* *
7
* In applying this licence, CERN does not waive the privileges and immunities *
8
* granted to it by virtue of its status as an Intergovernmental Organization *
9
* or submit itself to any jurisdiction. *
10
\***********************************************************************************/
11
// ============================================================================
12
// Include files
13
// ============================================================================
14
// GaudiKernel
15
// ============================================================================
16
#include "
GaudiKernel/Algorithm.h
"
17
18
// ============================================================================
19
namespace
GaudiExamples
{
24
class
CounterSvcAlg
:
public
Algorithm
{
25
public
:
27
using
Algorithm::Algorithm
;
29
StatusCode
execute
()
override
{
return
StatusCode::SUCCESS
; }
30
};
31
32
DECLARE_COMPONENT
( CounterSvcAlg )
33
34
}
// end of namespace GaudiExamples
GaudiExamples::CounterSvcAlg::execute
StatusCode execute() override
Event callback.
Definition:
CounterSvcAlg.cpp:29
Algorithm
Alias for backward compatibility.
Definition:
Algorithm.h:58
Algorithm.h
GaudiExamples
Definition:
__init__.py:1
StatusCode
Definition:
StatusCode.h:65
GaudiExamples::CounterSvcAlg
Definition:
CounterSvcAlg.cpp:24
StatusCode::SUCCESS
constexpr static const auto SUCCESS
Definition:
StatusCode.h:100
DECLARE_COMPONENT
#define DECLARE_COMPONENT(type)
Definition:
PluginServiceV1.h:46
Gaudi::Algorithm::Algorithm
Algorithm(std::string name, ISvcLocator *svcloc, std::string version=PACKAGE_VERSION)
Constructor.
Definition:
Algorithm.h:101
GaudiExamples
src
CounterEx
CounterSvcAlg.cpp
Generated on Tue Sep 21 2021 12:27:41 for The Gaudi Framework by
1.8.18