5#ifndef ATHEXHELLOWORLD_HELLOALG_H
6#define ATHEXHELLOWORLD_HELLOALG_H
9#include "Gaudi/Property.h"
10#include "GaudiKernel/ToolHandle.h"
21 HelloAlg(
const std::string &name, ISvcLocator *pSvcLocator);
24 virtual StatusCode
execute()
override;
25 virtual StatusCode
finalize()
override;
29 Gaudi::Property<int>
m_myInt{
this,
"MyInt", 0,
"An Integer"};
30 Gaudi::Property<bool>
m_myBool{
this,
"MyBool",
false,
"A Bool"};
31 Gaudi::Property<double>
m_myDouble{
this,
"MyDouble", 0.,
"A Double"};
34 this,
"MyStringVec", {},
"an entire vector of strings"};
36 typedef std::map<std::string, std::string>
Dict_t;
37 Gaudi::Property<Dict_t>
m_myDict{
this,
"MyDict", {},
"A little dictionary"};
39 typedef std::vector<std::vector<double>>
Matrix_t;
41 this,
"MyMatrix", {},
"A matrix of doubles"};
44 typedef std::vector<std::pair<double, double>>
Table_t;
49 this,
"MyPrivateHelloTool",
"HelloTool",
"private IHelloTool"};
52 this,
"MyPublicHelloTool",
"HelloTool",
"public, shared IHelloTool"};
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
Gaudi::Property< Matrix_t > m_myMatrix
ToolHandle< IHelloTool > m_myPrivateHelloTool
Gaudi::Property< bool > m_myBool
Gaudi::Property< int > m_myInt
PublicToolHandle< IHelloTool > m_myPublicHelloTool
virtual StatusCode finalize() override
std::vector< std::vector< double > > Matrix_t
virtual StatusCode execute() override
Gaudi::Property< std::vector< std::string > > m_myStringVec
std::map< std::string, std::string > Dict_t
Gaudi::Property< double > m_myDouble
HelloAlg(const std::string &name, ISvcLocator *pSvcLocator)
virtual StatusCode initialize() override
Gaudi::Property< Dict_t > m_myDict
std::vector< std::pair< double, double > > Table_t