ATLAS Offline Software
Loading...
Searching...
No Matches
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"
14
15//namespace EventSelectorAthenaPoolUtil {
16
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
41 for (const auto& dhe : dh) {
42 registerKeys(dhe, store);
43 }
44}
45//} // namespace EventSelectorAthenaPoolUtil
This file contains the class definition for the DataHeader and DataHeaderElement classes.
This class provides a persistent form for the TransientAddress.
Definition DataHeader.h:37
const std::vector< sgkey_t > & getHashes() const
const std::set< CLID > getClassIDs() const
const std::string & getKey() const
This class provides the layout for summary information stored for data written to POOL.
Definition DataHeader.h:123
virtual void registerKey(sgkey_t, const std::string &, CLID) override
Definition TestStore.cxx:38
The Athena Transient Store API.
void registerKeys(const DataHeaderElement &dhe, StoreGateSvc *store)
Register all hash keys for one DH Element.
Helper functions for registering hash keys with the SG service.