CMS 3D CMS Logo

Public Member Functions | Private Attributes

CSCAnodeDataFrame2007 Class Reference

#include <CSCAnodeData2007.h>

List of all members.

Public Member Functions

void addHit (unsigned wireGroup)
 CSCAnodeDataFrame2007 (unsigned short data)
 CSCAnodeDataFrame2007 ()
unsigned short data () const
bool isHit (unsigned wireGroup) const
 given a wiregroup between 0 and 11, it tells whether this bit was on

Private Attributes

unsigned short data_: 12
unsigned short flag_: 1
unsigned short reserved_: 3

Detailed Description

Definition at line 9 of file CSCAnodeData2007.h.


Constructor & Destructor Documentation

CSCAnodeDataFrame2007::CSCAnodeDataFrame2007 ( unsigned short  data) [inline, explicit]

Definition at line 11 of file CSCAnodeData2007.h.

References data(), and data_.

{data_ = data;}
CSCAnodeDataFrame2007::CSCAnodeDataFrame2007 ( ) [inline]

Definition at line 12 of file CSCAnodeData2007.h.

{}

Member Function Documentation

void CSCAnodeDataFrame2007::addHit ( unsigned  wireGroup) [inline]

Definition at line 20 of file CSCAnodeData2007.h.

References data_.

Referenced by CSCAnodeData2007::add().

  {
    data_ |= (1 << wireGroup);
  }
unsigned short CSCAnodeDataFrame2007::data ( ) const [inline]

Definition at line 25 of file CSCAnodeData2007.h.

References data_.

Referenced by CSCAnodeData2007::add(), CSCAnodeDataFrame2007(), and CSCAnodeData2007::wireDigis().

{return data_;}
bool CSCAnodeDataFrame2007::isHit ( unsigned  wireGroup) const [inline]

given a wiregroup between 0 and 11, it tells whether this bit was on

Definition at line 15 of file CSCAnodeData2007.h.

References data_.

Referenced by CSCAnodeData2007::wireDigis().

                                       {
    assert(wireGroup < 12);
    return ( (data_>>wireGroup) & 0x1 );
  }

Member Data Documentation

unsigned short CSCAnodeDataFrame2007::data_ [private]

Definition at line 28 of file CSCAnodeData2007.h.

Referenced by addHit(), CSCAnodeDataFrame2007(), data(), and isHit().

unsigned short CSCAnodeDataFrame2007::flag_ [private]

Definition at line 30 of file CSCAnodeData2007.h.

unsigned short CSCAnodeDataFrame2007::reserved_ [private]

Definition at line 29 of file CSCAnodeData2007.h.