#include <EventFilter/CSCRawToDigi/interface/CSCAnodeData2006.h>
Public Member Functions | |
void | addHit (unsigned wireGroup) |
sets a bit, from 0 to 7 | |
unsigned | chip () const |
kind of the chip ID. | |
CSCAnodeDataFrame2006 (unsigned chip, unsigned tbin, unsigned data) | |
CSCAnodeDataFrame2006 () | |
unsigned short | data () const |
bool | isHit (unsigned wireGroup) const |
given a wiregroup between 0 and 7, it tells whether this bit was on | |
unsigned | tbin () const |
time bin | |
Private Attributes | |
unsigned short | chip_: 2 |
unsigned short | data_: 8 |
unsigned short | ddu_code_: 1 |
unsigned short | tbin_: 5 |
Definition at line 7 of file CSCAnodeData2006.h.
CSCAnodeDataFrame2006::CSCAnodeDataFrame2006 | ( | ) | [inline] |
CSCAnodeDataFrame2006::CSCAnodeDataFrame2006 | ( | unsigned | chip, | |
unsigned | tbin, | |||
unsigned | data | |||
) | [inline] |
void CSCAnodeDataFrame2006::addHit | ( | unsigned | wireGroup | ) | [inline] |
sets a bit, from 0 to 7
Definition at line 23 of file CSCAnodeData2006.h.
References data_.
Referenced by CSCAnodeData2006::add().
00023 { 00024 data_ |= (1 << wireGroup); 00025 }
unsigned CSCAnodeDataFrame2006::chip | ( | ) | const [inline] |
kind of the chip ID.
But it's only 2-bit, and we really need three, so it's the lowest bit, plus the OR of the next two.
Definition at line 31 of file CSCAnodeData2006.h.
References chip_.
00031 {return chip_;}
unsigned short CSCAnodeDataFrame2006::data | ( | ) | const [inline] |
Definition at line 32 of file CSCAnodeData2006.h.
References data_.
Referenced by CSCAnodeData2006::wireDigis().
00032 {return data_;}
bool CSCAnodeDataFrame2006::isHit | ( | unsigned | wireGroup | ) | const [inline] |
given a wiregroup between 0 and 7, it tells whether this bit was on
Definition at line 17 of file CSCAnodeData2006.h.
References data_.
Referenced by CSCAnodeData2006::wireDigis().
00017 { 00018 assert(wireGroup < 8); 00019 return ( (data_>>wireGroup) & 0x1 ); 00020 }
unsigned CSCAnodeDataFrame2006::tbin | ( | ) | const [inline] |
unsigned short CSCAnodeDataFrame2006::chip_ [private] |
unsigned short CSCAnodeDataFrame2006::data_ [private] |
unsigned short CSCAnodeDataFrame2006::ddu_code_ [private] |
Definition at line 38 of file CSCAnodeData2006.h.
unsigned short CSCAnodeDataFrame2006::tbin_ [private] |