The Gaudi Framework
v36r13 (995e4364)
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
q
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
g
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
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
r
s
t
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
s
t
v
Files
File List
File Members
All
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
x
z
Functions
_
b
c
e
f
g
h
i
l
m
n
o
p
r
s
t
u
z
Variables
a
b
c
d
e
g
h
i
m
o
p
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
c
e
f
p
u
v
Macros
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
TemplatedAlg.cpp
Go to the documentation of this file.
1
/***********************************************************************************\
2
* (c) Copyright 1998-2019 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
// Include files
12
#include "
GaudiKernel/DataObject.h
"
13
#include "
GaudiKernel/IDataProviderSvc.h
"
14
#include "
GaudiKernel/IEventProcessor.h
"
15
#include "
GaudiKernel/MsgStream.h
"
16
17
#include "
TemplatedAlg.h
"
18
#include <vector>
19
20
// Static Factory declaration
21
typedef
TemplatedAlg<int, std::vector<std::string>
>
t1
;
22
typedef
TemplatedAlg<double, bool>
t2
;
23
24
DECLARE_COMPONENT
(
t1
)
25
DECLARE_COMPONENT_WITH_ID
(
t1
,
"TAlgIS"
)
26
DECLARE_COMPONENT
(
t2
)
27
DECLARE_COMPONENT_WITH_ID
(
t2
, "TAlgDB" )
28
29
//------------------------------------------------------------------------------
30
template <typename T, typename R>
31
StatusCode
TemplatedAlg
<T, R>::initialize() {
32
//------------------------------------------------------------------------------
33
using
Gaudi::PluginService::Details::demangle
;
34
info() <<
"Initializing TemplatedAlg instance "
<<
name
() <<
" of type "
<<
demangle
(
typeid
( *
this
) ) <<
endmsg
;
35
return
StatusCode::SUCCESS
;
36
}
37
38
//------------------------------------------------------------------------------
39
template
<
typename
T,
typename
R>
40
StatusCode
TemplatedAlg<T, R>::execute
() {
41
//------------------------------------------------------------------------------
42
return
StatusCode::SUCCESS
;
43
}
44
45
//------------------------------------------------------------------------------
46
template
<
typename
T,
typename
R>
47
StatusCode
TemplatedAlg<T, R>::finalize
() {
48
//------------------------------------------------------------------------------
49
return
StatusCode::SUCCESS
;
50
}
TemplatedAlg::finalize
StatusCode finalize() override
Definition:
TemplatedAlg.cpp:47
TemplatedAlg
Definition:
TemplatedAlg.py:1
IDataProviderSvc.h
DECLARE_COMPONENT_WITH_ID
#define DECLARE_COMPONENT_WITH_ID(type, id)
Definition:
PluginServiceV1.h:47
TimingHistograms.name
name
Definition:
TimingHistograms.py:25
StatusCode
Definition:
StatusCode.h:65
TemplatedAlg
Definition:
TemplatedAlg.h:25
TemplatedAlg.h
endmsg
MsgStream & endmsg(MsgStream &s)
MsgStream Modifier: endmsg. Calls the output method of the MsgStream.
Definition:
MsgStream.h:203
StatusCode::SUCCESS
constexpr static const auto SUCCESS
Definition:
StatusCode.h:100
DataObject.h
DECLARE_COMPONENT
#define DECLARE_COMPONENT(type)
Definition:
PluginServiceV1.h:46
TemplatedAlg::execute
StatusCode execute() override
standard execution method
Definition:
TemplatedAlg.cpp:40
t2
TemplatedAlg< double, bool > t2
Definition:
TemplatedAlg.cpp:22
Gaudi::PluginService::v1::Details::demangle
GAUDIPS_API std::string demangle(const std::type_info &id)
Return a canonical name for type_info object (implementation borrowed from GaudiKernel/System).
Definition:
PluginServiceV1.cpp:131
t1
TemplatedAlg< int, std::vector< std::string > > t1
Definition:
TemplatedAlg.cpp:21
IEventProcessor.h
MsgStream.h
GaudiExamples
src
AlgSequencer
TemplatedAlg.cpp
Generated on Mon Jun 5 2023 12:15:49 for The Gaudi Framework by
1.8.18