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 39 of file registerKeys.cxx.

39  {
40  for (std::vector<DataHeaderElement>::const_iterator dhe_i = dh.begin(); dhe_i != dh.end(); ++dhe_i) {
41  registerKeys(*dhe_i, store);
42  }
43 }

◆ 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 (std::set<CLID>::const_iterator it = clids.begin(); it != clids.end(); ++it, ++i) {
29  store->registerKey(hashes[i], dhe.getKey(), *it);
30  }
31  }
32 }
python.root_lsr_rank.hashes
hashes
Definition: root_lsr_rank.py:34
store
StoreGateSvc * store
Definition: fbtTestBasics.cxx:69
skel.it
it
Definition: skel.GENtoEVGEN.py:423
PyPoolBrowser.dh
dh
Definition: PyPoolBrowser.py:102
DataHeaderElement::getKey
const std::string & getKey() const
Definition: DataHeader.cxx:127
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:92
StoreGateSvc::registerKey
virtual void registerKey(sgkey_t key, const std::string &str, CLID clidid) override final
Remember an additional mapping from key to string/CLID.
Definition: StoreGateSvc.cxx:415
DataHeaderElement::getHashes
const std::vector< sgkey_t > & getHashes() const
Definition: DataHeader.cxx:144
DataHeaderElement::getClassIDs
const std::set< CLID > getClassIDs() const
Definition: DataHeader.cxx:121