ATLAS Offline Software
Functions
EventSelectorAthenaPoolUtil Namespace Reference

Functions

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

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 }

◆ 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 }
python.root_lsr_rank.hashes
hashes
Definition: root_lsr_rank.py:34
SGTest::store
TestStore store
Definition: TestStore.cxx:23
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
lumiFormat.i
int i
Definition: lumiFormat.py:85
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