The Gaudi Framework  master (b9786168)
Loading...
Searching...
No Matches
HelloWorld.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 files
14#include <Gaudi/Property.h>
17
23class HelloWorld : public Algorithm {
24public:
26 HelloWorld( const std::string& name, ISvcLocator* pSvcLocator );
27
29 StatusCode initialize() override;
30 StatusCode execute() override;
31 StatusCode finalize() override;
32
33private:
40 int t_int{ 0 };
41 double t_double{ 0 };
42 std::string t_string;
43};
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
Gaudi::Property< std::string > m_string
Definition HelloWorld.h:39
StatusCode initialize() override
Three mandatory member functions of any algorithm.
Gaudi::Property< int > m_int
These data members are used in the execution of this algorithm They are set in the initialisation pha...
Definition HelloWorld.h:37
Gaudi::Property< double > m_double
Definition HelloWorld.h:38
bool m_initialized
Definition HelloWorld.h:34
HelloWorld(const std::string &name, ISvcLocator *pSvcLocator)
Constructor of this form must be provided.
StatusCode execute() override
StatusCode finalize() override
double t_double
Definition HelloWorld.h:41
std::string t_string
Definition HelloWorld.h:42
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