The Gaudi Framework
master (37c0b60a)
DataHandleFinder.cpp
Go to the documentation of this file.
1
/***********************************************************************************\
2
* (c) Copyright 1998-2024 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/DataHandleFinder.h
>
12
13
DataHandleFinder::DataHandleFinder
(
DataObjID
const
&
target
) : m_target(
target
) {}
14
15
void
DataHandleFinder::visit
(
const
IDataHandleHolder
* visitee ) {
16
if
( !visitee ) {
return
; }
17
18
// See if the handle holder we're visiting contains the target
19
for
(
auto
& handle : visitee->
inputHandles
() ) {
20
if
( handle->fullKey() ==
m_target
) {
21
m_holderNames
.
push_back
( visitee->
name
() );
22
return
;
23
}
24
}
25
26
for
(
auto
& handle : visitee->
extraInputDeps
() ) {
27
if
( handle ==
m_target
) {
28
m_holderNames
.
push_back
( visitee->
name
() );
29
return
;
30
}
31
}
32
33
for
(
auto
& handle : visitee->
inputDataObjs
() ) {
34
if
( handle ==
m_target
) {
35
m_holderNames
.
push_back
( visitee->
name
() );
36
return
;
37
}
38
}
39
}
IDataHandleHolder
Definition:
IDataHandleHolder.h:24
IDataHandleHolder::extraInputDeps
virtual const DataObjIDColl & extraInputDeps() const =0
DataHandleFinder::m_target
DataObjID const & m_target
Definition:
DataHandleFinder.h:39
INamedInterface::name
virtual const std::string & name() const =0
Retrieve the name of the instance.
DataHandleFinder.h
DataHandleFinder::visit
void visit(const IDataHandleHolder *visitee) override
Definition:
DataHandleFinder.cpp:15
IDataHandleHolder::inputDataObjs
virtual const DataObjIDColl & inputDataObjs() const =0
std::vector::push_back
T push_back(T... args)
compareOutputFiles.target
target
Definition:
compareOutputFiles.py:489
IDataHandleHolder::inputHandles
virtual std::vector< Gaudi::DataHandle * > inputHandles() const =0
DataObjID
Definition:
DataObjID.h:47
DataHandleFinder::m_holderNames
std::vector< std::string > m_holderNames
Definition:
DataHandleFinder.h:40
DataHandleFinder::DataHandleFinder
DataHandleFinder(DataObjID const &target)
Definition:
DataHandleFinder.cpp:13
GaudiKernel
src
Lib
DataHandleFinder.cpp
Generated on Thu Dec 19 2024 15:35:03 for The Gaudi Framework by
1.8.18