The Gaudi Framework  master (ff829712)
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>
16
18public:
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
36private:
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};
#define GAUDI_API
Definition Kernel.h:49
StatusCode execute() override=0
Algorithm(std::string name, ISvcLocator *svcloc, std::string version=PACKAGE_VERSION)
Constructor.
Definition Algorithm.h:98
StatusCode initialize() override
the default (empty) implementation of IStateful::initialize() method
Definition Algorithm.h:175
StatusCode finalize() override
the default (empty) implementation of IStateful::finalize() method
Definition Algorithm.h:181
Implementation of property with value of concrete type.
Definition PropertyFwd.h:27
std::vector< std::unique_ptr< DataObjectHandle< DataObject > > > m_outputHandles
virtual const std::vector< std::string > get_outputs()
virtual const std::vector< std::string > get_inputs()
Gaudi::Property< std::vector< std::string > > m_inputs
std::vector< std::unique_ptr< DataObjectHandle< DataObject > > > m_inputHandles
int m_total
The total events seen.
Gaudi::Property< std::vector< std::string > > m_outputs
This class is used for returning status codes from appropriate routines.
Definition StatusCode.h:64