The Gaudi Framework  master (181af51f)
Loading...
Searching...
No Matches
ViewTester.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
18
19//------------------------------------------------------------------------------
20
25namespace Test {
26
27 class ViewTester : public Algorithm {
28
29 public:
30 bool isClonable() const override { return true; }
31
33 StatusCode execute() override;
35 StatusCode initialize() override;
36
37 ViewTester( const std::string& name, // the algorithm instance name
38 ISvcLocator* pSvc ); // the Service Locator
39
40 private:
42 ViewTester(); // no default constructor
44 ViewTester( const ViewTester& ); // no copy constructor
46 ViewTester& operator=( const ViewTester& ); // no assignement
47
50 std::vector<std::unique_ptr<DataObjectHandle<DataObject>>> m_inputHandles;
51 std::vector<std::unique_ptr<DataObjectHandle<DataObject>>> m_outputHandles;
52
53 // View config
54 Gaudi::Property<std::string> m_baseViewName{ this, "baseViewName", "view",
55 "Views to be named this, plus a numerical index" };
56 Gaudi::Property<unsigned int> m_viewNumber{ this, "viewNumber", 0, "How many views to make" };
57 Gaudi::Property<std::string> m_viewNodeName{ this, "viewNodeName", "viewNode", "Name of node to attach views to" };
58 };
59} // namespace Test
Algorithm(std::string name, ISvcLocator *svcloc, std::string version=PACKAGE_VERSION)
Constructor.
Definition Algorithm.h:98
const std::string & name() const override
The identifying name of the algorithm object.
Implementation of property with value of concrete type.
Definition PropertyFwd.h:27
The ISvcLocator is the interface implemented by the Service Factory in the Application Manager to loc...
Definition ISvcLocator.h:42
This class is used for returning status codes from appropriate routines.
Definition StatusCode.h:64
Gaudi::Property< std::string > m_viewNodeName
Definition ViewTester.h:57
Gaudi::Property< std::vector< std::string > > m_inpKeys
Definition ViewTester.h:48
std::vector< std::unique_ptr< DataObjectHandle< DataObject > > > m_outputHandles
Definition ViewTester.h:51
Gaudi::Property< std::string > m_baseViewName
Definition ViewTester.h:54
ViewTester(const ViewTester &)
the copy constructor is disabled
Gaudi::Property< unsigned int > m_viewNumber
Definition ViewTester.h:56
bool isClonable() const override
Definition ViewTester.h:30
Gaudi::Property< std::vector< std::string > > m_outKeys
Definition ViewTester.h:49
ViewTester()
the default constructor is disabled
std::vector< std::unique_ptr< DataObjectHandle< DataObject > > > m_inputHandles
Definition ViewTester.h:50
ViewTester(const std::string &name, ISvcLocator *pSvc)
StatusCode initialize() override
Its initialization.
ViewTester & operator=(const ViewTester &)
the assignement operator is disabled
StatusCode execute() override
the execution of the algorithm