CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Private Attributes
CSCAnodeDataFrame2007 Class Reference

#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 More...
 

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)
inlineexplicit

Definition at line 11 of file CSCAnodeData2007.h.

References data(), and data_.

11 { data_ = data; }
unsigned short data() const
CSCAnodeDataFrame2007::CSCAnodeDataFrame2007 ( )
inline

Definition at line 12 of file CSCAnodeData2007.h.

12 {}

Member Function Documentation

void CSCAnodeDataFrame2007::addHit ( unsigned  wireGroup)
inline

Definition at line 20 of file CSCAnodeData2007.h.

References data_.

Referenced by CSCAnodeData2007::add().

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

Definition at line 22 of file CSCAnodeData2007.h.

References data_.

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

22 { 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 cms::cuda::assert(), and data_.

Referenced by CSCAnodeData2007::wireDigis().

15  {
16  assert(wireGroup < 12);
17  return ((data_ >> wireGroup) & 0x1);
18  }
assert(be >=bs)

Member Data Documentation

unsigned short CSCAnodeDataFrame2007::data_
private

Definition at line 25 of file CSCAnodeData2007.h.

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

unsigned short CSCAnodeDataFrame2007::flag_
private

Definition at line 27 of file CSCAnodeData2007.h.

unsigned short CSCAnodeDataFrame2007::reserved_
private

Definition at line 26 of file CSCAnodeData2007.h.