ATLAS Offline Software
HelloTool.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef ATHEXHELLOWORLD_HELLOTOOL_H
6 #define ATHEXHELLOWORLD_HELLOTOOL_H
7 
10 
11 #include <string>
12 
13 class HelloTool : public extends<AthAlgTool, IHelloTool> {
14  public:
15  HelloTool(const std::string &type, const std::string &name, const IInterface *parent);
16 
17  // the magic method this tool provides
18  virtual StatusCode saySomething() override;
19 
20  private:
21  Gaudi::Property<std::string> m_myMessage{this, "MyMessage",
22  "Default message set in HelloTool.h",
23  "something to say"};
24 };
25 
26 #endif
IHelloTool.h
HelloTool::m_myMessage
Gaudi::Property< std::string > m_myMessage
Definition: HelloTool.h:21
HelloTool::saySomething
virtual StatusCode saySomething() override
Definition: HelloTool.cxx:11
HelloTool
Definition: HelloTool.h:13
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
AthAlgTool.h
test_pyathena.parent
parent
Definition: test_pyathena.py:15
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
HelloTool::HelloTool
HelloTool(const std::string &type, const std::string &name, const IInterface *parent)
Definition: HelloTool.cxx:7
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78