Public Member Functions | List of all members
fnex::MetaDataHasher Struct Reference

#include "/cvmfs/nova-development.opensciencegrid.org/novasoft/releases/N20-12-03/FNEX/core/Event.h"

Public Member Functions

std::size_t operator() (const MetaData &m) const
 

Detailed Description

Definition at line 54 of file Event.h.

Member Function Documentation

std::size_t fnex::MetaDataHasher::operator() ( const MetaData m) const
inline

Definition at line 56 of file Event.h.

References fnex::MetaData::detector, fnex::MetaData::epoch, fnex::MetaData::fileType, fnex::MetaData::interactionType, fnex::MetaData::isMC, seed, and fnex::MetaData::selectionType.

57  {
58  // Start with a hash value of 0 .
59  std::size_t seed = 0;
60 
61  // Modify 'seed' by XORing and bit-shifting in
62  // one member of 'Key' after the other:
63  boost::hash_combine(seed, boost::hash_value(m.isMC) );
64  boost::hash_combine(seed, boost::hash_value(m.detector) );
65  boost::hash_combine(seed, boost::hash_value(m.fileType) );
66  boost::hash_combine(seed, boost::hash_value(m.selectionType) );
67  boost::hash_combine(seed, boost::hash_value(m.interactionType));
68  boost::hash_combine(seed, boost::hash_value(m.epoch) );
69 
70  // Return the result.
71  return seed;
72  }
unsigned int seed
Definition: runWimpSim.h:102

The documentation for this struct was generated from the following file: