CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 238 of file SiStripFecKey.h.

Constructor & Destructor Documentation

ConsistentWithKey::ConsistentWithKey ( const SiStripFecKey key)
explicit

Definition at line 812 of file SiStripFecKey.cc.

813  : mask_( key.fecCrate() ? sistrip::invalid_ : 0,
814  key.fecSlot() ? sistrip::invalid_ : 0,
815  key.fecRing() ? sistrip::invalid_ : 0,
816  key.ccuAddr() ? sistrip::invalid_ : 0,
817  key.ccuChan() ? sistrip::invalid_ : 0,
818  key.lldChan() ? sistrip::invalid_ : 0,
819  key.i2cAddr() ? sistrip::invalid_ : 0 ) {;}
const uint16_t & fecRing() const
const uint16_t & lldChan() const
const uint16_t & fecSlot() const
const uint16_t & i2cAddr() const
const uint16_t & fecCrate() const
const uint16_t & ccuAddr() const
static const uint16_t invalid_
Definition: Constants.h:16
SiStripFecKey mask_
const uint16_t & ccuChan() const
ConsistentWithKey::ConsistentWithKey ( )
explicitprivate

Definition at line 823 of file SiStripFecKey.cc.

824  : mask_(SiStripNullKey()) {;}
SiStripFecKey mask_
Concrete implementation of abstract base, signifying null values or an &quot;unknown&quot; position or view...

Member Function Documentation

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

Definition at line 828 of file SiStripFecKey.cc.

References SiStripKey::key(), and mask_.

828  {
829  return ( ( a & mask_.key() ) < ( b & mask_.key() ) );
830 }
const uint32_t & key() const
Definition: SiStripKey.h:125
double b
Definition: hdecay.h:120
SiStripFecKey mask_
double a
Definition: hdecay.h:121

Member Data Documentation

SiStripFecKey ConsistentWithKey::mask_
private

Definition at line 244 of file SiStripFecKey.h.

Referenced by operator()().