Public Member Functions | List of all members
ana::Prod4DQFailCheckBase::VectorHash Struct Reference

#include "/cvmfs/nova-development.opensciencegrid.org/novasoft/releases/N20-11-30/CAFAna/Cuts/Prod4DQFailCheck.h"

Public Member Functions

size_t operator() (const std::vector< std::size_t > &v) const
 

Detailed Description

Definition at line 16 of file Prod4DQFailCheck.h.

Member Function Documentation

size_t ana::Prod4DQFailCheckBase::VectorHash::operator() ( const std::vector< std::size_t > &  v) const
inline

Definition at line 17 of file Prod4DQFailCheck.h.

References ana::Prod4DQFailCheckBase::GetCutResult(), MECModelEnuComparisons::i, ana::Prod4DQFailCheckBase::InitialiseSets(), and seed.

Referenced by ana::Prod4DQFailCheck::Prod4DQFailCheck().

17  {
18  std::hash<int> hasher;
19  std::size_t seed = 0;
20  for (std::size_t i : v) {
21  seed ^= hasher(i) + 0x9e3779b9 + (seed<<6) + (seed>>2);
22  }
23  return seed;
24  }
unsigned int seed
Definition: runWimpSim.h:102

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