The Gaudi Framework
master (9f3f8895)
Toggle main menu visibility
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
13
#include <
GaudiKernel/Algorithm.h
>
14
#include <
GaudiKernel/DataObjectHandle.h
>
15
#include <
GaudiKernel/IScheduler.h
>
16
#include <
GaudiKernel/RegistryEntry.h
>
17
#include <
GaudiKernel/RndmGenerators.h
>
18
19
//------------------------------------------------------------------------------
20
25
namespace
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
48
Gaudi::Property<std::vector<std::string>
>
m_inpKeys
{
this
,
"inpKeys"
, {},
""
};
49
Gaudi::Property<std::vector<std::string>
>
m_outKeys
{
this
,
"outKeys"
, {},
""
};
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
DataObjectHandle.h
Algorithm.h
IScheduler.h
RegistryEntry.h
RndmGenerators.h
Gaudi::Algorithm::Algorithm
Algorithm(std::string name, ISvcLocator *svcloc, std::string version=PACKAGE_VERSION)
Constructor.
Definition
Algorithm.h:98
Gaudi::Algorithm::name
const std::string & name() const override
The identifying name of the algorithm object.
Definition
Algorithm.cpp:518
Gaudi::Property
Implementation of property with value of concrete type.
Definition
Property.h:35
ISvcLocator
The ISvcLocator is the interface implemented by the Service Factory in the Application Manager to loc...
Definition
ISvcLocator.h:42
StatusCode
This class is used for returning status codes from appropriate routines.
Definition
StatusCode.h:64
Test::ViewTester::m_viewNodeName
Gaudi::Property< std::string > m_viewNodeName
Definition
ViewTester.h:57
Test::ViewTester::m_inpKeys
Gaudi::Property< std::vector< std::string > > m_inpKeys
Definition
ViewTester.h:48
Test::ViewTester::m_outputHandles
std::vector< std::unique_ptr< DataObjectHandle< DataObject > > > m_outputHandles
Definition
ViewTester.h:51
Test::ViewTester::m_baseViewName
Gaudi::Property< std::string > m_baseViewName
Definition
ViewTester.h:54
Test::ViewTester::ViewTester
ViewTester(const ViewTester &)
the copy constructor is disabled
Test::ViewTester::m_viewNumber
Gaudi::Property< unsigned int > m_viewNumber
Definition
ViewTester.h:56
Test::ViewTester::isClonable
bool isClonable() const override
Definition
ViewTester.h:30
Test::ViewTester::m_outKeys
Gaudi::Property< std::vector< std::string > > m_outKeys
Definition
ViewTester.h:49
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:50
Test::ViewTester::ViewTester
ViewTester(const std::string &name, ISvcLocator *pSvc)
Definition
ViewTester.cpp:26
Test::ViewTester::initialize
StatusCode initialize() override
Its initialization.
Definition
ViewTester.cpp:30
Test::ViewTester::operator=
ViewTester & operator=(const ViewTester &)
the assignement operator is disabled
Test::ViewTester::execute
StatusCode execute() override
the execution of the algorithm
Definition
ViewTester.cpp:62
Test
Definition
ViewTester.h:25
GaudiHive
src
ViewTester.h
Generated on
for The Gaudi Framework by
1.17.0