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
AlgToolHistory.cpp
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
#include <
GaudiKernel/AlgTool.h
>
12
#include <
GaudiKernel/AlgToolHistory.h
>
13
#include <
GaudiKernel/JobHistory.h
>
14
15
#include <iostream>
16
17
using
std::endl;
18
using
std::ostream;
19
20
AlgToolHistory::AlgToolHistory
(
const
AlgTool
&
alg
,
const
JobHistory
* job )
21
: m_type(
alg
.
type
() )
22
, m_version(
"UNKNOWN"
)
23
, m_name(
alg
.
name
() )
24
, m_tool( &
alg
)
25
, m_properties(
alg
.getProperties() )
26
, m_jobHistory( job ) {}
27
28
AlgToolHistory::AlgToolHistory
( std::string algVersion, std::string algName, std::string algType,
const
AlgTool
*
tool
,
29
const
PropertyList
&
props
,
30
const
JobHistory
* job )
31
: m_type(
std
::move( algType ) )
// FIXME type_info???
32
, m_version(
std
::move( algVersion ) )
33
, m_name(
std
::move( algName ) )
34
, m_tool(
tool
)
35
, m_properties(
props
)
36
, m_jobHistory( job ) {}
37
38
const
CLID
&
AlgToolHistory::classID
() {
39
40
static
const
CLID
CLID_AlgToolHistory = 171959758;
// from `clid AlgToolHistory`
41
return
CLID_AlgToolHistory;
42
}
43
44
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
45
46
std::ostream&
AlgToolHistory::dump
( std::ostream& ost,
const
bool
isXML,
int
ind )
const
{
47
48
if
( !isXML ) {
49
50
ost <<
"Name: "
<<
algtool_name
() << endl;
51
ost <<
"Type: "
<<
algtool_type
() << endl;
52
ost <<
"Version: "
<<
algtool_version
() << endl;
53
ost <<
"Parent: "
<<
algtool_instance
()->
name
() << endl;
54
55
// Properties
56
ost <<
"Properties: ["
<< endl;
57
58
for
(
const
auto
& iprop :
properties
() ) {
59
iprop->fillStream( ost );
60
ost << endl;
61
}
62
ost <<
"]"
<< endl;
63
64
}
else
{
65
66
ind += 2;
67
indent
( ost, ind );
68
ost <<
"<COMPONENT name=\""
<<
algtool_name
() <<
"\" class=\""
<<
convert_string
(
algtool_type
() )
69
<<
"\" version=\""
<<
convert_string
(
algtool_version
() ) <<
"\" parent=\""
70
<<
convert_string
(
algtool_instance
()->
name
() ) <<
"\">"
<< endl;
71
72
for
(
const
auto
& iprop :
properties
() ) {
73
74
indent
( ost, ind + 2 );
75
ost <<
"<PROPERTY name=\""
<< iprop->name() <<
"\" value=\""
<<
convert_string
( iprop->toString() )
76
<<
"\" documentation=\""
<<
convert_string
( iprop->documentation() ) <<
"\">"
<< endl;
77
}
78
79
indent
( ost, ind );
80
ost <<
"</COMPONENT>"
<< endl;
81
}
82
return
ost;
83
}
AlgToolHistory::name
const std::string & name() const override
Definition:
AlgToolHistory.h:82
AlgToolHistory::properties
const PropertyList & properties() const override
Definition:
AlgToolHistory.h:75
AlgToolHistory::algtool_version
const std::string & algtool_version() const
Definition:
AlgToolHistory.h:66
GaudiPartProp.decorators.std
std
Definition:
decorators.py:32
check_ParticleID.props
props
Definition:
check_ParticleID.py:21
AlgToolHistory::algtool_name
const std::string & algtool_name() const
Definition:
AlgToolHistory.h:69
AlgToolHistory::algtool_instance
const AlgTool * algtool_instance() const
Definition:
AlgToolHistory.h:72
AlgTool::name
const std::string & name() const override
Retrieve full identifying name of the concrete tool object.
Definition:
AlgTool.cpp:72
ManySmallAlgs.alg
alg
Definition:
ManySmallAlgs.py:81
bug_34121.tool
tool
Definition:
bug_34121.py:18
HistoryObj::indent
virtual void indent(std::ostream &, int) const
Definition:
HistoryObj.cpp:37
AlgToolHistory::algtool_type
const std::string & algtool_type() const
Definition:
AlgToolHistory.h:63
IVersHistoryObj::PropertyList
std::vector< Gaudi::Details::PropertyBase * > PropertyList
Definition:
IVersHistoryObj.h:29
HistoryObj::convert_string
static std::string convert_string(const std::string &)
Definition:
HistoryObj.cpp:14
CLID
unsigned int CLID
Class ID definition.
Definition:
ClassID.h:16
JobHistory.h
AlgToolHistory::classID
static const CLID & classID()
Definition:
AlgToolHistory.cpp:38
AlgToolHistory.h
gaudirun.type
type
Definition:
gaudirun.py:160
ConditionsStallTest.name
name
Definition:
ConditionsStallTest.py:77
AlgTool
Definition:
AlgTool.h:55
JobHistory
Definition:
JobHistory.h:32
AlgTool.h
AlgToolHistory::dump
std::ostream & dump(std::ostream &, bool isXML, int indent) const override
Definition:
AlgToolHistory.cpp:46
AlgToolHistory::AlgToolHistory
AlgToolHistory(const AlgTool &alg, const JobHistory *job)
Definition:
AlgToolHistory.cpp:20
GaudiKernel
src
Lib
AlgToolHistory.cpp
Generated on Wed Aug 13 2025 09:05:04 for The Gaudi Framework by
1.8.18