Loading [MathJax]/extensions/tex2jax.js
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
StateMachine.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 <
GaudiKernel/GaudiException.h
>
14
15
namespace
Gaudi
{
16
namespace
StateMachine {
21
enum
State
{
22
OFFLINE
,
23
CONFIGURED
,
24
INITIALIZED
,
25
RUNNING
//,
26
// FINALIZED = CONFIGURED
27
};
28
32
enum
Transition
{
33
CONFIGURE
,
// OFFLINE -> CONFIGURED
34
INITIALIZE
,
// CONFIGURED -> INITIALIZED
35
START
,
// INITIALIZED -> RUNNING
36
STOP
,
// RUNNING -> INITIALIZED
37
FINALIZE
,
// INITIALIZED -> CONFIGURED
38
TERMINATE
// CONFIGURED -> OFFLINE
39
};
40
45
State
GAUDI_API
ChangeState
(
const
Transition
transition,
const
State
state
);
46
48
inline
std::ostream&
operator<<
( std::ostream&
s
,
const
Gaudi::StateMachine::State
& st ) {
49
switch
( st ) {
50
case
Gaudi::StateMachine::OFFLINE
:
51
return
s
<<
"OFFLINE"
;
52
case
Gaudi::StateMachine::CONFIGURED
:
53
return
s
<<
"CONFIGURED"
;
54
case
Gaudi::StateMachine::INITIALIZED
:
55
return
s
<<
"INITIALIZED"
;
56
case
Gaudi::StateMachine::RUNNING
:
57
return
s
<<
"RUNNING"
;
58
default
:
59
return
s
;
60
}
61
}
62
64
inline
std::ostream&
operator<<
( std::ostream&
s
,
const
Gaudi::StateMachine::Transition
&
t
) {
65
switch
(
t
) {
66
case
Gaudi::StateMachine::CONFIGURE
:
67
return
s
<<
"CONFIGURE"
;
68
case
Gaudi::StateMachine::INITIALIZE
:
69
return
s
<<
"INITIALIZE"
;
70
case
Gaudi::StateMachine::START
:
71
return
s
<<
"START"
;
72
case
Gaudi::StateMachine::STOP
:
73
return
s
<<
"STOP"
;
74
case
Gaudi::StateMachine::FINALIZE
:
75
return
s
<<
"FINALIZE"
;
76
case
Gaudi::StateMachine::TERMINATE
:
77
return
s
<<
"TERMINATE"
;
78
default
:
79
return
s
;
80
}
81
}
82
83
}
// namespace StateMachine
84
}
// namespace Gaudi
Gaudi::StateMachine::TERMINATE
@ TERMINATE
Definition:
StateMachine.h:38
GaudiException.h
gaudirun.s
string s
Definition:
gaudirun.py:346
Gaudi::StateMachine::FINALIZE
@ FINALIZE
Definition:
StateMachine.h:37
Gaudi::StateMachine::operator<<
std::ostream & operator<<(std::ostream &s, const Gaudi::StateMachine::State &st)
Pretty print of states.
Definition:
StateMachine.h:48
Gaudi::StateMachine::INITIALIZE
@ INITIALIZE
Definition:
StateMachine.h:34
bug_34121.t
t
Definition:
bug_34121.py:31
Gaudi::StateMachine::State
State
Allowed states for classes implementing the state machine (ApplicationMgr, Algorithm,...
Definition:
StateMachine.h:21
Gaudi::StateMachine::CONFIGURED
@ CONFIGURED
Definition:
StateMachine.h:23
Gaudi::StateMachine::OFFLINE
@ OFFLINE
Definition:
StateMachine.h:22
Gaudi::StateMachine::RUNNING
@ RUNNING
Definition:
StateMachine.h:25
Gaudi
This file provides a Grammar for the type Gaudi::Accumulators::Axis It allows to use that type from p...
Definition:
__init__.py:1
Gaudi::StateMachine::ChangeState
State GAUDI_API ChangeState(const Transition transition, const State state)
Function to get the new state according to the required transition, checking if the transition is all...
Definition:
StateMachine.cpp:19
Gaudi::StateMachine::Transition
Transition
Allowed transitions between states.
Definition:
StateMachine.h:32
Gaudi::StateMachine::INITIALIZED
@ INITIALIZED
Definition:
StateMachine.h:24
Gaudi::StateMachine::START
@ START
Definition:
StateMachine.h:35
compareRootHistos.state
state
Definition:
compareRootHistos.py:496
Gaudi::StateMachine::CONFIGURE
@ CONFIGURE
Definition:
StateMachine.h:33
GAUDI_API
#define GAUDI_API
Definition:
Kernel.h:49
Gaudi::StateMachine::STOP
@ STOP
Definition:
StateMachine.h:36
GaudiKernel
include
GaudiKernel
StateMachine.h
Generated on Wed Aug 13 2025 09:05:04 for The Gaudi Framework by
1.8.18