CMS 3D CMS Logo

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

Public Member Functions

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

Detailed Description

Definition at line 484 of file TrackAnalyzer.h.

Member Function Documentation

◆ operator()()

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

Definition at line 485 of file TrackAnalyzer.h.

485  {
486  // 3 bits (0x7) for kind of monitoring (7 kinds at most)
487  // next 8 bits to the subdetector (255 subdetectors at most)
488  // next 8 bits to the detector (255 detectors at most)
489  return (size_t)((k.monitoring & (0x7)) | ((k.subdet & (0xff)) << 3) | ((k.det & (0xff)) << 11));
490  }

References dqmdumpme::k.

dqmdumpme.k
k
Definition: dqmdumpme.py:60