| The Gaudi Framework v32r1 (f65d50dc)

ViewTester.h
Go to the documentation of this file.
1
2 #include "GaudiAlg/GaudiAlgorithm.h"
3 #include "GaudiKernel/IScheduler.h"
4 #include "GaudiKernel/RegistryEntry.h"
5 #include "GaudiKernel/RndmGenerators.h"
6
7 //------------------------------------------------------------------------------
8
13 namespace Test {
14
15 class ViewTester : public GaudiAlgorithm {
16
17 public:
18 bool isClonable() const override { return true; }
19
21 StatusCode execute() override;
23 StatusCode initialize() override;
25 StatusCode finalize() override;
26
27 ViewTester( const std::string& name, // the algorithm instance name
28 ISvcLocator* pSvc ); // the Service Locator
29
30 private:
32 ViewTester(); // no default constructor
34 ViewTester( const ViewTester& ); // no copy constructor
36 ViewTester& operator=( const ViewTester& ); // no assignement
37
38 Gaudi::Property<std::vector<std::string>> m_inpKeys{this, "inpKeys", {}, ""};
39 Gaudi::Property<std::vector<std::string>> m_outKeys{this, "outKeys", {}, ""};
40 std::vector<std::unique_ptr<DataObjectHandle<DataObject>>> m_inputHandles;
41 std::vector<std::unique_ptr<DataObjectHandle<DataObject>>> m_outputHandles;
42
43 // View config
44 Gaudi::Property<std::string> m_baseViewName{this, "baseViewName", "view",
45 "Views to be named this, plus a numerical index"};
46 Gaudi::Property<unsigned int> m_viewNumber{this, "viewNumber", 0, "How many views to make"};
47 Gaudi::Property<std::string> m_viewNodeName{this, "viewNodeName", "viewNode", "Name of node to attach views to"};
48 };
49 } // namespace Test
Test::ViewTester::m_outputHandles
std::vector< std::unique_ptr< DataObjectHandle< DataObject > > > m_outputHandles
Definition: ViewTester.h:41
ISvcLocator
The ISvcLocator is the interface implemented by the Service Factory in the Application Manager to loc...
Definition: ISvcLocator.h:25
gaudiComponentHelp.name
name
Definition: gaudiComponentHelp.py:41
Gaudi::Property
Implementation of property with value of concrete type.
Definition: Property.h:352
GaudiAlgorithm.h
Header file for class GaudiAlgorithm.
Test::ViewTester::initialize
StatusCode initialize() override
Its initialization.
Definition: ViewTester.cpp:20
Test::ViewTester::finalize
StatusCode finalize() override
the finalization of the algorithm
Definition: ViewTester.cpp:106
IScheduler.h
Test::ViewTester::m_baseViewName
Gaudi::Property< std::string > m_baseViewName
Definition: ViewTester.h:44
Test::ViewTester::isClonable
bool isClonable() const override
Definition: ViewTester.h:18
Test::ViewTester
Definition: ViewTester.h:15
std::string
STL class.
Test::ViewTester::operator=
ViewTester & operator=(const ViewTester &)
the assignement operator is disabled
Test::ViewTester::m_viewNodeName
Gaudi::Property< std::string > m_viewNodeName
Definition: ViewTester.h:47
Test::ViewTester::m_inpKeys
Gaudi::Property< std::vector< std::string > > m_inpKeys
Definition: ViewTester.h:38
StatusCode
This class is used for returning status codes from appropriate routines.
Definition: StatusCode.h:50
GaudiAlgorithm
The useful base class for data processing algorithms.
Definition: GaudiAlgorithm.h:94
Test::ViewTester::m_outKeys
Gaudi::Property< std::vector< std::string > > m_outKeys
Definition: ViewTester.h:39
Test
Definition: ViewTester.h:13
Test::ViewTester::execute
StatusCode execute() override
the execution of the algorithm
Definition: ViewTester.cpp:52
RndmGenerators.h
RegistryEntry.h
std::vector
STL class.
Test::ViewTester::ViewTester
ViewTester()
the default constructor is disabled
Test::ViewTester::m_inputHandles
std::vector< std::unique_ptr< DataObjectHandle< DataObject > > > m_inputHandles
Definition: ViewTester.h:40
Test::ViewTester::m_viewNumber
Gaudi::Property< unsigned int > m_viewNumber
Definition: ViewTester.h:46