CMS 3D CMS Logo

List of all members | Public Member Functions
dqm::TrackAnalyzer::KeyHasher Struct Reference

Public Member Functions

std::size_t operator() (const Key &k) const
 

Detailed Description

Definition at line 440 of file TrackAnalyzer.h.

Member Function Documentation

std::size_t dqm::TrackAnalyzer::KeyHasher::operator() ( const Key k) const
inline

Definition at line 441 of file TrackAnalyzer.h.

References dqm::TrackAnalyzer::Key::det, dqm::TrackAnalyzer::Key::monitoring, and dqm::TrackAnalyzer::Key::subdet.

441  {
442  // 3 bits (0x7) for kind of monitoring (7 kinds at most)
443  // next 8 bits to the subdetector (255 subdetectors at most)
444  // next 8 bits to the detector (255 detectors at most)
445  return (size_t)(
446  (k.monitoring & (0x7)) |
447  ((k.subdet & (0xff)) << 3) |
448  ((k.det & (0xff)) << 11));
449  }