The Gaudi Framework
master (9f3f8895)
Toggle main menu visibility
Loading...
Searching...
No Matches
IncidentAsyncTestAlg.h
Go to the documentation of this file.
1
/***********************************************************************************\
2
* (c) Copyright 1998-2025 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
#pragma once
12
13
#include <
GaudiKernel/Algorithm.h
>
14
#include <
GaudiKernel/DataObjectHandle.h
>
15
#include <memory>
16
17
class
IIncidentSvc
;
18
class
IncidentListener;
19
class
IIncidentAsyncTestSvc
;
20
21
class
IncidentAsyncTestAlg
:
public
Algorithm
{
22
public
:
23
using
Algorithm::Algorithm
;
24
25
StatusCode
initialize
()
override
;
26
StatusCode
execute
()
override
;
27
StatusCode
finalize
()
override
;
28
29
bool
isClonable
()
const override
{
return
true
; }
30
31
static
std::string&
incident
();
32
33
private
:
34
Gaudi::Property<std::string>
m_serviceName
{
this
,
"ServiceName"
,
"IncTestSvc"
};
35
Gaudi::Property<std::vector<std::string>
>
m_inpKeys
{
this
,
"inpKeys"
};
36
Gaudi::Property<std::vector<std::string>
>
m_outKeys
{
this
,
"outKeys"
};
37
SmartIF<IIncidentAsyncTestSvc>
m_service
;
38
std::vector<std::unique_ptr<DataObjectHandle<DataObject>>>
m_inputObjHandles
;
39
std::vector<std::unique_ptr<DataObjectHandle<DataObject>>>
m_outputObjHandles
;
40
};
DataObjectHandle.h
Algorithm.h
Gaudi::Algorithm::Algorithm
Algorithm(std::string name, ISvcLocator *svcloc, std::string version=PACKAGE_VERSION)
Constructor.
Definition
Algorithm.h:98
Gaudi::Property
Implementation of property with value of concrete type.
Definition
Property.h:35
IIncidentAsyncTestSvc
Definition
IIncidentAsyncTestSvc.h:20
IIncidentSvc
The interface implemented by the IncidentSvc service.
Definition
IIncidentSvc.h:30
IncidentAsyncTestAlg
Definition
IncidentAsyncTestAlg.h:21
IncidentAsyncTestAlg::execute
StatusCode execute() override
Definition
IncidentAsyncTestAlg.cpp:46
IncidentAsyncTestAlg::incident
static std::string & incident()
IncidentAsyncTestAlg::isClonable
bool isClonable() const override
Definition
IncidentAsyncTestAlg.h:29
IncidentAsyncTestAlg::m_outKeys
Gaudi::Property< std::vector< std::string > > m_outKeys
Definition
IncidentAsyncTestAlg.h:36
IncidentAsyncTestAlg::initialize
StatusCode initialize() override
Definition
IncidentAsyncTestAlg.cpp:24
IncidentAsyncTestAlg::m_service
SmartIF< IIncidentAsyncTestSvc > m_service
Definition
IncidentAsyncTestAlg.h:37
IncidentAsyncTestAlg::m_serviceName
Gaudi::Property< std::string > m_serviceName
Definition
IncidentAsyncTestAlg.h:34
IncidentAsyncTestAlg::m_inpKeys
Gaudi::Property< std::vector< std::string > > m_inpKeys
Definition
IncidentAsyncTestAlg.h:35
IncidentAsyncTestAlg::finalize
StatusCode finalize() override
Definition
IncidentAsyncTestAlg.cpp:66
IncidentAsyncTestAlg::m_inputObjHandles
std::vector< std::unique_ptr< DataObjectHandle< DataObject > > > m_inputObjHandles
Definition
IncidentAsyncTestAlg.h:38
IncidentAsyncTestAlg::m_outputObjHandles
std::vector< std::unique_ptr< DataObjectHandle< DataObject > > > m_outputObjHandles
Definition
IncidentAsyncTestAlg.h:39
SmartIF
Small smart pointer class with automatic reference counting for IInterface.
Definition
SmartIF.h:28
StatusCode
This class is used for returning status codes from appropriate routines.
Definition
StatusCode.h:64
GaudiTestSuite
src
IncidentSvc
IncidentAsyncTestAlg.h
Generated on
for The Gaudi Framework by
1.17.0