The Gaudi Framework  master (37c0b60a)
ViewTester.h
Go to the documentation of this file.
1 /***********************************************************************************\
2 * (c) Copyright 1998-2023 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 #include <GaudiKernel/Algorithm.h>
13 #include <GaudiKernel/IScheduler.h>
16 
17 //------------------------------------------------------------------------------
18 
23 namespace Test {
24 
25  class ViewTester : public Algorithm {
26 
27  public:
28  bool isClonable() const override { return true; }
29 
31  StatusCode execute() override;
33  StatusCode initialize() override;
34 
35  ViewTester( const std::string& name, // the algorithm instance name
36  ISvcLocator* pSvc ); // the Service Locator
37 
38  private:
40  ViewTester(); // no default constructor
42  ViewTester( const ViewTester& ); // no copy constructor
44  ViewTester& operator=( const ViewTester& ); // no assignement
45 
50 
51  // View config
52  Gaudi::Property<std::string> m_baseViewName{ this, "baseViewName", "view",
53  "Views to be named this, plus a numerical index" };
54  Gaudi::Property<unsigned int> m_viewNumber{ this, "viewNumber", 0, "How many views to make" };
55  Gaudi::Property<std::string> m_viewNodeName{ this, "viewNodeName", "viewNode", "Name of node to attach views to" };
56  };
57 } // namespace Test
Test::ViewTester::initialize
StatusCode initialize() override
Its initialization.
Definition: ViewTester.cpp:30
std::string
STL class.
RndmGenerators.h
Test::ViewTester::m_inputHandles
std::vector< std::unique_ptr< DataObjectHandle< DataObject > > > m_inputHandles
Definition: ViewTester.h:48
Gaudi::Algorithm::name
const std::string & name() const override
The identifying name of the algorithm object.
Definition: Algorithm.cpp:526
Test::ViewTester::m_inpKeys
Gaudi::Property< std::vector< std::string > > m_inpKeys
Definition: ViewTester.h:46
std::vector
STL class.
ISvcLocator
Definition: ISvcLocator.h:46
Algorithm
Alias for backward compatibility.
Definition: Algorithm.h:58
Algorithm.h
Test::ViewTester::ViewTester
ViewTester(const ViewTester &)
the copy constructor is disabled
RegistryEntry.h
Test::ViewTester
Definition: ViewTester.h:25
IScheduler.h
StatusCode
Definition: StatusCode.h:65
Test::ViewTester::m_outputHandles
std::vector< std::unique_ptr< DataObjectHandle< DataObject > > > m_outputHandles
Definition: ViewTester.h:49
Test::ViewTester::operator=
ViewTester & operator=(const ViewTester &)
the assignement operator is disabled
Test::ViewTester::m_outKeys
Gaudi::Property< std::vector< std::string > > m_outKeys
Definition: ViewTester.h:47
Test::ViewTester::m_baseViewName
Gaudi::Property< std::string > m_baseViewName
Definition: ViewTester.h:52
Test
Definition: ViewTester.h:23
Test::ViewTester::m_viewNumber
Gaudi::Property< unsigned int > m_viewNumber
Definition: ViewTester.h:54
Test::ViewTester::m_viewNodeName
Gaudi::Property< std::string > m_viewNodeName
Definition: ViewTester.h:55
Test::ViewTester::execute
StatusCode execute() override
the execution of the algorithm
Definition: ViewTester.cpp:62
Test::ViewTester::ViewTester
ViewTester()
the default constructor is disabled
Test::ViewTester::isClonable
bool isClonable() const override
Definition: ViewTester.h:28
DataObjectHandle.h
Gaudi::Property
Implementation of property with value of concrete type.
Definition: Property.h:37