| The Gaudi Framework v32r1 (f65d50dc)

HiveTestAlgorithm.h
Go to the documentation of this file.
1 //
2 // HiveTestAlgorithm.h
3 //
4 //
5 // Created by Benedikt Hegner on 7/21/12.
6 // Copyright (c) 2012 __CERN__. All rights reserved.
7 //
8
9 #include "GaudiAlg/GaudiAlgorithm.h"
10 #include "GaudiKernel/Property.h"
11
12 class GAUDI_API HiveTestAlgorithm : public GaudiAlgorithm {
13 public:
17 using GaudiAlgorithm::GaudiAlgorithm;
18
19 /*****************************
20 ** Public Function Members **
21 *****************************/
22
23 StatusCode initialize() override;
24 StatusCode execute() override;
25 StatusCode finalize() override;
26
27 // BH: concurrency additions
28 virtual const std::vector<std::string> get_inputs();
29 virtual const std::vector<std::string> get_outputs();
30
31 private:
32 /**************************
33 ** Private Data Members **
34 **************************/
35
39 int m_total = 0;
40
41 Gaudi::Property<std::vector<std::string>> m_inputs{this, "Input", {}, "List of required inputs"};
42 Gaudi::Property<std::vector<std::string>> m_outputs{this, "Output", {}, "List of provided outputs"};
43
44 std::vector<DataObjectHandle<DataObject>*> m_inputHandles;
45 std::vector<DataObjectHandle<DataObject>*> m_outputHandles;
46 };
HiveTestAlgorithm::m_outputHandles
std::vector< DataObjectHandle< DataObject > * > m_outputHandles
Definition: HiveTestAlgorithm.h:45
Gaudi::Property
Implementation of property with value of concrete type.
Definition: Property.h:352
GaudiAlgorithm::initialize
StatusCode initialize() override
standard initialization method
Definition: GaudiAlgorithm.cpp:42
GaudiAlgorithm.h
Header file for class GaudiAlgorithm.
HiveTestAlgorithm
Definition: HiveTestAlgorithm.h:12
GaudiAlgorithm::execute
StatusCode execute() override
standard execution method
Definition: GaudiAlgorithm.cpp:67
StatusCode
This class is used for returning status codes from appropriate routines.
Definition: StatusCode.h:50
GaudiAlgorithm::finalize
StatusCode finalize() override
standard finalization method
Definition: GaudiAlgorithm.cpp:55
GaudiAlgorithm
The useful base class for data processing algorithms.
Definition: GaudiAlgorithm.h:94
std::vector< std::string >
Property.h
HiveTestAlgorithm::m_inputHandles
std::vector< DataObjectHandle< DataObject > * > m_inputHandles
Definition: HiveTestAlgorithm.h:44
GAUDI_API
#define GAUDI_API
Definition: Kernel.h:71
GaudiAlgorithm::GaudiAlgorithm
GaudiAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Standard constructor.
Definition: GaudiAlgorithm.cpp:35