ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Database
AthenaPOOL
EventSelectorAthenaPool
src
registerKeys.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3
*/
10
11
#include "
registerKeys.h
"
12
#include "
PersistentDataModel/DataHeader.h
"
13
#include "
StoreGate/StoreGateSvc.h
"
14
15
//namespace EventSelectorAthenaPoolUtil {
16
22
void
EventSelectorAthenaPoolUtil::registerKeys
(
const
DataHeaderElement
& dhe,
StoreGateSvc
* store) {
23
const
std::vector<DataHeaderElement::sgkey_t>& hashes = dhe.
getHashes
();
24
if
(!hashes.empty()) {
25
// May be empty if we're reading an old file.
26
const
std::set<CLID> clids = dhe.
getClassIDs
();
27
size_t
i = 0;
28
for
(
const
auto
& clid : clids) {
29
store->
registerKey
(hashes[i], dhe.
getKey
(), clid);
30
++i;
31
}
32
}
33
}
34
40
void
EventSelectorAthenaPoolUtil::registerKeys
(
const
DataHeader
& dh,
StoreGateSvc
* store) {
41
for
(
const
auto
& dhe : dh) {
42
registerKeys
(dhe, store);
43
}
44
}
45
//} // namespace EventSelectorAthenaPoolUtil
DataHeader.h
This file contains the class definition for the DataHeader and DataHeaderElement classes.
StoreGateSvc.h
DataHeaderElement
This class provides a persistent form for the TransientAddress.
Definition
DataHeader.h:37
DataHeaderElement::getHashes
const std::vector< sgkey_t > & getHashes() const
Definition
DataHeader.cxx:130
DataHeaderElement::getClassIDs
const std::set< CLID > getClassIDs() const
Definition
DataHeader.cxx:111
DataHeaderElement::getKey
const std::string & getKey() const
Definition
DataHeader.cxx:117
DataHeader
This class provides the layout for summary information stored for data written to POOL.
Definition
DataHeader.h:123
SGTest::TestStore::registerKey
virtual void registerKey(sgkey_t, const std::string &, CLID) override
Definition
TestStore.cxx:38
StoreGateSvc
The Athena Transient Store API.
Definition
StoreGateSvc.h:120
EventSelectorAthenaPoolUtil::registerKeys
void registerKeys(const DataHeaderElement &dhe, StoreGateSvc *store)
Register all hash keys for one DH Element.
Definition
registerKeys.cxx:22
registerKeys.h
Helper functions for registering hash keys with the SG service.
Generated on
for ATLAS Offline Software by
1.17.0