The Gaudi Framework
master (0ea74171)
Toggle main menu visibility
Loading...
Searching...
No Matches
HiveTestAlgorithm.h
Go to the documentation of this file.
1
/***********************************************************************************\
2
* (c) Copyright 2012-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 <
Gaudi/Property.h
>
14
#include <
GaudiKernel/Algorithm.h
>
15
#include <
GaudiKernel/DataObjectHandle.h
>
16
17
class
GAUDI_API
HiveTestAlgorithm
:
public
Algorithm
{
18
public
:
22
using
Algorithm::Algorithm
;
23
24
/*****************************
25
** Public Function Members **
26
*****************************/
27
28
StatusCode
initialize
()
override
;
29
StatusCode
execute
()
override
;
30
StatusCode
finalize
()
override
;
31
32
// BH: concurrency additions
33
virtual
const
std::vector<std::string>
get_inputs
();
34
virtual
const
std::vector<std::string>
get_outputs
();
35
36
private
:
37
/**************************
38
** Private Data Members **
39
**************************/
40
44
int
m_total
= 0;
45
46
Gaudi::Property<std::vector<std::string>
>
m_inputs
{
this
,
"Input"
, {},
"List of required inputs"
};
47
Gaudi::Property<std::vector<std::string>
>
m_outputs
{
this
,
"Output"
, {},
"List of provided outputs"
};
48
49
std::vector<std::unique_ptr<DataObjectHandle<DataObject>>>
m_inputHandles
;
50
std::vector<std::unique_ptr<DataObjectHandle<DataObject>>>
m_outputHandles
;
51
};
DataObjectHandle.h
Property.h
Algorithm.h
GAUDI_API
#define GAUDI_API
Definition
Kernel.h:49
Algorithm::execute
StatusCode execute() override=0
Gaudi::Algorithm::Algorithm
Algorithm(std::string name, ISvcLocator *svcloc, std::string version=PACKAGE_VERSION)
Constructor.
Definition
Algorithm.h:98
Gaudi::Algorithm::initialize
StatusCode initialize() override
the default (empty) implementation of IStateful::initialize() method
Definition
Algorithm.h:175
Gaudi::Algorithm::finalize
StatusCode finalize() override
the default (empty) implementation of IStateful::finalize() method
Definition
Algorithm.h:181
Gaudi::Property
Implementation of property with value of concrete type.
Definition
Property.h:35
HiveTestAlgorithm
Definition
HiveTestAlgorithm.h:17
HiveTestAlgorithm::m_outputHandles
std::vector< std::unique_ptr< DataObjectHandle< DataObject > > > m_outputHandles
Definition
HiveTestAlgorithm.h:50
HiveTestAlgorithm::get_outputs
virtual const std::vector< std::string > get_outputs()
Definition
HiveTestAlgorithm.cpp:90
HiveTestAlgorithm::get_inputs
virtual const std::vector< std::string > get_inputs()
Definition
HiveTestAlgorithm.cpp:88
HiveTestAlgorithm::m_inputs
Gaudi::Property< std::vector< std::string > > m_inputs
Definition
HiveTestAlgorithm.h:46
HiveTestAlgorithm::m_inputHandles
std::vector< std::unique_ptr< DataObjectHandle< DataObject > > > m_inputHandles
Definition
HiveTestAlgorithm.h:49
HiveTestAlgorithm::m_total
int m_total
The total events seen.
Definition
HiveTestAlgorithm.h:44
HiveTestAlgorithm::m_outputs
Gaudi::Property< std::vector< std::string > > m_outputs
Definition
HiveTestAlgorithm.h:47
StatusCode
This class is used for returning status codes from appropriate routines.
Definition
StatusCode.h:64
GaudiHive
src
HiveTestAlgorithm.h
Generated on
for The Gaudi Framework by
1.17.0