The Gaudi Framework
master (d98a2936)
Main Page
Related Pages
Modules
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Typedefs
a
b
c
d
e
f
h
i
l
m
o
p
r
s
t
u
v
w
x
Enumerations
Enumerator
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
y
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
:
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Enumerations
a
c
d
e
f
i
l
m
n
o
p
q
r
s
t
v
Enumerator
a
b
c
d
e
f
i
j
k
l
m
n
o
p
r
s
t
u
v
w
Properties
Related Functions
:
a
b
c
d
e
g
h
i
m
o
p
r
s
t
Files
File List
File Members
All
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Functions
_
b
c
e
f
g
h
i
l
m
o
p
r
s
t
u
z
Variables
a
b
c
d
e
g
h
i
m
o
p
q
r
s
t
v
x
Typedefs
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
w
Enumerations
Enumerator
Macros
_
a
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
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
>
15
#include <
GaudiKernel/Algorithm.h
>
16
#include <
GaudiKernel/MsgStream.h
>
17
23
class
HelloWorld
:
public
Algorithm
{
24
public
:
26
HelloWorld
(
const
std::string&
name
,
ISvcLocator
* pSvcLocator );
27
29
StatusCode
initialize
()
override
;
30
StatusCode
execute
()
override
;
31
StatusCode
finalize
()
override
;
32
33
private
:
34
bool
m_initialized
;
37
Gaudi::Property<int>
m_int
;
38
Gaudi::Property<double>
m_double
;
39
Gaudi::Property<std::string>
m_string
;
40
int
t_int
{ 0 };
41
double
t_double
{ 0 };
42
std::string
t_string
;
43
};
HelloWorld::t_double
double t_double
Definition:
HelloWorld.h:41
HelloWorld::m_int
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::Algorithm::name
const std::string & name() const override
The identifying name of the algorithm object.
Definition:
Algorithm.cpp:524
HelloWorld::t_string
std::string t_string
Definition:
HelloWorld.h:42
HelloWorld::t_int
int t_int
Definition:
HelloWorld.h:40
ISvcLocator
Definition:
ISvcLocator.h:42
Algorithm
Alias for backward compatibility.
Definition:
Algorithm.h:58
Algorithm.h
HelloWorld::m_string
Gaudi::Property< std::string > m_string
Definition:
HelloWorld.h:39
HelloWorld::initialize
StatusCode initialize() override
Three mandatory member functions of any algorithm.
Definition:
HelloWorld.cpp:28
HelloWorld::HelloWorld
HelloWorld(const std::string &name, ISvcLocator *pSvcLocator)
Constructor of this form must be provided.
Definition:
HelloWorld.cpp:22
StatusCode
Definition:
StatusCode.h:64
HelloWorld
Definition:
HelloWorld.h:23
HelloWorld::execute
StatusCode execute() override
Definition:
HelloWorld.cpp:48
HelloWorld::m_initialized
bool m_initialized
Definition:
HelloWorld.h:34
HelloWorld::finalize
StatusCode finalize() override
Definition:
HelloWorld.cpp:56
HelloWorld::m_double
Gaudi::Property< double > m_double
Definition:
HelloWorld.h:38
Gaudi::Property< int >
Property.h
MsgStream.h
GaudiTestSuite
src
AlgSequencer
HelloWorld.h
Generated on Wed Aug 13 2025 09:05:05 for The Gaudi Framework by
1.8.18