ATLAS Offline Software
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
*/
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
python.root_lsr_rank.hashes
hashes
Definition:
root_lsr_rank.py:34
SGTest::store
TestStore store
Definition:
TestStore.cxx:23
registerKeys.h
Helper functions for registering hash keys with the SG service.
PyPoolBrowser.dh
dh
Definition:
PyPoolBrowser.py:102
DataHeaderElement::getKey
const std::string & getKey() const
Definition:
DataHeader.cxx:117
EventSelectorAthenaPoolUtil::registerKeys
void registerKeys(const DataHeaderElement &dhe, StoreGateSvc *store)
Register all hash keys for one DH Element.
Definition:
registerKeys.cxx:22
StoreGateSvc
The Athena Transient Store API.
Definition:
StoreGateSvc.h:122
DataHeaderElement
This class provides a persistent form for the TransientAddress.
Definition:
DataHeader.h:37
DataHeader
This class provides the layout for summary information stored for data written to POOL.
Definition:
DataHeader.h:123
lumiFormat.i
int i
Definition:
lumiFormat.py:85
DataHeader.h
This file contains the class definition for the DataHeader and DataHeaderElement classes.
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
SGTest::TestStore::registerKey
virtual void registerKey(sgkey_t, const std::string &, CLID) override
Definition:
TestStore.cxx:38
StoreGateSvc.h
Generated on Wed Nov 12 2025 21:17:10 for ATLAS Offline Software by
1.8.18