CMS 3D CMS Logo

List of all members | Public Member Functions | Private Member Functions | Private Attributes
ConsistentWithKey Class Reference

#include <SiStripFecKey.h>

Public Member Functions

 ConsistentWithKey (const SiStripFecKey &key)
 
bool operator() (const uint32_t &, const uint32_t &) const
 

Private Member Functions

 ConsistentWithKey ()
 

Private Attributes

SiStripFecKey mask_
 

Detailed Description

Definition at line 232 of file SiStripFecKey.h.

Constructor & Destructor Documentation

◆ ConsistentWithKey() [1/2]

ConsistentWithKey::ConsistentWithKey ( const SiStripFecKey key)
explicit

Definition at line 756 of file SiStripFecKey.cc.

757  : mask_(key.fecCrate() ? sistrip::invalid_ : 0,
758  key.fecSlot() ? sistrip::invalid_ : 0,
759  key.fecRing() ? sistrip::invalid_ : 0,
760  key.ccuAddr() ? sistrip::invalid_ : 0,
761  key.ccuChan() ? sistrip::invalid_ : 0,
762  key.lldChan() ? sistrip::invalid_ : 0,
763  key.i2cAddr() ? sistrip::invalid_ : 0) {
764  ;
765 }

◆ ConsistentWithKey() [2/2]

ConsistentWithKey::ConsistentWithKey ( )
explicitprivate

Definition at line 769 of file SiStripFecKey.cc.

769 : mask_(SiStripNullKey()) { ; }

Member Function Documentation

◆ operator()()

bool ConsistentWithKey::operator() ( const uint32_t &  a,
const uint32_t &  b 
) const

Definition at line 773 of file SiStripFecKey.cc.

773  {
774  return ((a & mask_.key()) < (b & mask_.key()));
775 }

References a, b, SiStripKey::key(), and mask_.

Member Data Documentation

◆ mask_

SiStripFecKey ConsistentWithKey::mask_
private

Definition at line 239 of file SiStripFecKey.h.

Referenced by operator()().

SiStripKey::key
const uint32_t & key() const
Definition: SiStripKey.h:120
b
double b
Definition: hdecay.h:118
ConsistentWithKey::mask_
SiStripFecKey mask_
Definition: SiStripFecKey.h:239
a
double a
Definition: hdecay.h:119
SiStripNullKey
Concrete implementation of abstract base, signifying null values or an "unknown" position or view.
Definition: SiStripNullKey.h:20
sistrip::invalid_
static const uint16_t invalid_
Definition: Constants.h:16
crabWrapper.key
key
Definition: crabWrapper.py:19