The Gaudi Framework
master (a36dfcab)
Toggle main menu visibility
Loading...
Searching...
No Matches
DataHistory.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/AlgorithmHistory.h
>
12
#include <
GaudiKernel/DataHistory.h
>
13
#include <iostream>
14
15
using
std::endl;
16
using
std::ostream;
17
18
DataHistory::DataHistory
(
const
CLID
&
id
, std::string key,
AlgorithmHistory
* alg )
19
:
m_dataClassID
( id ),
m_dataKey
(
std
::move( key ) ),
m_algHist
( alg ) {}
20
21
const
CLID
&
DataHistory::classID
() {
22
static
const
CLID
CLID_DataHistory = 83814411;
// from `clid DataHistory`
23
24
return
CLID_DataHistory;
25
}
26
27
std::ostream&
DataHistory::dump
( std::ostream& ost,
bool
/*isXML*/
,
int
/*ind*/
)
const
{
28
return
ost <<
"ClassID: "
<<
dataClassID
() <<
'\n'
29
<<
"Key: "
<<
dataKey
() <<
'\n'
30
<<
"AlgorithmHistory: "
<< (
void
*)
algorithmHistory
() << endl;
31
}
AlgorithmHistory.h
CLID
unsigned int CLID
Class ID definition.
Definition
ClassID.h:16
DataHistory.h
AlgorithmHistory
AlgorithmHistory class definition.
Definition
AlgorithmHistory.h:37
DataHistory::dataKey
const std::string & dataKey() const
Definition
DataHistory.h:49
DataHistory::DataHistory
DataHistory(const CLID &id, std::string key, AlgorithmHistory *alg)
Definition
DataHistory.cpp:18
DataHistory::classID
static const CLID & classID()
Definition
DataHistory.cpp:21
DataHistory::m_dataKey
std::string m_dataKey
Definition
DataHistory.h:59
DataHistory::dataClassID
const CLID & dataClassID() const
Definition
DataHistory.h:50
DataHistory::dump
std::ostream & dump(std::ostream &, const bool isXML, int indent) const override
Definition
DataHistory.cpp:27
DataHistory::m_dataClassID
CLID m_dataClassID
Definition
DataHistory.h:58
DataHistory::m_algHist
AlgorithmHistory * m_algHist
Definition
DataHistory.h:60
DataHistory::algorithmHistory
AlgorithmHistory * algorithmHistory() const
Definition
DataHistory.h:52
std
STL namespace.
GaudiKernel
src
Lib
DataHistory.cpp
Generated on
for The Gaudi Framework by
1.17.0