#include <CSCAnodeData2007.h>
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 |
Definition at line 9 of file CSCAnodeData2007.h.
CSCAnodeDataFrame2007::CSCAnodeDataFrame2007 | ( | unsigned short | data | ) | [inline, explicit] |
CSCAnodeDataFrame2007::CSCAnodeDataFrame2007 | ( | ) | [inline] |
Definition at line 12 of file CSCAnodeData2007.h.
{}
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 ); }
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.