ATLAS Offline Software
Loading...
Searching...
No Matches
EventSelectorAthenaPoolUtil Namespace Reference

Functions

void registerKeys (const DataHeaderElement &dhe, StoreGateSvc *store)
 Register all hash keys for one DH Element.
void registerKeys (const DataHeader &dh, StoreGateSvc *store)
 Register all hash keys from a DataHeader.

Function Documentation

◆ registerKeys() [1/2]

void EventSelectorAthenaPoolUtil::registerKeys ( const DataHeader & dh,
StoreGateSvc * store )

Register all hash keys from a DataHeader.

Parameters
dhThe DataHeader.
storeThe SG store with which the hashes are to be registered.

Definition at line 40 of file registerKeys.cxx.

40 {
41 for (const auto& dhe : dh) {
42 registerKeys(dhe, store);
43 }
44}
void registerKeys(const DataHeaderElement &dhe, StoreGateSvc *store)
Register all hash keys for one DH Element.

◆ registerKeys() [2/2]

void EventSelectorAthenaPoolUtil::registerKeys ( const DataHeaderElement & dhe,
StoreGateSvc * store )

Register all hash keys for one DH Element.

Parameters
dheThe DataHeader element.
storeThe SG store with which the hashes are to be registered.

Definition at line 22 of file registerKeys.cxx.

22 {
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}
const std::vector< sgkey_t > & getHashes() const
const std::set< CLID > getClassIDs() const
const std::string & getKey() const
virtual void registerKey(sgkey_t, const std::string &, CLID) override
Definition TestStore.cxx:38