ATLAS Offline Software
Public Member Functions | List of all members
NSWL1::hashPattern Struct Reference

#include <PadTriggerLookupTool.h>

Collaboration diagram for NSWL1::hashPattern:

Public Member Functions

size_t operator() (const std::vector< int > &vec) const
 

Detailed Description

Definition at line 29 of file PadTriggerLookupTool.h.

Member Function Documentation

◆ operator()()

size_t NSWL1::hashPattern::operator() ( const std::vector< int > &  vec) const
inline

Definition at line 30 of file PadTriggerLookupTool.h.

30  {
31  std::size_t seed = vec.size();
32  for(auto& i : vec) {
33  seed ^= i + 0x9e3779b9 + (seed << 6) + (seed >> 2);
34  }
35  return seed;
36  }

The documentation for this struct was generated from the following file:
vec
std::vector< size_t > vec
Definition: CombinationsGeneratorTest.cxx:12
Generate_dsid_ranseed.seed
seed
Definition: Generate_dsid_ranseed.py:10
lumiFormat.i
int i
Definition: lumiFormat.py:85